lawrence_dev
asked on
Need assistamce with "Use of undefined constant ProductID - assumed 'ProductID'"
I have only one field "ProductID" in a temporary table. The field is unique. I am attempting to extract the ProductID with a select statement and I am receiving a error:
"Use of undefined constant ProductID - assumed 'ProductID'"
The ProductID will be included in a URL string to open individual product pages and scrape data.
"Use of undefined constant ProductID - assumed 'ProductID'"
The ProductID will be included in a URL string to open individual product pages and scrape data.
$query1 = $conn->query('SELECT ProductID FROM urldownload');
while ($row1 = $query1->fetch(PDO::FETCH_ASSOC))
{
echo $row1[ProductID]."<BR>";
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
^^^ What Marco said, use quotes.
ASKER
Thanks Marco!