Hi guys, I am converting my old mysql_ * queries to mysqli, except that I have a nasty problem.
$st = $this->Sql->prepare("INSERT INTO tblPlayerOnline (SteamID,PlayerName,IPAddress,ConnectedDate) VALUES (?, ?, ?, ?)") or die($this->Sql->error);
$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 I'm not sure if this error tells me.
Dump $this->Sql http://pastebin.com/gdKAgT4D
Any guidance is appreciated!
PS Looked everywhere -.-
source
share