PhantomCode Posted December 17, 2008 Share Posted December 17, 2008 I'm sorry if this is an incredibly nooby question but I've searched around and I just can't figure it out... When I try to run some code of mine it spits out a "Parse error: syntax error, unexpected T_WHILE in"... and points to this line: do $Computer[2]++ while ($Computer[2] == $Computer[1]); Can anyone tell me what I'm doing wrong here? Link to comment https://forums.phpfreaks.com/topic/137430-solved-parse-error-syntax-error-unexpected-t_while/ Share on other sites More sharing options...
twm Posted December 17, 2008 Share Posted December 17, 2008 do {$Computer[2]++;} while ($Computer[2] == $Computer[1]); Link to comment https://forums.phpfreaks.com/topic/137430-solved-parse-error-syntax-error-unexpected-t_while/#findComment-718147 Share on other sites More sharing options...
PhantomCode Posted December 17, 2008 Author Share Posted December 17, 2008 oh durr ??? (I feel so stupid) I thought I had tried that but apparently not... Thanks for your speedy aid! Link to comment https://forums.phpfreaks.com/topic/137430-solved-parse-error-syntax-error-unexpected-t_while/#findComment-718155 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.