note 71126 added to function.mysql-list-dbs

From: Date: Mon, 13 Nov 2006 13:53:46 +0000
Subject: note 71126 added to function.mysql-list-dbs
Groups: php.notes 
Request: Send a blank email to php-notes+get-119660@lists.php.net to get a copy of this message
@ vladson at pc-labs dot info To mimic this function with a "better" solution, you might want to return the correct variable. mysql_list_dbs() returns a resourse link not an array. <?php function sql_list_dbs($link) { return mysql_query('SHOW DATABASES;', $link); } ?> ---- Server IP: 64.71.164.2 Probable Submitter: 71.35.197.135 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-list-dbs.php Edit -- https://master.php.net/note/edit/71126 Del: integrated -- https://master.php.net/note/delete/71126/integrated Del: useless -- https://master.php.net/note/delete/71126/useless Del: bad code -- https://master.php.net/note/delete/71126/bad+code Del: spam -- https://master.php.net/note/delete/71126/spam Del: non-english -- https://master.php.net/note/delete/71126/non-english Del: in docs -- https://master.php.net/note/delete/71126/in+docs Del: other reasons-- https://master.php.net/note/delete/71126 Reject -- https://master.php.net/note/reject/71126 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#119660) next »