Re: What does an @ sign before a VARIABLE do?
| From: | Mattias Segerdahl | Date: | Fri, 20 Apr 2001 14:30:38 +0000 |
| Subject: | Re: What does an @ sign before a VARIABLE do? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-6923@lists.php.net to get a copy of this message | ||
It removes all error msg's that might come from the particular function... Iow, if it
dosn't work, don't complain!
----- Original Message -----
From: "Mike Flynn" <mike@mikeflynn.net>
To: <php-windows@lists.php.net>
Sent: Friday, April 20, 2001 4:23 PM
Subject: [PHP-WIN] What does an @ sign before a VARIABLE do?
> Hey all,
>
> In the PHOBUILDER tutorial on sessions the sample code has a @ sign before
> some of the variable names.. like:
> if (@$userid && @$password) {
> $res = @mysql_query("SELECT userid FROM users WHERE userid='$userid' AND
> password='$password'");
> if(@mysql_num_rows($res) != 0) {
> $verified_user = $userid;
> session_register("verified_user");
> }
> }
> I've never seen that before and am curious what it does. I've seen it
> before function calls, but never before variables.
>
> Thanks!
> -Mike
>
>
> -=- Mike Flynn - Burlington, VT -=-
> mike@mikeflynn.net http://www.mikeflynn.net/ * Give blood *
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>