I'm sure I come across the answer - but can't find it when I really need it !
I make an sql query like
$query = "SELECT * FROM `product` as p, `productlanguage` as p1, `productlanguage` as p2 WHERE (p.guid=p1.d_id and p1.lang_id='de') and (p.guid=p2.d_id and p2.lang_id='en')";
$result = mysql_query($query) or die("Invalid Query - $query"
while($row = mysql_fetch_object($result)) {
}
QUESTION: the field 'description' appears twice in the result (since I'm getting two rows from the same table)
How can I extract them both ?
$row->description[1] - WRONG !
Help much appreciated
I make an sql query like
$query = "SELECT * FROM `product` as p, `productlanguage` as p1, `productlanguage` as p2 WHERE (p.guid=p1.d_id and p1.lang_id='de') and (p.guid=p2.d_id and p2.lang_id='en')";
$result = mysql_query($query) or die("Invalid Query - $query"
while($row = mysql_fetch_object($result)) {
}
QUESTION: the field 'description' appears twice in the result (since I'm getting two rows from the same table)
How can I extract them both ?
$row->description[1] - WRONG !
Help much appreciated