MrBelfry
IS-IT--Management
- May 21, 2003
- 289
I have a sql statement that is returning data from 2 different tables (news_item & user). Unfortunately both tables have an ID field. Normally i put the data into a variable using a while loop like:
BUT $row["id"] always refers to the second 'id' value (which I get from the user table). How can I refer to the id value from the news_item table?
Thanks in advance
MrBelfry
Code:
while ($row = mysql_fetch_array($result))
{
$story[$count]["id"] = $row["id"];
$count++;
}
Thanks in advance
MrBelfry