spyke01 Posted July 21, 2006 Share Posted July 21, 2006 Looking to see why this would have been done[code]<?=@$amount?>[/code]i know its echoing, but why the @ before the variable, here the places that amount is $defined[code]$amount = $qr['amount'];$amount = $amount * $_POST['no_credits'];[/code] Link to comment https://forums.phpfreaks.com/topic/15262-another-silly-question/ Share on other sites More sharing options...
wildteen88 Posted July 21, 2006 Share Posted July 21, 2006 The @ symbol supresses error messages. For example if $amount didn't exist you might get this error:[b]Notice: Undefined variable: amount in [path to script] on line [line number here][/b]When you use the @ symbol infront of the $amount variable, the error message will not be shown. Link to comment https://forums.phpfreaks.com/topic/15262-another-silly-question/#findComment-61669 Share on other sites More sharing options...
spyke01 Posted July 21, 2006 Author Share Posted July 21, 2006 ahh ok cool, seen it with DB quieries, but never with echoes, thanks mate Link to comment https://forums.phpfreaks.com/topic/15262-another-silly-question/#findComment-61678 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.