I have done a delete function in a file ShoppingBag.php thus:
What I would like to do is let the user click on an image file and then delete something like this:
Can someone please suggest what to put instead of "Dunno what to put here".
Many thanks.
Code:
function RemoveItem($ITEMID)
{
global $dbServer, $dbUser, $dbPass, $dbName;
// Get a connection to the database
$cxn = @ConnectToDb($dbServer, $dbUser, $dbPass, $dbName) or die(mysql_error());
mysql_query("delete from cart where cookieId = '" . GetCartId() . "' and ITEMID = $ITEMID") or die(mysql_error());
}
What I would like to do is let the user click on an image file and then delete something like this:
Code:
<a href="Dunno what to put here"><img src="Del.jpg"></a>
Can someone please suggest what to put instead of "Dunno what to put here".
Many thanks.