Jump to content

pull from two tables


iversonm

Recommended Posts

hey i know how i could solve me problem using $_SESSION but i was wondering if there is an easier way

is there anyways to pull from two tables at the same time

 

so if i have table a and table b and they have the exact some column names

i was thinking something like

$q="SELECT id,type,c1,c2 FROM tablea,tableb WHERE type='something'"

then use a while statement to output everything

Link to comment
https://forums.phpfreaks.com/topic/126705-pull-from-two-tables/
Share on other sites

i already kinda looked through it

what i want to do is add the rows so you have row1 from this table and row 2 is from the second table and maybe row 3 and 4 is from the first table

 

so it combines the rows and then organizes them by a column a specify

Link to comment
https://forums.phpfreaks.com/topic/126705-pull-from-two-tables/#findComment-655348
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.