Pear

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Pear

Postby cemplukcute2003 » 22. June 2005 05:47

Hi, i've some code like these :
Code: Select all
   if(!($db = DB::connect(DSN))) {
      $this->errorMsg->setMessage('ERROR_DBCONNECTION');
         return false;
   }

       $query = "SELECT * FROM \"User\" WHERE " .
             "user_login_id='$userName' AND " .
             "user_password=crypt('$userPassword',user_password)";
       
       $db->setFetchMode(DB_FETCH_ASSOC);
       $rs = $db->getAll($query);


But i got an error message :
1. Call to undefined function : setFetchMode();
2. Call to undefined function : getAll();

Can someone help me solve these problems?
cemplukcute2003
 
Posts: 11
Joined: 06. May 2005 05:32

Postby alucard01 » 29. June 2005 05:15

did you include your db.inc file? in your php program
alucard01
 
Posts: 122
Joined: 15. May 2005 13:51


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 29 guests