nightkarnation Posted July 10, 2009 Share Posted July 10, 2009 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! Link to comment https://forums.phpfreaks.com/topic/165552-urlencode-inside-a-select-while-mysql-array-loop/ Share on other sites More sharing options...
nightkarnation Posted July 12, 2009 Author Share Posted July 12, 2009 Anyone? Link to comment https://forums.phpfreaks.com/topic/165552-urlencode-inside-a-select-while-mysql-array-loop/#findComment-874126 Share on other sites More sharing options...
wildteen88 Posted July 12, 2009 Share Posted July 12, 2009 Like this echo "name$cant=$row[name]&picture$cant=$row[picture]&votes$cant=$row[votes]&url_$cant=".urlencode($row[url_])."&"; Link to comment https://forums.phpfreaks.com/topic/165552-urlencode-inside-a-select-while-mysql-array-loop/#findComment-874129 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.