Jump to content

urlencode inside a select while mysql array loop


nightkarnation

Recommended Posts

echo '&url_='.urlencode($url_);

I need to incorporate the suggested code above inside this loop:

 

$result = mysql_query("SELECT name, picture, votes, url_ FROM swebcam_shimmy ORDER BY `swebcam_shimmy`.`votes` DESC");  
$cant = 0;  
while($row=mysql_fetch_array($result)){  
echo "name$cant=$row[name]&picture$cant=$row[picture]&votes$cant=$row[votes]&url_$cant=$row[url_]&";  
$cant++; 
        } 

 

 

Any ideas?

 

Thanks a lot in advance!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.