Re: [PHP-DB] Sorting issue

2003-08-14 Thread John W. Holmes
Jeff wrote: kwo isn't sorting properly... actually, I need to retest the lsd column too. Can you answer the question we ask please? It's already been pointed out to you several times that a CHARACTER column is going to sort in the manner you found while an INTEGER column will not. So, you MUST b

Re: [PHP-DB] Sorting issue

2003-08-14 Thread Jeff
gosto de 2003 08:51:04 a.m. To: 'Jeff'; [EMAIL PROTECTED] Subject: RE: [PHP-DB] Sorting issue Seeing code might help us. Aaron > -Original Message- > From: Jeff [mailto:[EMAIL PROTECTED] > Sent: August 8,

RE: [PHP-DB] Sorting issue

2003-08-14 Thread Fernando Soto
This would happens if you have defined the data type of the columns as char or varchar.     ---Original Message---   From: Aaron Wolski Date: Viernes, 08 de Agosto de 2003 08:51:04 a.m. To: 'Jeff'; [EMAIL PROTECTED] Subject: RE: [PHP-DB] Sorting issue   Seeing code mig

Re: [PHP-DB] Sorting issue

2003-08-14 Thread John W. Holmes
Jeff wrote: kwo VARCHAR(10) NOT NULL, lsd VARCHAR(20) NOT NULL, duh -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ PHP|Architect: A magazine for PHP Professionals – www.phparch.com -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP-DB] Sorting issue

2003-08-14 Thread John W. Holmes
Jeff wrote: Yes duh... I didn't realize numbers weren't considered characters. What's the sql entry for numeric characters? I'm new at this, and figure I'm not doing to bad so far. . Make them an INT column. It'll hold numbers up to 2 billion+. Or you can use TINYINT which will hold numbers up t

Re: [PHP-DB] Sorting issue

2003-08-14 Thread Jeff
Yes duh... I didn't realize numbers weren't considered characters. What's the sql entry for numeric characters? I'm new at this, and figure I'm not doing to bad so far. . "John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Jeff wrote: > > > kwo VARCHAR(10) NOT NULL, >

Re: [PHP-DB] Sorting issue

2003-08-14 Thread David T-G
Jeff -- ...and then Jeff said... % % One last question. % % I changed all the DB values where numbers are used - (varchar - int) Well, you should only change for those where the numbers are numbers... % % But for the well locations, there are dashes in them, I.E. 10-15-065-22 Exactly. %

Re: [PHP-DB] Sorting issue

2003-08-11 Thread Fernando Soto
  You have to change   kwo VARCHAR(10) NOT NULL,   for  kwo int(10) NOT NULL,   Hope this helps   Fernando Soto       From: Jeff Date: Viernes, 08 de Agosto de 2003 10:36:33 a.m. To: [EMAIL PROTECTED] Subject: Re: [PHP-DB] Sorting issue   Yes duh...   I didn't realize numbers we

Re: [PHP-DB] Sorting issue

2003-08-09 Thread Jeff
Seems like changing the mixed fields back to VARCHAR worked! Thanks again guys! "David T-G" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Sorting issue

2003-08-09 Thread Jeff
kwo isn't sorting properly... actually, I need to retest the lsd column too. "John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Jeff wrote: > > >$query = "SELECT kwo, lsd, date, event FROM $gradient_tablename > > $order_by_str $sor

RE: [PHP-DB] Sorting issue

2003-08-09 Thread Aaron Wolski
Seeing code might help us. Aaron > -Original Message- > From: Jeff [mailto:[EMAIL PROTECTED] > Sent: August 8, 2003 10:44 AM > To: [EMAIL PROTECTED] > Subject: [PHP-DB] Sorting issue > > Why would a mysql db think that 55 was greater than 14000. > > I have several headings that display

Re: [PHP-DB] Sorting issue

2003-08-08 Thread Jeff
One last question. I changed all the DB values where numbers are used - (varchar - int) But for the well locations, there are dashes in them, I.E. 10-15-065-22 With setting the field to int, it only displays the first part. 10-15-065-22 shows as 10 There are also several other fields that use da

Re: [PHP-DB] Sorting issue

2003-08-08 Thread David T-G
Jeff -- ...and then Jeff said... % % Yes duh... *grin* % % I didn't realize numbers weren't considered characters. % What's the sql entry for numeric characters? Integer looks like it will do the trick for you. % % I'm new at this, and figure I'm not doing to bad so far. . I know what yo

Re: [PHP-DB] Sorting issue

2003-08-08 Thread John W. Holmes
Jeff wrote: One last question. I changed all the DB values where numbers are used - (varchar - int) But for the well locations, there are dashes in them, I.E. 10-15-065-22 With setting the field to int, it only displays the first part. 10-15-065-22 shows as 10 There are also several other fields

Re: [PHP-DB] Sorting issue

2003-08-08 Thread John W. Holmes
Jeff wrote: $query = "SELECT kwo, lsd, date, event FROM $gradient_tablename $order_by_str $sort_order_str $limit_str"; So what column is not sorting correctly? Is the column a INTEGER-type column or a CHARACTER-type column... Again: "55" > "14000" 55 < 14000

Re: [PHP-DB] Sorting issue

2003-08-08 Thread Jeff
=P Sure! Heres the List Records section... function list_records() { global $default_dbname, $gradient_tablename; global $default_sort_order, $default_order_by, $records_per_page; global $sort_order, $order_by, $cur_page; global $PHP_SELF; $link_id = db_connect($default_dbname);

Re: [PHP-DB] Sorting issue

2003-08-08 Thread Jeff
Thank you EVERYONE.. AGIAN! *grin* "John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Jeff wrote: > > > Yes duh... > > > > I didn't realize numbers weren't considered characters. > > What's the sql entry for numeric characters? > > > > I'm new at this, and figure I'm