first query:
PHP Code:
$_SESSION['qry1'] = mysql_fetch_array(mysql_query("SELECT * FROM users WHERE Username = 'Bob'"));
The session variable should have all the info about bob that you could use for a second query, like $_SESSION['qry1']['firstName']. But if the second query or even the first query is going to be returning multiple rows of data, you would have to do:
PHP Code:
while($row = mysql_fetch_assoc($qry)) { second query }
Hopefully this helps, but if you have any questions, just ask.
|