home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

SQL Problem (Syntax)

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2364
Discussions: 200,941, Posts: 2,379,279, Members: 246,304
Old October 13th, 2004, 12:44 AM   Digg it!   #1 (permalink)
Ultimate Member
 
Join Date: Jan 2003
Location: MA / NH
Posts: 1,497
Send a message via AIM to Blazer06
SQL Problem (Syntax)

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.
Blazer06 is offline   Reply With Quote
Old October 13th, 2004, 12:46 AM     #2 (permalink)
Fact Checker
 
Gomer's Avatar
 
Join Date: Feb 2000
Location: MSU- E. Lansing, MI
Posts: 6,261
i dunno... but you borked the "recent display" box in firefox.
Gomer is offline   Reply With Quote
Old October 13th, 2004, 12:48 AM     #3 (permalink)
Ultimate Member
 
Join Date: Jan 2003
Location: MA / NH
Posts: 1,497
Send a message via AIM to Blazer06
I know! I borked it for Opera tooooooo!!

Do i get a prize?


Blaze
Blazer06 is offline   Reply With Quote
Old October 13th, 2004, 12:48 AM     #4 (permalink)
Free Thinker
 
M_Six's Avatar
 
Join Date: Oct 2001
Location: Charleston, Illinois
Posts: 4,522
In IE, too.
__________________
You can't fix stupidity.
M_Six is offline   Reply With Quote
Old October 13th, 2004, 12:49 AM     #5 (permalink)
Ultimate Member
 
Join Date: Jan 2003
Location: MA / NH
Posts: 1,497
Send a message via AIM to Blazer06
Ohhh Ohhhh THREE browsers baby!!!

Wait... I don't want to break TIMO.

Anywho... anybody have any help on the SQL?


Blaze
Blazer06 is offline   Reply With Quote
Old November 13th, 2004, 11:15 PM     #6 (permalink)
Ultimate Member
 
Join Date: Jan 2003
Location: MA / NH
Posts: 1,497
Send a message via AIM to Blazer06
Still havent figured it out? ANYBODY?


Blaze
Blazer06 is offline   Reply With Quote
Old 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.
Creosote is offline   Reply With Quote
Old November 15th, 2004, 04:34 PM     #8 (permalink)
Ultimate Member
 
Join Date: Jan 2003
Location: MA / NH
Posts: 1,497
Send a message via AIM to Blazer06
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
Blazer06 is offline   Reply With Quote
Old November 15th, 2004, 06:32 PM     #9 (permalink)
Member
 
Join Date: Sep 2002
Posts: 364
Try BETWEEN instead of AND
Creosote is offline   Reply With Quote
Old November 15th, 2004, 08:28 PM     #10 (permalink)
Ultimate Member
 
Join Date: Jan 2003
Location: MA / NH
Posts: 1,497
Send a message via AIM to Blazer06
NICE. works now. (between '$start' and '$stop')


Blaze
Blazer06 is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to use cursors with strings srinivas_mca2k Webmastering and Programming 12 September 16th, 2003 02:21 AM
HELP!!! DATABASE!!!? tobu Technical Support 6 June 17th, 2002 10:17 PM
(c0ders) VBA & Access to VBA & MySQL Whir Webmastering and Programming 5 June 6th, 2002 10:58 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2916)
Hackers global warming emails (5)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Wireless Televisions. (9)
California Passes Anti-Flat-HDTV Le.. (43)
Regular Build (6)
Is the PSU I received dead? (11)
HIS HD5770 graphic card question (15)
windows vista security holes (9)
Install XP pro and a Vista laptop ?.. (11)
Print spooler problem (13)
Foreign voltage (10)
Dept. of HS: NSA 'Helped' Develop V.. (15)
Recent Discussions
screen resolution vs monitor size (2)
Wireless Televisions. (9)
radeon x850xt platinum & shader 3 (4)
sms storage to PC (0)
Regular Build (6)
Open With ..... Win7 (0)
java code for fibonacci (1)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (35)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Partition Magic caused HDD problem (3)
Is the PSU I received dead? (11)
Have you switched yet? (85)
Point and Shoot Camera Suggestions. (2)
Modern Warfare 2 freeze (13)
wireless user (1)
World's largest Monopoly Game using G.. (332)
Ideal cheap graph card for PC-Gaming? (17)
BIOS won't read disk when I try to fl.. (0)
Install XP pro and a Vista laptop ?? (11)
Graphics Card Upgrade Question (1)
favorit (1)
solutions for virtical white lines on.. (1)
Fire in DVD (2)
Modern Warfare For the PC (33)


All times are GMT -4. The time now is 02:55 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28