Luxbum.net - Script de galerie photo

Changeset 279

Show
Ignore:
Timestamp:
03/02/08 22:18:29 (9 months ago)
Author:
nicolas
Message:

correction de la creation automatique de la table mysql

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/luxbum-0.6/_fonctions/class/commentaire.class.php

    r68 r279  
    245245    */ 
    246246   function tableExists ($prefix) { 
    247       global $mysqlParam
     247      global $mysql
    248248      $tableName = $prefix.'commentaire'; 
    249       if ($mysqlParam->db_link != null) { 
    250          $res = $mysqlParam->getTableList(); 
    251          while ($row = $mysqlParam->DbNextRow($res)) { 
     249      if ($mysql->db_link != null) { 
     250         $res = $mysql->getTableList(); 
     251         while ($row = $mysql->DbNextRow($res)) { 
    252252            if (in_array ($tableName, $row)) {//print_r($row);echo "$tableName: true"; 
    253253               return true; 
     
    262262    */ 
    263263   function createTable ($prefix) { 
    264       global $mysqlParam
     264      global $mysql
    265265      $tableName = $prefix.'commentaire'; 
    266       if ($mysqlParam->db_link != null) { 
    267          $mysqlParam->DbQuery ( 
     266      if ($mysql->db_link != null) { 
     267         $mysql->DbQuery ( 
    268268            "CREATE TABLE `$tableName` (" . 
    269269            "  `id_comment` int(11) NOT NULL auto_increment," .