Jump to content

[SOLVED] php wrapper for mysql


bogdaniel

Recommended Posts

hello i'm having a problem with a wrapper for mysql_query please cand someone help me ?

var $is_connected; // the var for mysql_connect

 

	public static function query($sql) {
line 33:		$this->query = mysql_query($sql, $this->is_connected);
	if (!$this->query) {
		echo "error";
	}

	return $this->query($sql);
}

 

And the error i'm having

Fatal error: Using $this when not in object context in classes\mysql.class.php on line 33

i can't figure it out how should i do

Link to comment
https://forums.phpfreaks.com/topic/150576-solved-php-wrapper-for-mysql/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.