A
A
Andrey Raboy2015-11-08 23:58:39
MySQL
Andrey Raboy, 2015-11-08 23:58:39

Why is $mysqli->info empty?

fiddling with prepared queries, need to see the last executed query...
what am i doing wrong?

// выплняем запросы
$db->query("DROP TABLE test");
$db->query("CREATE TABLE test(id INT, text VARCHAR(50))");

echo "Последний запрос: ".$db->info."<br>";

here is the contents of the array(object properties):
[connect_errno] => 0 [connect_error] => [errno] => 0 [error] => [field_count] => 0 [host_info] => localhost via TCP/IP [info] = > [insert_id] => 0 [server_info] => 5.5.25 [server_version] => 50525
requests are running, everything is ok, but the last one is not showing...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2015-11-09
@dimonchik2013

php.net/manual/ru/mysqli.info.php
returns response to only what changes the data in the table

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question