Changeset 454 for trunk/admin

Show
Ignore:
Timestamp:
04/22/07 14:13:48 (19 months ago)
Author:
michiel
Message:

switch from PEAR::DB to PEAR::MDB2
This is the first round of work. Everything is working now.
We need to replace several calls of $db->query with ->execute
and also lots of code to sanitize data should be replaced
with the MDB2 methods for this.

Make sure you have the PEAR::MDB2 package and the
correct MDB2_Driver_* for your database backend.

for mysql users:
pear install MDB2 MDB2_Driver_mysql

for pgsql users:
pear install MDB2 MDB2_Driver_pgsql

Re #119

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/admin/login.php

    r392 r454  
    5757        } 
    5858        if ($res->numRows()) { 
    59                 $res->fetchInto($row, DB_FETCHMODE_ASSOC); 
     59                $row = $res->fetchRow(MDB2_FETCHMODE_ASSOC); 
    6060                $_SESSION["author_id"]       = $row["id"]; 
    6161                $_SESSION["author_name"]     = $row["login"];