PHP ODBC comparison operators
Posted: Fri Sep 14, 2007 2:11 pm
feyd | Please use
This line of code returns no results, and I know there are values for this field which are <= 10000 in the database. So then I tried:
This doesn't work either; returns no results. Finally I tried:
This works perfectly.
Any suggestions for what I should do?
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I have a comma separated file that I am using as an ODBC System DSN (Windows 2003 Server). It's working great except for the following:Code: Select all
$sql = "SELECT * from database.csv where sellingprice <= '10000' order by make, year";Code: Select all
$sql = "SELECT * from database.csv where sellingprice < '10000' order by make, year";Code: Select all
$sql = "SELECT * from database.csv where sellingprice = '10000' order by make, year";Any suggestions for what I should do?
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]