Page 3 of 3 FirstFirst 123
Results 21 to 23 of 23

Thread: simple search engine

  1. #21
    Join Date
    Jun 2011
    Posts
    12
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    thanks a lot for your help.finally i am able to solve my problem. this thread is really helpful

  2. #22
    Join Date
    Jun 2011
    Posts
    12
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default 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

  3. #23
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    557
    Thanks
    8
    Thanked 66 Times in 66 Posts

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •