note 86390 added to function.mysql-num-rows

From: Date: Thu, 16 Oct 2008 09:31:10 +0000
Subject: note 86390 added to function.mysql-num-rows
Groups: php.notes 
Request: Send a blank email to php-notes+get-145405@lists.php.net to get a copy of this message
here is a working get rows function, it always gets the right result function get_rows ($table_and_query) { $total = mysql_query("SELECT COUNT(*) FROM $table_and_query"); $total = mysql_fetch_array($total); return $total[0]; } this is one that worked for me :-) ---- Server IP: 217.75.128.29 Probable Submitter: 82.103.85.164 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-num-rows.php Edit -- https://master.php.net/note/edit/86390 Del: integrated -- https://master.php.net/note/delete/86390/integrated Del: useless -- https://master.php.net/note/delete/86390/useless Del: bad code -- https://master.php.net/note/delete/86390/bad+code Del: spam -- https://master.php.net/note/delete/86390/spam Del: non-english -- https://master.php.net/note/delete/86390/non-english Del: in docs -- https://master.php.net/note/delete/86390/in+docs Del: other reasons-- https://master.php.net/note/delete/86390 Reject -- https://master.php.net/note/reject/86390 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#145405) next »