View Single Post
Old 03-12-2010, 09:02 AM   #1 (permalink)
CΛSTΞX
The Acquainted
 
Join Date: Feb 2008
Posts: 107
Thanks: 3
CΛSTΞX is on a distinguished road
Plugin/Addon 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);


__________________
Downloadic
infolizer

Last edited by CΛSTΞX : 03-12-2010 at 10:49 AM.
Send a message via MSN to CΛSTΞX
CΛSTΞX is offline  
Reply With Quote