I am converting my old mysql_* queries over to mysqli except i'm having a frustrating issue
$st = $this->Sql->prepare("INSERT INTO tblPlayerOnline (SteamID,PlayerName,IPAddress,ConnectedDate) VALUES (?, ?, ?, ?)") or die($this->Sql->error);
/* 225 */ $st->bind_param("i", $SteamID);
$st->bind_param("ssi", $PlayerName, $IPAddress, $TimeNow);
$st->execute();
Fatal error: Call to a member function bind_param() on a non-object in /home/vanrust/public_html/rework/class/Players.class.php on line 225
But when I dump $this->Sql
I get object(mysqli)#2 (19) { bla bla
so not sure what this error is telling me.
Dump of $this->Sql
http://pastebin.com/gdKAgT4D
Any guidance is appreciated!
PS Looked Everywhere -.-