Re: Query structure puzzle

2002-03-03 Thread DL Neil
John, > > > I can see no explanation in the data stored in the table. > > The important thing is what MySQL 'sees'! > > > > You've already started testing your premise << > are > > either "input" or "published">>> One suggestion would be to use the > > MySQL client for investigations, then if you

Re: Query structure puzzle

2002-03-02 Thread John Hughes
I ran the following command to change the status field from a varchar text to ENUM("Input","Published") NOT NULL $sql = "ALTER TABLE $table_name CHANGE status status ENUM(\"Input\",\"Published\") NOT NULL "; The changes took effect according to the comm

Re: Query structure puzzle

2002-03-02 Thread Jeff Kilbride
Have you tried running these from the command line mysql client, to see what may be up? Maybe you have a variable in your code that's not getting re-initialized properly. If you get the same results from the mysql client, it might be time to run myisamchk on your table. (or just dump the data, dr

Re: Query structure puzzle

2002-03-02 Thread John Hughes
--- DL Neil <[EMAIL PROTECTED]> wrote: > John, > > > I tried using LIKE \"%published%\" and even LIKE \"%ub%\" The > > results are the same as when I attempt = \"published\" > > > > Something in the query processing works differently when = is > used in > > the WHERE. > > > > I can see no expla

Re: Query structure puzzle

2002-03-02 Thread DL Neil
John, > I tried using LIKE \"%published%\" and even LIKE \"%ub%\" The > results are the same as when I attempt = \"published\" > > Something in the query processing works differently when = is used in > the WHERE. > > I can see no explanation in the data stored in the table. The important thing

Re: Query structure puzzle

2002-03-02 Thread John Hughes
re any other funky characters > causing > problems. If the modified where conditions return the correct > results, > there's something wrong with the data. > > --jeff > > - Original Message - > From: "John Hughes" <[EMAIL PROTECTED]> > To:

Re: Query structure puzzle

2002-03-02 Thread John Hughes
--- Georg Richter <[EMAIL PROTECTED]> wrote: > On Saturday, 2. March 2002 09:32, John Hughes wrote: > > I have a table with approximately 600 rows. Two of the fields are > > "record_date" and "status" Every record has an entry in the > > "record_date" in -00-00 format. The "status" is eithe

Re: Query structure puzzle

2002-03-02 Thread Georg Richter
On Saturday, 2. March 2002 09:32, John Hughes wrote: > I have a table with approximately 600 rows. Two of the fields are > "record_date" and "status" Every record has an entry in the > "record_date" in -00-00 format. The "status" is either "input" > or "published" (I DID NOT create this colu

Re: Query structure puzzle

2002-03-02 Thread Jeff Kilbride
something wrong with the data. --jeff - Original Message - From: "John Hughes" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, March 02, 2002 12:32 AM Subject: Query structure puzzle > I have a table with approxima

Query structure puzzle

2002-03-02 Thread John Hughes
I have a table with approximately 600 rows. Two of the fields are "record_date" and "status" Every record has an entry in the "record_date" in -00-00 format. The "status" is either "input" or "published" (I DID NOT create this colum as ENUM; those are simply the only values my PHP interface