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 // connect + select_db
00005 if (!$link = my_mysql_connect($host, $user, $passwd, $db, $port, $socket)) {
00006        printf("[clean] Cannot connect to the server using host=%s/%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
00007          $host, $myhost, $user, $db, $port, $socket);
00008 }
00009 
00010 if (!mysql_query('DROP TABLE IF EXISTS test', $link)) {
00011        printf("[clean] Failed to drop test table: [%d] %s\n", mysql_errno($link), mysql_error($link));
00012 }
00013 
00014 mysql_close($link);
00015 ?>