Re: What does an @ sign before a VARIABLE do?

From: Date: Fri, 20 Apr 2001 14:45:26 +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-6924@lists.php.net to get a copy of this message
> 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. It doesn't do anything. Whoever wrote that tutorial was confused. -Rasmus

« previous php.windows (#6924) next »