global var.
| From: | Sebastian | Date: | Tue, 01 Apr 2003 00:56:05 +0000 |
| Subject: | global var. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-141762@lists.php.net to get a copy of this message | ||
hello all,
$variable = $id;
// some other stuff....
@mysql_query here....
$id = mysql_insert_id();
to the question: How do I get $id from insert_id() to pass to $variable
above? Hard to explain the situation i am in, but the query has to be below
$variable, is it possible to 'globalize' $id so it passes to the top
$variable?
first time i ever ran into this problem.
Thanks in advanced.
cheers,
- Sebastian