Questions tagged as 'mysqli'

1
answer

Save result of Array in Mysql

with help I have used the following code that allows me to enter data from an input and that it be separated into 3 different values that I need, which are value, code and serial <?php $datos = "3,5 1401 4145 7854 8454 7458 5152556555 5 140...
asked by 21.09.2018 / 14:18
1
answer

Error in CRUD form: Warning: mysqli_error () expects exactly 1 parameter, 0 given in

I have a problem with the error that is indicated in the statement of my question. The connection file, called conexion_2.php , has the following content: <?php /*Datos de conexion a la base de datos*/ $db_host = "localhost"; $db_us...
asked by 12.09.2018 / 14:49
1
answer

How to insert the sum of PHP MYSQL variables

I have a problem with a code that allows you to insert multiple data from php, and what I need is that for each record the amount of the entered values is inserted in the DB. Code: //insert.php $connect = mysqli_connect("localhost", "root",...
asked by 03.09.2018 / 09:00
1
answer

Doubts in PHP and SQL Ready Queries, SELECT Statement and Show Data

I try to update some systems that I have created, in which I try to add consultas preparadas to improve mainly the security. I'm trying to do a SELECT and it's not clear to me how I could go through it. $sql = "SELECT * FROM c...
asked by 08.09.2018 / 15:46
1
answer

because when I change an integer value to a decimal I get an error?

good morning Working with php, I'm making a shopping cart. everything was fine until I realized that it does not save me values with decimals, pure integers in tables such as prices or totals, etc. my tables had them in decimal type, then...
asked by 21.08.2018 / 20:26
1
answer

Login with user or with Email with PHP

my query is to know if the following function can be implemented so that the user can log in using both the user and the email the function that I have is the following: function login(){ global $db, $username, $errors; // gra...
asked by 23.08.2018 / 02:45
1
answer

Why do not you save my mysql data via php?

html code <html> <head> <title></title> </head> <body> <form method="post" action="insertarp.php"> <b> Codigo Producto</b> <input type=text name="codigop" > <br><br> <b...
asked by 20.06.2018 / 19:33
1
answer

Mysqli_error () expects parameter 1 to be mysqli, null given

I'm trying to show some data in my browser from the database and when I run it it shows me the following error: mysqli_error () expects parameter 1 to be mysqli, null given I would appreciate some help. Code: <!doctype html>...
asked by 15.06.2018 / 16:10
1
answer

Error bindParam (); PHP

For this class Conexion ... class Conexion{ private $host; private $user; private $pass; private $bbdd; private $connect; public function __construct(){ $this->host = "localhost"; $this->user = "usu...
asked by 15.06.2018 / 01:03
1
answer

What do you recommend to do this type of nested selects? [closed]

I'm designing a pretty complex form, with enough sql queries inside. I need to create many nested selects. The case, I currently use "onchange .. this form submit" .. To send by POST the information from one to another. The case, that I...
asked by 11.05.2018 / 18:55