Code Library
Home Submit Free Hosting Link To Us Contacts

mySQL Deleting information

mySQL Deleting information mySQL mySQL Deleting information Download (.zip)



<?
$db = "1book";
$table = "_info";

$link = mysql_connect("localhost","root","pass") or die("Couldn't connect to MySQL");

mysql_select_db($db , $link) or die("Couldn't open $db");

mysql_query("DELETE FROM $table WHERE id=2");
mysql_close($link);
?>




  • mySQLTable information display Insert information into tables Deleting information


mySQL Deleting information