Any idea how I can do this?
This is what I tried, and it doesn't work:
$query="SELECT bookingdata.*, users.* FROM bookingdata, users WHERE bookingdata.userid = users.userid";
$sql=mysql_query($query);
while ($row = mysql_fetch_array($sql)) {
$id=$row['id'];
$userid=$row['userid'];
$bookingdata=$row['bdate'];......etc. etc.
}
?>