07-30-2009, 02:13 PM
|
#8 (permalink)
|
|
The Contributor
Join Date: Jul 2009
Posts: 80
Thanks: 13
|
I got this code to work
PHP Code:
<?php
//try this way
$result = $mysqli->query("SELECT * FROM push_content LIMIT 10");
$titles = array();
while($row=$result->fetch_array())
{
$titles[] = $row['title'];
}
var_dump($titles);
?>
Last edited by codefreek : 07-30-2009 at 02:59 PM.
Reason: PHP tags added - please read http://www.talkphp.com/lounge/4563-prettifying-pasted-code-talkphp.html
|
|
|
|