Ok,
I need to reference the ID of one table from another, but i'm unsure how to do it.
I have one table called newproject_data, and there is a row called categoryID ... which will hold id numbers, several in one row, seperated by commas, referencing another table called category, which has catID and catSelect...
So
category ID will have like 1, 5, 21 in a row...
then each one of those numbers links to an ID in category, and displays the information in catSelect that is associated with that ID... here is a code that someone put together for me, but I can't figure it out, can anyone help?:
$catID2 = $catID;
$catID2 = explode(",", $catID2);
for ($i=0; $i<sizeof($catID2); $i++)
{
$get_cat_info = "SELECT catSelect FROM category WHERE catID ='$catID2[$i]' AND catID = newproject_data.catID";
$result = mysql_query($get_cat_info);
}