Jump to content

Mysql Help


mjm037

Recommended Posts

Hey, have a quick problem. am trying to select rows from a database where the quantity is between 0 and 10 (but not 0).

can get less than 11:

[code]$sql = "SELECT * FROM myTable WHERE Quantity <= 11;" [/code]

or more than 0:

[code]$sql = "SELECT * FROM myTable WHERE Quantity > 0;" [/code]

but dont know the syntax for both at the same time, please help!!

Link to comment
https://forums.phpfreaks.com/topic/6467-mysql-help/
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.