hello everyone,
I am a newbie at this, and am having a problem outputting the results of a multi-variable query.
What I want to do is take a login, verify it, then pass the username along as a variable. According to that username, I want to query another table and return ALL the values that match the associated usernames "Team Name".
I believe my problem is in the way i return the array....here is the code:
$query="SELECT * FROM captain WHERE username ='$username'";
$result=mysql_query($query);
$mydata = mysql_fetch_array($result);
$queryrun="SELECT * FROM runner WHERE teamname ='$mydata'";
$resultrun=mysql_query($queryrun);
$mydatarun = mysql_fetch_array($resultrun);
echo $mydatarun;
Right now i'm getting blank results.....
-Michael