Hi Sebastian, > $variable = $id; > // some other stuff.... > @mysql_query here.... > $id = mysql_insert_id(); > > 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
::blink:: Perhaps something like: $loc = $PHP_SELF. "?variable=". $id; header("Location:". $loc); You'd have to put something in to stop an infinte loop though. Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php