I tried to truncate a table but why is it not working? must something wrong in the database query?
$sql = \"TRUNCATE TABLE `table_name`\"; $result = $connec
By the MySQL Reference Manual
http://dev.mysql.com/doc/refman/5.0/en/truncate-table.html
You can only delete one table at a time using TRUNCATE.
You could try executing multiple queries in one PHP query by using a ";" delimiter between them.