Heres my loop, should set something up like (#, #, #, #), ...(#, #, #, #),
But my output is #,#,#),#,#,#) .... #,#,#),
It's always missing the leader '('
PHP Code:
for($i = 0; $i < 18; $i++) { $queryValues .= '(' . $cid . ', ' . $i+1 . ', ' . $_POST['parOnHole'][$i] . ', '. $_POST['distance'][$i] . '),'; }
I just can't grasp why it would behave like this.
I've tried using single quotes, double quotes, even adding obscene language in there, and nothing will display before the $cid part.
Any ideas?
Last edited by kbfirebreather; 03-17-2009 at 08:25 AM..
|