csrs
12-06-2005, 09:53 PM
Hello . I am looking for the best way to make a simple script so that I can TRUNCATE one table in our database and seem to be having some issues getting anything to work . I have tried the following code , however, it does not work
<?php
$dbms = 'mysql';
$dbhost = 'localhost';
$dbname = 'xxxxxxxx';
$dbuser = 'xxxxxxxxx';
$dbpasswd = 'xxxxxxxx';
$db->query("TRUNCATE cust_sponsors;")
?>
To sum it up , the old webmaster had made a custom sponsor page and I need to delete the current sponsors so that I can add the new ones . This said, the script is now off the server and Iam having a hard time with getting anything done . I would really just like to delete the current sponsors by their id if this is possible. Any help would be greatly appreciated ..
<?php
$dbms = 'mysql';
$dbhost = 'localhost';
$dbname = 'xxxxxxxx';
$dbuser = 'xxxxxxxxx';
$dbpasswd = 'xxxxxxxx';
$db->query("TRUNCATE cust_sponsors;")
?>
To sum it up , the old webmaster had made a custom sponsor page and I need to delete the current sponsors so that I can add the new ones . This said, the script is now off the server and Iam having a hard time with getting anything done . I would really just like to delete the current sponsors by their id if this is possible. Any help would be greatly appreciated ..
