Jump to content

PHP numbers...need DOB between 3-36


kendallkamikaze

Recommended Posts

I've been using

 

$sql="SELECT * FROM horsedata WHERE id='$thehorse' and DOB < 36";

 

which works, but i need it so people cant enter their horse if its under the age of 2. So something like 2-36:

 

$sql="SELECT * FROM horsedata WHERE id='$thehorse' and DOB 2-36";

 

I know that wont work, what code would i need for that?

Link to comment
https://forums.phpfreaks.com/topic/137461-php-numbersneed-dob-between-3-36/
Share on other sites

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.