07-30-2009, 01:57 PM
|
#6 (permalink)
|
|
The Wanderer
Join Date: Jul 2009
Posts: 5
Thanks: 0
|
PHP Code:
//try this way
$mysqli = new mysqli("localhost", "$vconfig->user","$vconfig->dbpass","$vconfig->db" );
$result = $mysqli->query("SELECT * FROM push_content");
$titles = array();
while($row=$result->fetch_assoc($result))
{
$titles[] = $row['title'];
}
$mysqli->close();
var_dump($titles);
PHP tags added - please read Prettifying Pasted Code on TalkPHP
Last edited by codefreek : 07-30-2009 at 02:58 PM.
Reason: PHP tags added - please read http://www.talkphp.com/lounge/4563-prettifying-pasted-code-talkphp.html
|
|
|
|