it is echoed out, i finallly got that piece to work,
when i run the page again, i get this message
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/username/public_html/php_cart2/admin/add4_5.php on line 232
line 232 is the while statement that is above
while($products = mysql_fetch_array($results)){
the code is regarding this code
<?
echo '<table class="products" border="1">';
while($products = mysql_fetch_array($results)){
echo '<tr>
<td class="products">
<span class="title">' . $products['itemName'] . '</span><br />
<a href="show_details.php?id=' . $products['itemId'] . '">
<img src="images/' . $products['itemImage'] . '" alt="' . $products['itemName']. '" />
</a>
</td>
</tr>';
}
echo '</table>';
?
it is regarding the same piece of code that has been posted above and that i am working with.
how should that error message be fixed?
can anyone please let me know whats wrong it and how to fix it?
thanks