How can i create a php file that when opened which delete all records in my tables.

I also need a php file that delete my selected table from mysql database

connection code here
mysql_query('truncate table a');
mysql_query('truncate table b');
mysql_query('truncate table c');
mysql_query('drop table x from databasename');
disconnect

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.