Ignore:
Timestamp:
Mar 9, 2010, 1:01:14 PM (15 years ago)
Author:
george
Message:
  • Upraveno: Přejmenovány všechny tabulky textů na názvy s prvními velkými písmeny ve slovech plus pro odlišení s prefixem Text.
  • Upraveno: Další SQL dotazy doplněny o SQL uvozovky.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/global_function.php

    r365 r366  
    256256 
    257257  $Result = array();
    258   $DbResult = $Database->SQLCommand('SELECT * FROM `group` ORDER BY `name`');
     258  $DbResult = $Database->SQLCommand('SELECT * FROM `Group` ORDER BY `Name`');
    259259  while($DbRow = mysql_fetch_assoc($DbResult))
    260260  {
     
    262262    $Result[$DbRow['Id']] = $DbRow;
    263263  }
    264   $DbResult = $Database->SQLCommand('SELECT * FROM `group_item`');
     264  $DbResult = $Database->SQLCommand('SELECT * FROM `GroupItem`');
    265265  while($DbRow = mysql_fetch_assoc($DbResult))
    266266  {
     
    378378  if(isset($BuildNumbers[$Version]) == false)
    379379  {
    380     $sql = 'SELECT `BuildNumber` FROM `wow_client_version` WHERE `Version` = "'.$Version.'"';
     380    $sql = 'SELECT `BuildNumber` FROM `ClientVersion` WHERE `Version` = "'.$Version.'"';
    381381    $DbRow = mysql_fetch_assoc($Database->SQLCommand($sql));
    382382    $BuildNumbers[$Version] = $DbRow['BuildNumber'];
     
    391391  if(isset($VersionsWOW[$BuildNumber]) == false)
    392392  {
    393     $sql = 'SELECT `Version` FROM `wow_client_version` WHERE `BuildNumber` = "'.$BuildNumber.'"';
     393    $sql = 'SELECT `Version` FROM `ClientVersion` WHERE `BuildNumber` = "'.$BuildNumber.'"';
    394394    $Version = mysql_fetch_assoc($Database->SQLCommand($sql));
    395395    $VersionsWOW[$BuildNumber] = $Version['Version'];
     
    404404  if(isset($DBCColumns[$Version][$DBCFileName]) == false)
    405405  {
    406     $sql = 'SELECT `DBCColumns_'.$DBCFileName.'` AS `DBCColumns` FROM `wow_client_version` WHERE `Version` = "'.$Version.'"';
     406    $sql = 'SELECT `DBCColumns_'.$DBCFileName.'` AS `DBCColumns` FROM `ClientVersion` WHERE `Version` = "'.$Version.'"';
    407407    $DbRow = mysql_fetch_assoc($Database->SQLCommand($sql));
    408408    $DBCColumns[$Version][$DBCFileName] = $DbRow['DBCColumns'];
     
    417417  if(isset($DBCColumnIndex[$Version][$DBCFileName][$Column]) == false)
    418418  {
    419     $sql = 'SELECT `'.$DBCFileName.'_'.$Column.'` AS `DBCColumns` FROM `wow_client_version` WHERE `Version` = "'.$Version.'"';
     419    $sql = 'SELECT `'.$DBCFileName.'_'.$Column.'` AS `DBCColumns` FROM `ClientVersion` WHERE `Version` = "'.$Version.'"';
    420420    $DbRow = mysql_fetch_assoc($Database->SQLCommand($sql));
    421421    $DBCColumnIndex[$Version][$DBCFileName][$Column] = $DbRow['DBCColumns'];
Note: See TracChangeset for help on using the changeset viewer.