Hi.
thanks for this. i am onto a winner now.
i now need help with a tougher challenge.
heres my code:
$query = "SELECT * FROM calls where assigned = '$admindude' order by callid";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_array($result);
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
printf("ID: %s Name: %s Logged By: %s", $row["callid"], $row["problem"], $row["userid"]);
echo "\n";
echo "<br>";
echo "<br>";
} - this works fine.
you see how im outputing a field userid from the query. well, rather than put out the user id i need the user name. which is held in a field in another table. essentially i need to select name from usertable where userid = $row['userid'].
however, i tried but failed.
anyone any ideas?
many thanks all.