Questions tagged as 'mysqli'

2
answers

Logic to validate free time in agenda

Good evening! I've been stuck for a couple of days in the following situation, I'm not able to parameterize or create an expression that validates interval between dates, which works like this: In other words, if you already have a s...
asked by 17.11.2017 / 01:25
2
answers

Insert data into the database using mysqli

How do I insert this data into the database using mysqli : print $data->access_token."<br />"; print $data->username."<br />"; print $data->full_name."<br />"; print $data->id."<br />"; ... $conexao...
asked by 05.05.2014 / 08:23
3
answers

How to do dynamic and generic preparation with mysqli?

I have a mobile application that sends me the following parameters $tabela = $_POST[“tabela”]; // ex: “pessoa” $atributos = $_POST[“atributos”]; // ex: “codigo, nome, cpf” $valores = $_POST[“valores”]; // ex: “10, Rafael, 1234567890”...
asked by 20.01.2017 / 11:21
1
answer

MySQL Commands out of sync; you can not run this command now

I have a class Import (PHP) that serves to read XML files and to insert into the DB. First of all I have the constructor of class Import that creates a new connection mysqli : ... $this->mysqli = new mysqli( HOST, USE...
asked by 19.05.2014 / 15:26
1
answer

Is there any risk in using mysqli_insert_id?

Let's suppose a website with a relatively high flow rate. A user X inserts a record into the database at the same time as another user Y inserts another record. Considering that the procedure of this insertion of user data X and user Y is:...
asked by 09.07.2016 / 18:25
1
answer

error in mysql_result () [closed]

I'm looking for help to understand an error given in a call to mysql_result (), that I can not resolve this error:    Warning: mysql_result () expects parameter 1 to be resource, object   given in C: \ wamp \ www \ I do not know what para...
asked by 22.09.2015 / 21:59
1
answer

how to use mysqli_fetch_array

I would like to know how I use this command mysql in my code because I am trying and nothing can not make it work if someone can help thanks. code: $sql = mysqli_query($mysqli, "SELECT * FROM produtos LIMIT $inicio, $totalProduto");...
asked by 16.12.2015 / 18:13
2
answers

how does auto increment work in mysql?

I want to know how to add a column so that it is a primary key and auto-increment, but that the value is higher, eg:    ID: 3509. and not just 1,2,3,4 ... etc.     
asked by 01.11.2017 / 19:20
1
answer

When to use each data type of mysqli_stmt_bind_param

According to documentação :    i - corresponding variable has type integer - d - corresponding variable has type string b - corresponding variable is a blob and will be sent in   packets So I wanted to know when exactly to...
asked by 25.09.2015 / 22:18
1
answer

mysqli_result Object ()

I spent the last 3 hours trying to find the error ... maybe it is sleep, but I will put my script very complicated so someone gives me a light. $query_passaporte = "SELECT num_compra, data_compra, plano, passaporte_paypal FROM paypal WHERE 'em...
asked by 13.08.2014 / 19:13