xyn Posted July 7, 2006 Share Posted July 7, 2006 Hi Guys,I've currently got a PM System and would like to update the "Limit" script to improve it. I was wondering whether it's a good idea to change it from:[code=php:0]if($num=="$limit"){die('The receiptants inbox is full');}[/code]Or should I use this:[code=php:0]if($num =< "$limit"){die('[/code] Quote Link to comment https://forums.phpfreaks.com/topic/13939-equalto-or-greater-than/ Share on other sites More sharing options...
GingerRobot Posted July 7, 2006 Share Posted July 7, 2006 It looks like it shouln't be a problem as you are checking when the message is sent, but its probably safer to use the 2nd anyway. Quote Link to comment https://forums.phpfreaks.com/topic/13939-equalto-or-greater-than/#findComment-54324 Share on other sites More sharing options...
wildteen88 Posted July 7, 2006 Share Posted July 7, 2006 The first method is better. Also are you checking whether the recipients inbox is full when the sender sends a PM? I would only check whether the recipients inbox is full when the recipient goes to check their inbox instead. ALso rather than killing the script I'd put a notification in their inbox telling them their inbox is full, and or send an email too. Quote Link to comment https://forums.phpfreaks.com/topic/13939-equalto-or-greater-than/#findComment-54326 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.