I found the following code for deleting data from a MySQL database...
Code:
<?php
mysql_connect("localhost","Username","Password")
or
die("could not connect");
mysql_select_db(users);
$sql = "DELETE FROM users WHERE userid=7";
$result = mysql_query($sql);
?>
So in this case i want to be deleting the row where the userid is 7 in the users table...
Although it doesn't seem to work, is there an error in the code or anything???