$results =mysql_query("SELECT managerid, username, nameid FROM personal WHERE nameid='$nameid'");
/* ^^^ get all the data at once, note you must SELECT the
column you are using in your WHERE clauses also otherwise
mySQL cant see that value to compare it
*/
while($rows=mysql_fetch_assoc($result))
{
extract($rows); //make $rows['managerid'] available as $managerid, etc etc.
echo "mgr_id=$managerid<br>mgr_name=$username<br><br>\n"; //output the values
}
you have to "fetch" the results as rows (an array basically) and then read data from those rows
Goodluck Tigress 🙂