I am trying to surpress an error which I get when the sql query tries to collect results before any search criteria have been inputted. I know that ultimately, using '@' to surpress errors is a bad thing, because good code doesn't produce errors. BY hey, forget about good coding for a sec and I ust want this to work without showing me any error msg's.....
The line of code I am trying to completly surpress is
I've managed to surpress the first errors but I still get the error (Access denied for user: 'apache@localhost' (Using password: NO))
I thought that I could stop this error by adding an '@' just beofore 'Die' but this didn't work.
Any ideas?
Please.....
I'm thinking a complete review of layout of my code is in need, Are there any prog's out there which will scan through my code and organise it for me? I've seen it done for Java.....
The line of code I am trying to completly surpress is
Code:
$result=@mysql_query($query)or Die(mysql_error());
I've managed to surpress the first errors but I still get the error (Access denied for user: 'apache@localhost' (Using password: NO))
I thought that I could stop this error by adding an '@' just beofore 'Die' but this didn't work.
Any ideas?
Please.....
I'm thinking a complete review of layout of my code is in need, Are there any prog's out there which will scan through my code and organise it for me? I've seen it done for Java.....