"); // first create the schema $result=set_dbschema(); if (!$result) { echo(mkerror(_('Install FAILED'))."
\n"); } else { echo (_('Install done')."
"); } // then enter some initial data $result=initialize_db(); if (!$result) { echo(mkerror(_('Initial data entering failed'))."
\n"); } else { echo (_('Initial data entering done')."
"); } // the db is now ok, so we now update the version $sql="DELETE FROM ".$GLOBALS['ESPCONFIG']['version_table']; $result = execute_sql($sql); if (!$result) { echo(mkerror(_('Version delete FAILED'))."
\n"); } $sql="INSERT INTO ".$GLOBALS['ESPCONFIG']['version_table']." (versionid) VALUES ('$new_version')"; $result = execute_sql($sql); if (!$result) { echo(mkerror(_('Version update FAILED'))."
\n"); } } # end if (version_compare... } else { // we check the version $db_version = get_dbversion(); $new_version = $ESPCONFIG['version']; if (version_compare($db_version,$new_version,"eq")) { echo(_('Install not needed')); } else { echo (_('Install database')); ?>


If you see this screen and you have phpesp already installed using the current db config, it might be because the default table prefix setting has changed. Use this link to update non-prefixed tables to the correct prefix, or change the variable \$DB_PREFIX in the config file.

"); } echo("
" . _('Go back to Management Interface') . "\n"); ?>