I'm trying to select fields from 5 tables. This is the select query I'm using:
SELECT t1.page, t1.link, t2.page, t2.link, t3.page, t3.link, t4.page, t4.link, t5.page, t5.link FROM page1 t1, page2 t2, page3 t3, page4 t4, page5 t5 WHERE username='$username' AND id='$id'
I dont know if it works or not because I dont know how to extract the data into variables. Normally I would use:
extract($myrow);
Or:
$page1 = $myrow["??"];
$link1 = $myrow["??"];
...
But I don't know what the variable names are when using the extract() function and I dont know what field names to use when assigning the data to a variable.
Any ideas? Thanks.