RE: [PHP] If problem
| From: | o dot cook at etoncollege dot org dot uk | Date: | Mon, 27 Nov 2000 15:17:04 +0000 |
| Subject: | RE: [PHP] If problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-27384@lists.php.net to get a copy of this message | ||
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
>