Free Advertising
www.erichit.com.au


You must be logged in to access this area

If you are not automatically redirected click here

TPhpErrorException

TPhpErrorException

Description

[Notice] Undefined index: uname (@line 497 in file /var/www/quoteseek/app/protected/pages/account.php).

Source File

/var/www/quoteseek/app/protected/pages/account.php (497)

0486: 
0487: public function loaddata(){ //load page data
0488: 
0489: //goto skip;
0490:    require_once './protected/pages/inputs.php';
0491:    require_once './protected/pages/auth.php';
0492:    require_once './protected/pages/checkauth.php';
0493: 
0494: 
0495:     $db = db::getInstance();
0496: 
0497: $username=$_SESSION["uname"];
0498: 0499: //get account data 0500: $query = "SELECT * FROM vAccounts WHERE username='$username'"; 0501: //$result = mysql_query($query) or die('Query failed: ' . mysql_error()); 0502: $rs = $db->dbh->query($query); 0503: //$line = mysql_fetch_array($rs, MYSQL_ASSOC); 0504: $line = $rs->fetch(PDO::FETCH_ASSOC); 0505: $accountid=$line["ID"]; 0506: $AccountCity= $line["City"]; 0507: $AccountSuburb= $line["Suburb"]; 0508: $AccountPostcode= $line["Postcode"]; 0509: $AccountCountryID= $line["CountryID"];

Stack Trace

#0 /var/www/quoteseek/app/protected/pages/account.php(497): PradoBase::phpErrorHandler(8, 'Undefined index...', '/var/www/quotes...', 497, Array)
#1 /var/www/quoteseek/app/protected/pages/account.php(82): account->loaddata()
#2 /var/www/quoteseek/framework/Web/UI/TControl.php(1295): account->onLoad(NULL)
#3 /var/www/quoteseek/framework/Web/UI/TPage.php(222): TControl->loadRecursive()
#4 /var/www/quoteseek/framework/Web/UI/TPage.php(203): TPage->processNormalRequest(Object(THtmlWriter))
#5 /var/www/quoteseek/framework/Web/Services/TPageService.php(524): TPage->run(Object(THtmlWriter))
#6 /var/www/quoteseek/framework/Web/Services/TPageService.php(470): TPageService->runPage(Object(account), Array)
#7 /var/www/quoteseek/framework/TApplication.php(1221): TPageService->run()
#8 /var/www/quoteseek/framework/TApplication.php(410): TApplication->runService()
#9 /var/www/quoteseek/app/index.php(30): TApplication->run()
#10 {main}
2017-09-24 12:52 Apache/2.2.3 (CentOS) PRADO/3.2.3


 
mouseover