Hi,
I am trying to fetch a record from a MySQL db, based on th eproduct ID passed to the php page in the URL and put the results in a table row.
php_page.php$prod_id=1234
can you tell me what is wrong with this:
$pid = $_GET['prod_id'];
$result = mysql_query("SELECT ProductName, Price, Flag from products WHERE ProductID=\"$pid\"");
$row = mysql_fetch_row($result);
print '<tr><td>$row[0]</td><td>$row[1]</td><td> </td><td> </td></tr>';
Thanks.