Changeset 5781


Ignore:
Timestamp:
04/10/10 21:49:30 (9 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

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions_install.inc.php

    r5408 r5781  
    147147                                  $_POST['dbpasswd'], $_POST['dbname']); 
    148148  
    149     return true; 
     149    return $pwg_db_link; 
    150150  } 
    151151  catch (Exception $e) 
  • 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); 
  • trunk/install.php

    r5571 r5781  
    263263if ( isset( $_POST['install'] )) 
    264264{ 
    265   if (install_db_connect($infos, $errors)) 
     265  if ($pwg_db_link = install_db_connect($infos, $errors)) 
    266266  { 
    267267    $required_version = constant('REQUIRED_'.strtoupper($dblayer).'_VERSION'); 
Note: See TracChangeset for help on using the changeset viewer.