hi i\'m trying to extract var\'s from one table
if (!($conn = db_connect()))
return false;
$result = mysql_query( \"select *
from user
where email = \'$valid_user\'\");
$row = mysql_fetch_array($result); //getting info from row in db
$userid = $row[\'userid\'];
$firstname = $row[\'firstname\'];
$middlename = $row[\'middlename\'];
$lastname = $row[\'lastname\'];
//then extract info from another row in the db using one of the var\'s i extracted in the first sql query
$result = mysql_query( \"select *
from mjp1
where userid = $userid\");
$row2 = mysql_fetch_array($result); //getting info from row in db
$maidenname = $row2[\'maidenname\'];
//the last part doesn\'t seem to be working. it\'s not pulling up the value for $maidenname in the second table. i get no errors. am i going about this the right way?
thanks
g.o.p.