473,473 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

@mysql_query ?

Hi,
What would be the meaning of the '@' in @mysql_query()?
I did not find googling, I miss some keyword...
Thank you for any help.
Apr 30 '07 #1
3 2612
On Apr 30, 12:15 pm, "Mihamina Rakotomandimby (R12y)"
<miham...@rktmb.orgwrote:
Hi,
What would be the meaning of the '@' in @mysql_query()?
I did not find googling, I miss some keyword...
Thank you for any help.
It prevents any errors that might be raised from being displayed.

<http://www.php.net/manual/en/language.operators.errorcontrol.php>

Apr 30 '07 #2
"Mihamina Rakotomandimby (R12y)" <mi******@rktmb.orgwrote in message
news:f1**********@cabale.usenet-fr.net...
Hi,
What would be the meaning of the '@' in @mysql_query()?
I did not find googling, I miss some keyword...
Thank you for any help.
@ in front of any PHP function suppresses error messages.

D.
Apr 30 '07 #3
As well as suppressing error messages, it will return false if there
is an error. That way you can handle errors that would otherwise
trigger error handling, including ugly error messages on output and
crap in your logs. With an @, you can use use the statement in a
condition to take appropriate action after the error messages is
suppressed.

-Mike PII

May 1 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Phil Powell | last post by:
I have a very simple mySqlQuery object that takes two parameters: 1) the string query 2) the db connection resource I tested and was certain everything is passing correctly (the string query...
1
by: Phil Powell | last post by:
Here is the scope of what I need to do; want: enrollment_year allowed (even if null) all of ica criteria:
0
by: Phil Powell | last post by:
The table already has a fulltext index and from there I can use the MySQL fulltext search query to get results as well as the relevancy score. The problem I have is that MySQL has a default...
0
by: tyousaf | last post by:
Hi i am new to mysql and mysql++, i have installed mysql server, it is running fine. i also installed "mysql++-1.7.9gcc3.2-2.i386.rpm" (i have gcc 3.3) , first of all as the readme file says to do...
1
by: Siv Hansen | last post by:
I have a function query(String $query) in my DbConnector-class- goes like this: function query($query) { $mysqlQuery = mysql_query($query, $this->link); if(!$mysqlQuery){...
3
by: TheDude5B | last post by:
Hi, i am wanting to add some data to one table within my MySQL database using asp.net in VB, however, i want to also add some of the same data to another table at the same time. Easy yes, but...
0
by: Vijay Balki | last post by:
I am fetching data in DataSet - myDataSet, from a remote database using a Web Service in my VB.NET client..Once I fetch it I store the data in XML file (myXMLFile) using the WriteXML method of the...
8
by: julian_m | last post by:
let's say I've an array of articles's id $arr_art_id=(1, 551, 2015, 6 .......n ) what option is better (1 or 2), in order to achieve better performance? (pseudo code) 1) for i=0 to array...
1
by: vgshri | last post by:
Hi, I have an MYSQL Query , that excetues in the MYSQL Database, but it shows an error while running that query in PHP. The Query is, SELECT a.stock_item_code AS...
23
by: casper christensen | last post by:
Hi I run a directory, where programs are listed based on the number of clicks they have recieved. The program with most clicks are placed on top and so on. Now I would like people to be apple to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.