osCommerce Preview Release 2.2 Database Update Script

This script updates the address book table so that the address_book_id field becomes auto_increment again.

Database Server Information
Server: (eg, 192.168.0.1)
Username: (eg, root)
Password: (eg, bee)
Database: (eg, catalog)
 
' . $errno . ' - ' . $error . '

' . $query . '

[TEP STOP]

'); } function tep_db_query($db_query) { global $db_link; $result = mysql_query($db_query, $db_link) or tep_db_error($db_query, mysql_errno(), mysql_error()); return $result; } function tep_db_fetch_array($db_query) { $result = mysql_fetch_array($db_query); return $result; } tep_db_connect() or die('Unable to connect to database server!'); tep_db_query("alter table address_book change address_book_id address_book_id int not null auto_increment"); ?> Done!