On Sep 27, 2005, at 3:29 AM, Jasper Bryant-Greene wrote:
mysql> SHOW CREATE TABLE Player|
| Player | CREATE TABLE `Player` (
  `id` int(16) NOT NULL auto_increment,
  `first_name` varchar(32) NOT NULL default '',
  `last_name` varchar(32) NOT NULL default '',
  `year` varchar(16) NOT NULL default '',
  `height` varchar(8) NOT NULL default '',
  `season` int(4) NOT NULL default '0',
  PRIMARY KEY  (`id`),
  KEY `season` (`season`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 |

What column are you ordering on?

The command in PHP is:

$query="SELECT id,first_name,last_name FROM Player ORDER BY id";
$players=mysql_query($query);

When issued from the mysql prompt, order is fine, but when called from php I'm getting that strange order:

1, 10, 11, 12, etc...

Steve Cochran

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to