This is the code
/**
* Created by Phpstorm.
* User:mdf
* DATE:2015/3/18
* time:13:59
*/
$id =$_request[' id '];
$delreply = "Delete from tb_blog_reply where blog_id=". $id;
$delblog = "Delete from tb_blog_information where blog_id=". $id;
$DelR =mysql_query ($delreply);
$DelB =mysql_query ($delblog);
Echo $delreply;
Echo $delblog;
$url = "http://localhost/Myhome/Contorl.php";
if ($DelR)
{
$DelB =mysql_query ($delblog);
if ($DelB) {
echo "";
echo "";
}
Else
{
echo "";
echo "";
}
}
Else
{
echo "";
echo "";
}
?>
SQL statements can be printed out in the database deleted, but run mysql_query can not be deleted,
Reply to discussion (solution)
You do not see the code to connect to the database
$con =mysql_connect ("localhost", "root", "");
if (! $con)
{
Die (' Cound not connect the db!! '. Mysql_error ());
}
mysql_select_db ("The_blog");
mysql_query ("Set names ' UTF8 '");