Hello
is it possible to Update and Delete a record at the same time?
For example if the value is = 0 delete the record, otherwise update it.
I know that is simple but I'm having some trouble with the code
$sql ="UPDATE myDb SET
AvailableSF='$AvailableSF',
WHERE ID='$ID'";
$ok = mysql_query($sql);
$sSQL="Delete From myDb Where AvailableSF=0 ";
or
is this correct?
if ($availablespaceSF = 0)
$sSQL="Delete From availablespace ";
Thanx for your help