konfigure Posted February 14, 2008 Share Posted February 14, 2008 I have a generated code like this x $sSql = ew_BuildReportSql(EW_TABLE_SQL_TRANSFORM, $EW_TABLE_SQL_SELECT, $EW_TABLE_SQL_WHERE, EW_TABLE_SQL_GROUPBY, "", EW_TABLE_SQL_ORDERBY, EW_TABLE_SQL_PIVOT, $sFilter, @$sSort); but I dont know what for is the "@", what is @ in php anyway? Quote Link to comment Share on other sites More sharing options...
pocobueno1388 Posted February 14, 2008 Share Posted February 14, 2008 The @ symbol can be used to suppress errors from showing, which usually isn't the best thing to do. In the code you posted it doesn't really look like thats how it's being used, I'm not aware of any other use for it. Quote Link to comment Share on other sites More sharing options...
haku Posted February 14, 2008 Share Posted February 14, 2008 I never use it. I think it makes for sloppy programming - its better to fix the code that is causing errors than it is to suppress the errors. If you leave the errors in the code, then your code isn't well written. Quote Link to comment Share on other sites More sharing options...
teng84 Posted February 14, 2008 Share Posted February 14, 2008 i believe the @ sign in your code suppressed the error so it wont cause error message in your function so when the variable @$sSort gets an error message it only passed empty value not the whole crapy warning message i guess the $sSort is your sql execution or ..... but that is no use it should supressed the error right after it is passed in your var Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.