RE: [PHP-DB] Query problem

2003-07-22 Thread jeffrey_n_Dyke
<[EMAIL PROTECTED]> .net.il> cc: Subject: RE: [PHP-DB] Query problem

RE: [PHP-DB] Query problem

2003-07-22 Thread Boaz Yahav
Assuming you run MySQL, why don't you just remove the " ' "? SELECT * FROM MyTable WHERE MyField=NULL Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. Share your code : http://addexample.weberdev.com -Original Message- From: Ron All

Re: [PHP-DB] Query problem

2003-07-22 Thread Ron Allen
How would the entire query look select * from ticket where Type = 'Phone' and ??? "Dirk Kredler" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Am Dienstag, 22. Juli 2003 11:29 schrieb Ron Allen: > > This is what I have > > select * from ticket where Type = 'Line' and Closeddate

RE: [PHP-DB] Query problem

2003-07-22 Thread Peter Lovatt
select * from ticket where Type = 'Line' and (Closeddate IS NULL OR Closeddate ='') or select * from ticket where Type = 'Line' and Closeddate IS NULL HTH Peter -Original Message- From: Ron Allen [mailto:[EMAIL PROTECTED] Sent: 22 July 2003 10:29 To: [EMAIL PROTECTED] Subject: [PHP-DB]

Re: [PHP-DB] Query problem

2003-07-22 Thread Dirk Kredler
Am Dienstag, 22. Juli 2003 11:29 schrieb Ron Allen: > This is what I have > select * from ticket where Type = 'Line' and Closeddate = ' empty space' > and have tried the following > select * from ticket where Type = 'Line' and Closeddate = 'Null' > select * from ticket where Type = 'Line' and Close

Re: [PHP-DB] query problem

2002-01-21 Thread Jason Wong
On Tuesday 22 January 2002 13:18, Sommai Fongnamthip wrote: > Hi, > I have problem with these mysql's query: > > select * from holder, management where holder.id=management.id or > (holder.name=management.name and holder.surname=management.surname) order > by holder.no > > It ta

RE: [PHP-DB] Query problem cont'd..

2001-04-26 Thread Steve Brett
ok. try this. ahven't tested it though ... ?".$months[$x-1]."\n"; } echo ' '; ?> then something like (pref before the dump of months) will be populated when the form refreshes and then isset() will say it has a value and drop inside to create the query. that way you avoid an expe

Re: [PHP-DB] query problem

2001-04-25 Thread Rasmus Lerdorf
> My PHP-embedded query is as follows: > > else if($sortBy == '01') { > $sql = "SELECT * FROM $table_cal WHERE item_activity='$id' AND >DATE_FORMAT('item_date','%m') LIKE '$sortBy'"; > $sortBy = "Month of January"; > } > > * '$sortBy' is equal to '01'. > * MySQL isn't complainin