RE: [PHP-DB] SELECT statement problem

From: Date: Thu, 15 Aug 2002 18:31:04 +0000
Subject: RE: [PHP-DB] SELECT statement problem
Groups: php.db 
Request: Send a blank email to php-db+get-21158@lists.php.net to get a copy of this message
Can you echo out the sql going in and any errors you're getting when the query doesn't work then post that info to this list? It'll help both you and us diagnose what might be going wrong. In addition, what datatype are the columns named start and end in your database? (Assuming database is MySQL) Rich -----Original Message----- From: Evan S. Weiner [mailto:evan.weiner@vnsweb.com] Sent: Thursday, August 15, 2002 2:15 PM To: php-db@lists.php.net Subject: [PHP-DB] SELECT statement problem Hello all, I have this SQL statement I am trying to use and no matter what combination I use, I cannot get it to work. The start and end if clauses need to be grouped together. SELECT * FROM tickets_work WHERE employee_id = '$tech_id' && ( start > '$start' && end < '$end' ) ORDER BY start Anyone able to help me? Thanks! Evan -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.db (#21158) next »