Changeset 279
- Timestamp:
- 03/02/08 22:18:29 (9 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/luxbum-0.6/_fonctions/class/commentaire.class.php
r68 r279 245 245 */ 246 246 function tableExists ($prefix) { 247 global $mysql Param;247 global $mysql; 248 248 $tableName = $prefix.'commentaire'; 249 if ($mysql Param->db_link != null) {250 $res = $mysql Param->getTableList();251 while ($row = $mysql Param->DbNextRow($res)) {249 if ($mysql->db_link != null) { 250 $res = $mysql->getTableList(); 251 while ($row = $mysql->DbNextRow($res)) { 252 252 if (in_array ($tableName, $row)) {//print_r($row);echo "$tableName: true"; 253 253 return true; … … 262 262 */ 263 263 function createTable ($prefix) { 264 global $mysql Param;264 global $mysql; 265 265 $tableName = $prefix.'commentaire'; 266 if ($mysql Param->db_link != null) {267 $mysql Param->DbQuery (266 if ($mysql->db_link != null) { 267 $mysql->DbQuery ( 268 268 "CREATE TABLE `$tableName` (" . 269 269 " `id_comment` int(11) NOT NULL auto_increment," .
