skorp Posted December 3, 2006 Share Posted December 3, 2006 Im running my php on localhost, does this mean i need to set a value for season or some sort of unique id?Ive done everything I can think of, I posted another issue and resolved it. Here is current issue.I cant login or register new users to my database, error ;[code]Fatal error: Undefined class name 'db' in c:\\\www\CLockTableCmd.php on line 11[/code][code]<?phprequire_once( "DB.php" );require_once( "CCommand.php" );require_once( "CUnlockTableCmd.php" );require_once( "settings.php" );class CLockTableCmd extends CCommand{ function Execute( $sTableName ) { // connect to the db $db = DB::connect( $GLOBALS['g_PearDBDSN'] ); if (DB::isError( $db )) { // let everyone know that there has been a problem $this->OnError("Failed to connect to the database using " . $GLOBALS['g_PearDBDSN'] . $db->getMessage()); // return failure return CMD_ERROR; } // try to lock $result = $db->Query( "LOCK TABLES $sTableName WRITE" ); if (DB::isError( $result )) { // let everone know there is a problem $this->OnError("Failed to lock $sTableName"); // return failure return CMD_ERROR; } else { // it is only if we reach this far that we // need to worry about rolling back the command $this->m_bNeedRollBack = true; } // this command is successfully completed return CMD_FINISHED; } function OnRollBack() { // if we don't need to roll back, don't if ( $this->m_bNeedRollBack == false ) { return; } // create an instance of the unlock table command with no parent $unlock = new CUnlockTableCmd( $null ); // execute it to unlock the table $unlock->Execute( ); }}?>[/code]Thanks,skorp Link to comment https://forums.phpfreaks.com/topic/29321-noobie-questions/ Share on other sites More sharing options...
chriscloyd Posted December 3, 2006 Share Posted December 3, 2006 uninstall all that shiznit and install xampp Link to comment https://forums.phpfreaks.com/topic/29321-noobie-questions/#findComment-134425 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.