note 81294 deleted from function.mysql-fetch-row by felipe

From: Date: Fri, 22 Feb 2008 02:32:41 +0000
Subject: note 81294 deleted from function.mysql-fetch-row by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-136385@lists.php.net to get a copy of this message
Note Submitter: larkitetto at gmail dot com ---- try it: <?php //example $esi=mysql_list_tables($db);$ris=mysql_fetch_row($esi); //$db has 10 tabs echo var_dump($ris); /*echoes only array(1) solution*/ while ($ris=mysql_fetch_row($esi)) echo $ris; /*output of all tabs why? debug: $ris=array("1_tab");$ris=array("2_tab");...$ris=array("n_tab"); $ris=false; in more we may have array or res like cols.*/ while ($ris=mysql_fetch_row($esi)) echo $ris[0]. "...". $ris[n]; /*example 3 cols per row. debug: $ris=array("col1_row1","col2_row1","col3_row1");...$ris=false; //if you want to have all result in an array: $ris=null; while ($ris[]=mysql_fetch_row($esi)); ?> hope it helps

« previous php.notes (#136385) next »