kevin7 Posted May 29, 2008 Share Posted May 29, 2008 Hi! I have a question, I saw from a tutorial, but i couldnt understand this, what's the difference with the following: mysql_query(some_query_string) @mysql_query(some_query_string) what does the alias mean? and, i saw some of the functions in a class have something like this function getPageNav($queryvars = '') why do they assign $queryvars to nothing? in what situation we need to do this? thanks! Link to comment https://forums.phpfreaks.com/topic/107741-question-about-mysql_query-and-function/ Share on other sites More sharing options...
next Posted May 29, 2008 Share Posted May 29, 2008 '@' suppresses error/warning messages. $queryvars's default value is blank, meaning that parameter doesn't have to be specified when you call the function. Link to comment https://forums.phpfreaks.com/topic/107741-question-about-mysql_query-and-function/#findComment-552314 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.