rootmath
06-29-2011, 01:14 AM
I have two tables that are related. A Video table and a Information table. I use a video_id column in the Infomoration table to link the videos with their relevant pieces of information. The problem I have is trying to get them both out at the same time.
For example, if I select all the videos I need on a given page and store it as $videos, how would I then go about selecting all the pieces of information per-video? Would I need a two dimensional array?
For example:
$vid_info[0][0] = first vid, first info
$vid_info[0][1] = first vid, second info
What would be my select statement to even grab the info?
Thanks!!
For example, if I select all the videos I need on a given page and store it as $videos, how would I then go about selecting all the pieces of information per-video? Would I need a two dimensional array?
For example:
$vid_info[0][0] = first vid, first info
$vid_info[0][1] = first vid, second info
What would be my select statement to even grab the info?
Thanks!!