i need to clean several tables in several databases before try the submits
$db_server = include('root.php');
if (!$db_server) die("Unable to connect to MySQL: " . mysql_error());
$sqla = "TRUNCATE TABLE `info`.`2012_august`";
$sqlb = "TRUNCATE TABLE `stu`.`2012_august`";
$sqlc = "TRUNCATE TABLE `stu`.`2012`";
if (@mysql_query($sqla))
{
echo ("success"."</br>");
}
else
{
echo ("un success".mysql_error()."</br>");
}
only the first table clears its data.how can i solve this.
1 Answer