Ignore:
Timestamp:
Apr 10, 2010, 9:49:30 PM (14 years ago)
Author:
nikrou
Message:

Fix some issues with database connections.
install_db_connect() function must return database resource link
insert into set syntax is mysql specific

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions.inc.php

    r5419 r5781  
    10131013DELETE
    10141014  FROM '.CONFIG_TABLE.'
    1015   WHERE param = "'.$param.'"
     1015  WHERE param = \''.$param.'\'
    10161016;';
    10171017  pwg_query($query);
     
    10201020INSERT
    10211021  INTO '.CONFIG_TABLE.'
    1022   SET param = "'.$param.'"
    1023     , value = "'.$value.'"
     1022  (param, value)
     1023  VALUES(\''.$param.'\', \''.$value.'\')
    10241024;';
    10251025  pwg_query($query);
Note: See TracChangeset for help on using the changeset viewer.