Re: Newbie-Question: What's that @?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



there is no difference between the two!
quote: "
@mysql_query($query)
and
@mysql_query($query)?
"
haha
but seriously, the @ supresses error messages from php, so these will not be
outputted.
No information on why or how, the query in this case, it failed.
you can do this on a per function basis with the @ or for the whole script
with error_reporting() function.

--
Rolf Vreijdenberger
De Pannekoek en De Kale
Maystraat 6
2593 VW Den Haag
T: 06-24245719
E: rolf@depannekoekendekale.nl
W: www.depannekoekendekale.nl
"Marcus Fleige" <marcus.fleige@gmx.de> schreef in bericht
news:php.db-22830@news.php.net...
hi there,

i've got a general question about php-scripts:

whats the difference between

@mysql_query($query)

and

@mysql_query($query)?

is it the same as in batch programming?
like, ignore all return messages?

thanks and greetings from germany,

marcus

--
^v^
thekengoth@darkdoom.de




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux