Making a delete script for a shopping basket i though would be semi easy however i have come accross a snag..
the below code produces this error
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/keith/public_html/shop/basket.php on line 135
this cannot be from past experience on this project.
am i asking for the information in the wrong way?.
Thanks
Keith Jasper
<?
include "../includes/dbconnect.php.inc";
?>
<form action="basketdelete.php" method="post" name="delete" class="style1" id="delete">
<center> <table border="1">
<?
$query = mysql_query("SELECT * FROM hvgBasket WHERE username = $hvgLogins");
while ($rows = mysql_fetch_array($query))
{
echo "<tr><td><input type=radio name=select value=".$rows[2]."></td><td>".$rows[3]."</td><td>" .$rows[5]. "</td></tr>" ;
}
?>
</table>
<br>
<input type="submit" name="Submit" value="Submit">
</form>