| Welcome to WebmasterWorld Guest from 220.127.116.11 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Pubcon Platinum Sponsor 2014|
|Emptying A Table|
How do you empty a table in mysql using php?
mysql_query("truncate table TABLENAME");
$connection = mysql_connect('localhost', 'user', 'pass');
$sql = "TRUNCATE TABLE `table_name`";
delete from tablename
that deletes all rows
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved