Back to index

php5  5.3.10
clean_table.inc
Go to the documentation of this file.
00001 <?PHP
00002 require_once('connect.inc');
00003 
00004 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
00005        printf("[clean] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
00006               $host, $user, $db, $port, $socket);
00007 }
00008 
00009 if (!mysqli_query($link, 'DROP TABLE IF EXISTS test')) {
00010        printf("[clean] Failed to drop old test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link));
00011 }
00012 
00013 mysqli_close($link);
00014 ?>