/[LeafOK_CVS]/lbbs/src/database.c
ViewVC logotype

Diff of /lbbs/src/database.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 by sysadm, Tue Oct 19 17:11:28 2004 UTC Revision 1.2 by sysadm, Wed Oct 20 07:46:32 2004 UTC
# Line 21  Line 21 
21  MYSQL *  MYSQL *
22  db_open ()  db_open ()
23  {  {
24      MYSQL *db;
25      
26      db = mysql_init(NULL);
27      if (db == NULL)
28      {
29        log_error("mysql_init() failed\n");
30        return NULL;
31      }
32    
33      db = mysql_real_connect(db, DB_host, DB_username, DB_password, DB_database,
34        0, NULL, 0);
35      if (db == NULL)
36      {
37        log_error("mysql_connect() failed\n");
38        return NULL;
39      }
40  }  }


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1