soul4soul
Intermediate OT User
Code:
A PHP Error was encountered
Severity: Notice
Message: Undefined index: id
Code:
$account = $_SESSION['id'];
Code:
$account = (int)($_GET['account']);
edit: alright i got it to work using this but i feel like it was a really stupid way to go about it. so can anyone help me?
Code:
$ots = POT::getInstance();
$ots->connect(POT::DB_MYSQL, connection());
$SQL = $ots->getDBHandle();
$SQL = $ots->getDBHandle();
$accountName = $_SESSION['name'];
foreach($SQL->query('SELECT * FROM accounts WHERE name="'.$accountName.'"') as $data)
{
$account=$data['id'];
}
Last edited: