|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-11-28 17:51 UTC] mfischer@php.net
[2001-11-29 09:47 UTC] FitzpatrickB at metrocall dot com
[2001-11-29 09:49 UTC] mfischer@php.net
[2001-11-29 09:53 UTC] FitzpatrickB at metrocall dot com
[2001-11-29 10:08 UTC] FitzpatrickB at metrocall dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 06:00:01 2025 UTC |
This works!!! $cnt = count($arrayA); for ( $ix=0 ; $ix < $cnt; $ix++ ) { $aurl = mysql_query("select name, url from sites where code='".$arrayA[$ix][1]."'"); list($name$url) = mysql_fetch_row($aurl); mysql_free_result($aurl); echo "$url $name"; } This Fails!! $cnt = count($arrayA); for ( $ix=0 ; $ix < $cnt; $ix++ ) { $aurl = mysql_query("select name, url from sites where code='".$arrayA[$ix][1]."'"); list($name$url) = mysql_fetch_row($aurl); mysql_free_result($aurl); echo urlencode($url)," $name"; } Only change is addition of urlencode, What gives?