note 42748 added to function.mysql-tablename

From: Date: Thu, 27 May 2004 17:59:59 +0000
Subject: note 42748 added to function.mysql-tablename
Groups: php.notes 
Request: Send a blank email to php-notes+get-70203@lists.php.net to get a copy of this message
Another (IMHO the easiest) way to check if a table exists: if (@mysql_query("SELECT * FROM " . $table) == false) echo "table " . $table . " does not exist"; else echo "table " . $table . " exists"; ---- Manual Page -- http://www.php.net/manual/en/function.mysql-tablename.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+42748 Delete -- http://master.php.net/manage/user-notes.php?action=delete+42748&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+42748&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#70203) next »