RE: Pragmatically changing a "Record Number"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[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.
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux