Annotation of embedaddon/php/ext/mysql/tests/clean_table.inc, revision 1.1.1.1

1.1       misho       1: <?PHP
                      2: require_once('connect.inc');
                      3: 
                      4: // connect + select_db
                      5: if (!$link = my_mysql_connect($host, $user, $passwd, $db, $port, $socket)) {
                      6:        printf("[clean] Cannot connect to the server using host=%s/%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
                      7:          $host, $myhost, $user, $db, $port, $socket);
                      8: }
                      9: 
                     10: if (!mysql_query('DROP TABLE IF EXISTS test', $link)) {
                     11:        printf("[clean] Failed to drop test table: [%d] %s\n", mysql_errno($link), mysql_error($link));
                     12: }
                     13: 
                     14: mysql_close($link);
                     15: ?>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>