RE: [PHP] Pragmatically changing a "Record Number"

From: Date: Wed, 29 Aug 2007 17:58:43 +0000
Subject: RE: [PHP] Pragmatically changing a "Record Number"
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-261470@lists.php.net to get a copy of this message
[snip] Is there away with PHP that I can pragmatically change that value to the total records in the database more so then a representation of the actual record number? [/snip] 1. Changing the values in an auto-increment column is just Bad[tm], especially if you are using it as a unique index. 2. You can get a row count using mysql_num_rows() 3. Ask yourself, "Is it important to keep the auto-increment field contiguous?" 4. You can always display a row number with PHP that is contiguous, but not representative of the actual column.

« previous php.general (#261470) next »