note 58105 deleted from function.mysql-list-dbs by jome

From: Date: Mon, 24 Oct 2005 16:20:12 +0000
Subject: note 58105 deleted from function.mysql-list-dbs by jome
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-97520@lists.php.net to get a copy of this message
Note Submitter: isaquealves at gmail dot com Reason: bad code ---- For best results in searching database name use this: <? $connection_fixer = mysql_connect($server,$usr,$pass); if($connection_fixer){ $basename = mysql_list_dbs($connection_fixer); for($i=0; $i<10; $i++){//I use '10', but you can use other number such as 15 or 20. $result = mysql_result($basename,$i); echo $result."\n"; } } ?> this will return: database1 database2 database3 database4 database5 database6... It Work in Windows...

« previous php.notes (#97520) next »