SQL Problem (Syntax)  | |
October 13th, 2004, 12:44 AM
|
#1 (permalink)
| | Ultimate Member
Join Date: Jan 2003 Location: MA / NH
Posts: 1,497
|
This doesn't work:
$query= SELECT date, author, name, idnum FROM articles WHERE date>'$start' and date<'$stop' order by date;";
But this does:
$query= "SELECT date, author, name, idnum FROM articles WHERE date>'$start' order by date;";
However, the former works on PHP MyAdmin on a differnt database & server.
Any help?
EDITED TO NOT BORK UP THE QUICK VIEW WINDOW
Blaze
Last edited by Blazer06 : November 13th, 2004 at 11:18 PM.
|
| |
October 13th, 2004, 12:46 AM
|
#2 (permalink)
| | Fact Checker
Join Date: Feb 2000 Location: MSU- E. Lansing, MI
Posts: 6,261
|
i dunno... but you borked the "recent display" box in firefox. |
| |
October 13th, 2004, 12:48 AM
|
#3 (permalink)
| | Ultimate Member
Join Date: Jan 2003 Location: MA / NH
Posts: 1,497
|
I know! I borked it for Opera tooooooo!!
Do i get a prize?
Blaze |
| |
October 13th, 2004, 12:48 AM
|
#4 (permalink)
| | Free Thinker
Join Date: Oct 2001 Location: Charleston, Illinois
Posts: 4,522
|
__________________
You can't fix stupidity.
|
| |
October 13th, 2004, 12:49 AM
|
#5 (permalink)
| | Ultimate Member
Join Date: Jan 2003 Location: MA / NH
Posts: 1,497
|
Ohhh Ohhhh THREE browsers baby!!!
Wait... I don't want to break TIMO.
Anywho... anybody have any help on the SQL?
Blaze |
| |
November 13th, 2004, 11:15 PM
|
#6 (permalink)
| | Ultimate Member
Join Date: Jan 2003 Location: MA / NH
Posts: 1,497
|
Still havent figured it out? ANYBODY?
Blaze |
| |
November 14th, 2004, 12:30 AM
|
#7 (permalink)
| | Member
Join Date: Sep 2002
Posts: 364
|
You're missing a double quote at the beginning of the statement. |
| |
November 15th, 2004, 04:34 PM
|
#8 (permalink)
| | Ultimate Member
Join Date: Jan 2003 Location: MA / NH
Posts: 1,497
|
No, that is not the problem. I had to take the double quote out because if I leave it in it messes up TIMO in the recent threads box. (???)
Blaze |
| |
November 15th, 2004, 06:32 PM
|
#9 (permalink)
| | Member
Join Date: Sep 2002
Posts: 364
|
Try BETWEEN instead of AND |
| |
November 15th, 2004, 08:28 PM
|
#10 (permalink)
| | Ultimate Member
Join Date: Jan 2003 Location: MA / NH
Posts: 1,497
|
NICE. works now. (between '$start' and '$stop')
Blaze |
| | | Thread Tools | Search this Thread | | | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |