clean_table.inc 444 B

1234567891011
  1. <?PHP
  2. require_once('connect.inc');
  3. if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
  4. printf("[clean] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
  5. $host, $user, $db, $port, $socket);
  6. }
  7. if (!mysqli_query($link, 'DROP TABLE IF EXISTS test')) {
  8. printf("[clean] Failed to drop old test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link));
  9. }