Re: If problem
| From: | Dave Daniels | Date: | Mon, 27 Nov 2000 15:45:24 +0000 |
| Subject: | Re: If problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-27389@lists.php.net to get a copy of this message | ||
Correct. For further clarification, = sets the value of $uPicked to 10,
while == tests for equality.
----- Original Message -----
From: <o.cook@etoncollege.org.uk>
To: <mpeloso@princeton.edu>
Cc: <php-general@lists.php.net>
Sent: Monday, November 27, 2000 9:17 AM
Subject: RE: [PHP] If problem
> you need to use == not =
>
> Ollie
>
> > -----Original Message-----
> > From: Mike [mailto:mpeloso@princeton.edu]
> > Sent: 27 November 2000 15:15
> > To: php-general@lists.php.net
> > Subject: [PHP] If problem
> >
> >
> > The following Query returns no records(I checked it with
> > "echo $uPicked")
> > but it still dies .Why?
> > ......
> > $resulta = mysql_query("Select * from Picks Where Week
> > ='$Week' AND User
> > ='$PHP_AUTH_USER'");
> > $uPicked = mysql_num_rows($resulta);
> > echo $uPicked;
> > if ($uPicked = 10)
> > die ("<b>You Picked Already</b>");
> > .....
> > mpeloso@princeton.edu
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail:
> > php-list-admin@lists.php.net
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>