Droping Database Tables.
I have recently upgraded to wp 2.0 from wp 1.5 and I would like to delete ALL the info in my SQL tables and start over again. Since I do not have acess to PhpMyAdmin or similar programs I have decided to write a php script that would deleate all the info in my tables. So far I have:
// Connect to database
$connect = mysql_connect('localhost', 'USERNAME', 'PASSWORD')
or die('Could not connect: ' . mysql_error());
echo 'Connected successfully';
// Select Database
mysql_select_db('DATABASE') or die('Could not select database')
$delete = 'WTF GOES HERE?';
$result = mysql_query($delete) or die('Failed to delete: ' . mysql_error());
// Close Connection
my question is what should go in the $delete place to acomplish this?
- The topic ‘Droping Database Tables.’ is closed to new replies.