faqts : Computers : Databases : MySQL

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

11 of 15 people (73%) answered Yes
Recently 8 of 10 people (80%) answered Yes

Entry

What is wrong with this: "SELECT * FROM mytable WHERE p_price BETWEEN '$MxPrice' AND '$MnPrice'" ??

Feb 22nd, 2008 03:34
dman, Todor Gaidarov, John Schmidt, http://sturly.com


The Min Price should be before the Max Price. As per mysql help:
expr BETWEEN min AND max