Re: Newbie-Question: What's that @?
| From: | rolf vreijdenberger | Date: | Thu, 31 Oct 2002 12:35:16 +0000 |
| Subject: | Re: Newbie-Question: What's that @? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-22846@lists.php.net to get a copy of this message | ||
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