03-12-2010, 09:02 AM
|
#1 (permalink)
|
|
The Acquainted
Join Date: Feb 2008
Posts: 107
Thanks: 3
|
Mysql_fetch_array echo only 1 result
Hello, my function echo only 1 result. I want to echo more results with using this function. Can you please help me, thanks!
PHP Code:
function data_dump($query) {
$nt=mysql_query($query); echo mysql_error();
$results = array();
while($row=@mysql_fetch_array($nt)) $results[] = $row;
foreach($results as $key=>$val) {
$downloadiclink = "<h3><a href='http://www.downloadic.com/$val[id]-$val[alt_name].html'>$val[title]</a></strong></h3>$val[short_story]<br>";
} return $downloadiclink;
}
echo data_dump($query);
}
Last edited by CΛSTΞX : 03-12-2010 at 10:49 AM.
|
|
|