When I query the mysql database in PHP, I cannot figure out how to specify the field table in the result set.
For example, I would like to do the following:
$row = mysql_fetch_assoc($result);
$row["table.FIELD"];
But, I can’t understand how to do this. Surely this can happen somehow.
EDIT: I checked the documentation and found nothing. I'm not sure that I was understood at first ... I know how to get the value of a field in a row from a result set. But I would like to get the value of the field in the row by specifying the table name before this field.
$row["FIELD"]; vs $row["table.FIELD"];
From the above line, I would like to make the latter.
Thank,
Steve
source
share