| Welcome to WebmasterWorld Guest from 220.127.116.11 |
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
|Subscribe and Support WebmasterWorld|
|Emptying A Table|
| 4:35 pm on Feb 12, 2006 (gmt 0)|
How do you empty a table in mysql using php?
| 5:05 pm on Feb 12, 2006 (gmt 0)|
mysql_query("truncate table TABLENAME");
| 10:48 pm on Feb 12, 2006 (gmt 0)|
$connection = mysql_connect('localhost', 'user', 'pass');
$sql = "TRUNCATE TABLE `table_name`";
| 6:13 pm on Feb 13, 2006 (gmt 0)|
delete from tablename
that deletes all rows
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
© Webmaster World 1996-2014 all rights reserved