"==" is a comparison operator, you want "=" which is an assignment operator. change $counter == 0; to $counter = 0; Good luck. Urb At 11:59 PM 1/21/06, you wrote: >Hello everyone, I am newbie to PHP progamming and I am having some >trouble with a script I just wrote while learning php. I am running >this script on ISS server with PHP 4.4. I put the script below, but >also wanted to say hello to everyone. I am middle school technology >education teacher, an avid woodworker, webpage designer, and now php >programmer. I am hoping that someone can point out the issue with >this script, and I do have register_global in my php.ini file set to >off. I am getting a undefined varibale error on the $counter >variable. The script is below. Thanks everyone. > >09 <? >10 $counter == 0; >11 if ($counter > 10) { >12 print $counter; >13 print "<br>"; >14 } >15 ?> > >Line # reference I think might help everyone > >David Weeks >aka The Young Shop Teacher > > > > > > > >PHP Data object relational mapping generator >http://www.metastorage.net/ >Yahoo! Groups Links > > > > PHP Data object relational mapping generator http://www.metastorage.net/ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-objects/ <*> To unsubscribe from this group, send an email to: php-objects-unsubscribe@xxxxxxxxxxxxxxx <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/