View Single Post
Old 03-28-2008, 01:55 PM   #2 (permalink)
flyingbuddha
The Contributor
 
flyingbuddha's Avatar
 
Join Date: Jan 2008
Location: Birmingham, UK
Posts: 60
Thanks: 10
flyingbuddha is on a distinguished road
Default

Hey djscour,

Wow, that lines a bit of a mouthful isn't it, you could do with breaking it down if you're struggling
PHP Code:
// &ID1 = x
$rString.= "&ID".$i."=".$row['ID'];    

// &visitor1 = x
$rString.= "&visitor".$i."=".$row['visitor'];

// &time1 = x
$rString.= "&time".$i."=".$row['time'];

// &comment1 = x
$rString.= "&comment".$i."=".$row['comment']; 
The ampersand (&) is a variable separator, generally used in querystring's (url) or for loading into another language such as flash.
How is $rString being used, in terms of where else is it called in the script?

Regarding the equal sign (=), $rString is being used to concatenate different variables into one string, the full output would look something like:
Code:
&ID1=x&visitor1=x&time1=x&comment1=x
Hope this helps a little :)
__________________
Pro. Geek
http://www.mikeholloway.co.uk

Last edited by flyingbuddha : 03-28-2008 at 01:56 PM. Reason: typos
flyingbuddha is offline  
Reply With Quote
The Following User Says Thank You to flyingbuddha For This Useful Post:
djscour (03-29-2008)