note 99266 deleted from function.mysql-insert-id by danbrown
| From: | danbrown@php.net | Date: | Fri, 06 Aug 2010 22:13:55 +0000 |
| Subject: | note 99266 deleted from function.mysql-insert-id by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-171445@lists.php.net to get a copy of this message | ||
Note Submitter: alexmelo8813 at gmail dot com
----
This function is very helpful
is perferct to be user width a good database Class
fallow the example:
$create_quiz = $conexao->query("INSERT INTO quiz (titulo_quiz) VALUES
('$titulo_quiz')");
$quiz_id = mysql_insert_id();
Now i can use that id i just created, try to be careful with the order of your queries and position
of yours fetchArray.
Thx, Alexandre Melo ,Brazil