note 107834 added to function.mysql-list-tables

From: Date: Thu, 08 Mar 2012 12:07:28 +0000
Subject: note 107834 added to function.mysql-list-tables
Groups: php.notes 
Request: Send a blank email to php-notes+get-186544@lists.php.net to get a copy of this message
Having tried all the suggestions above I had no joy (with attempting to sniff for the existence of an empty table). The method I found to work is: $sql = "select count(*) from " . STATUS_TABLE . ";"; $table = true; $rs = @mysqli_query($db, $sql) or $table = false; if ($table) { [...] } ---- Server IP: 69.147.83.197 Probable Submitter: 92.27.44.104 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-list-tables.php Edit -- https://master.php.net/note/edit/107834 Del: integrated -- https://master.php.net/note/delete/107834/integrated Del: useless -- https://master.php.net/note/delete/107834/useless Del: bad code -- https://master.php.net/note/delete/107834/bad+code Del: spam -- https://master.php.net/note/delete/107834/spam Del: non-english -- https://master.php.net/note/delete/107834/non-english Del: in docs -- https://master.php.net/note/delete/107834/in+docs Del: other reasons-- https://master.php.net/note/delete/107834 Reject -- https://master.php.net/note/reject/107834 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#186544) next »