freelanceprogrammers.org Forum Index » PHP
Re: Newbi PHPer Here
Joined: 20 Nov 2005
Posts: 4
Re: Newbi PHPer Here
You are testing $counter for equality to zero, rather than assigning the value
of zero to it.
=: assign
==: test for equality
Ray
----- Original Message -----
From: teacherweeks
To: php-objects@yahoogroups.com
Sent: Saturday, January 21, 2006 11:59 PM
Subject: [php-objects] Newbi PHPer Here
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/
SPONSORED LINKS Programming languages Object oriented programming Php
developer
Computer security C programming language Computer programming
languages
------------------------------------------------------------------------------
YAHOO! GROUPS LINKS
a.. Visit your group "php-objects" on the web.
b.. To unsubscribe from this group, send an email to:
php-objects-unsubscribe@yahoogroups.com
c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
------------------------------------------------------------------------------
[Non-text portions of this message have been removed]
All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help
China Wholesale - Electronics Products
Character Studio - Tutorials and Help







