Changeset 92 for dev/common/db.php

Show
Ignore:
Timestamp:
11/25/06 16:43:24 (14 years ago)
Author:
exi
Message:

Updated about page for 1.2.
Made table bgcolor black for alliance images.
Made table bgcolor black for corp images.
The parser now reparsers dupes and deletes comments on killmail deletion.
Changed parser to output some error messages if he doesn't like the mail.
Added conversion code for those funny german mailheader.
Fixed bugs #3 and #4.
Included a fix from Coni to class.ship.php.
Removed the error for unknown solar systems, this is now covered by the parser itself.
Now ordering comments by date.
Fixed db.php:getRow to return false in case of a non valid mysql resource id.
Added the sql killmail limit for home.php.
Added default width/heigth for pictures in kill details.
The searchpage will now redirect you to your hit if it only gets one serach result.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/db.php

    r44 r92  
    11<?php 
    2 require_once("config.php"); 
    3 require_once("globals.php"); 
     2require_once('config.php'); 
     3require_once('globals.php'); 
    44 
    55class DBConnection 
     
    1010            die("Unable to connect to mysql database."); 
    1111 
    12         mysql_selectdb(DB_NAME); 
     12        mysql_select_db(DB_NAME); 
    1313    } 
    1414 
     
    7070    function getRow() 
    7171    { 
    72         $row = mysql_fetch_assoc($this->resid_); 
    73  
    74         return $row; 
     72        if ($this->resid_) 
     73        { 
     74            return mysql_fetch_assoc($this->resid_); 
     75        } 
     76        return false; 
    7577    } 
    7678 
     
    103105    } 
    104106} 
    105  
     107/* 
     108 * this looks like REALLY old code and isnt used anywhere 
     109 * commented out for now 
     110 * 
    106111class DBAction 
    107112{ 
     
    489494    } 
    490495} 
     496*/ 
    491497?>