-
thanks a lot for your help.finally i am able to solve my problem. this thread is really helpful
-
-
Fatal error: Call to a member function query() on a non-object in D:\wokspace\rts_sea
<?php
class DB{
private $link;
public function DB() {
$db = new DB();
}
public static function connect($host,$user,$passwd,$dbname) {
//$db=new DB();
$db->link = new mysqli($host,$user,$passwd,$dbname);
return $db;
}
public function query($sql) {
return $this->link->query($sql);
}
}
?>
Last edited by dipika; 08-01-2011 at 06:32 AM.
Reason: mistakely posted
-
-
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks