Jump to content

Equalto or greater than!


xyn

Recommended Posts

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]
Link to comment
https://forums.phpfreaks.com/topic/13939-equalto-or-greater-than/
Share on other sites

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.