Quote:
Originally Posted by Marco van Herwaarden
And the error is?
|
The loop was adding another uid with each consecutive picture eg:
Code:
http://highsierraspotters.com/forum/gallery/files/3/412_thumb.jpg
http://highsierraspotters.com/forum/gallery/files/3/3/412_thumb.jpg
I got it working, but was just wanting to make sure I did it the best way.
Quote:
Originally Posted by Opserty
PHP Code:
$uid = $uid . $char ."/";
The 2nd $uid is the problem. Try something like:
PHP Code:
$arrChars = array(); $uid = ''; for ($i=0; $i < strlen($userid); $i++) { $arrChars[] = $userid[$i]; }
foreach ($arrChars as $char) { $uid = $uid . $char ."/"; }
|
Thanks, I will give that a try
That worked thanks