Questions tagged as 'mysqli'

1
answer

Fill in input text with user data from mysql

Good afternoon! I am creating a visitor registration form for commercials. I need to extract in an "input type=" text "as the default value: The commercial agent's code, (it is not the same as the client's id) This is the form:               ...
asked by 09.11.2017 / 16:44
2
answers

The data in form is not registered

Hello, I have a small user registration code but you are not inserting the data into my database: conexion.php <?php $con = new mysqli('localhost','root','','coco'); ?> formulario.php <!DOCTYPE html> <html> &l...
asked by 11.08.2017 / 20:50
3
answers

Shopping cart with PHP and MySQL that adds repeated products

I am making a shopping cart with PHP and MySQL and if you add products, but the problem is that you add the same one over and over again, even if you add a different one, always insert the same one. Even when I refresh the page, it automatically...
asked by 29.06.2017 / 17:32
3
answers

Product blocked by sale limete

Realizing a project they sent me to block products that exceed the sales limit, I explain: I have two tables, producto and ventas , where there is a list of products for sale which if you reach the limit of sale diaria can...
asked by 30.04.2017 / 21:28
3
answers

warning mysqli_select_db () expects parameter 1 to be mysqli

I am doing a school platform, where I need to connect my database with my web page. However, this warning appears when I run it:    Warning: mysqli_select_db () expects parameter 1 to be mysqli, string   given in C: \ xampp \ htdocs \ Sor J...
asked by 27.03.2017 / 20:06
1
answer

Hash of plain text users

I have several records (about 300) where users have their password in plain text and I want to pass it to HASH use a file to convert the passwords and then insert them, but it happens that some are blank, because?. To verify that it was no...
asked by 20.03.2017 / 19:13
1
answer

When do I stop using mysql_comando commands and what version of php?

I would like to know when (year) the commands with mysql_<comando> were stopped and in which version of PHP,     
asked by 11.02.2017 / 16:52
1
answer

Show MYSQL results in Horizontal

I have the database of DATA created in this format. the code you use for the query is the following: only that the class table increases The column Bimester to demilitar the query. <table class="table table-bordered table-striped t...
asked by 18.02.2017 / 17:09
3
answers

Login in PHP MYSQL Undefined index: Password

I'm doing a login with User and Password ... Send me this error: >    Notice: Undefined index: Password in C: \ xampp \ htdocs \ Task_Semana_11 \ Validar.php on line 6 ERROR LINE: $Clave=$_POST['Clave']; This is the PHP code:...
asked by 03.04.2017 / 05:08
1
answer

Place in php which user is connected

I would like to place the user who is currently logged in on the corner of my page, I do not know how it is done and for this I ask for your help, here I attach the index code that I am currently working on. <?php session_start(); if (...
asked by 09.03.2017 / 00:24