Changeset 102 for db/index.php


Ignore:
Timestamp:
Sep 30, 2007, 10:22:32 PM (17 years ago)
Author:
hosiplan
Message:

Doufám že teď už bude diakritika ok :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • db/index.php

    r98 r102  
    1414  @mysql_connect( $Config['DB_read']['Database']['Host'], $Config['DB_read']['Database']['User'], $Config['DB_read']['Database']['Password'] )
    1515    OR DIE("<p>Vyskytla se chyba a nelze se připojit k databázi.<br> Zkuste to později.</p>");
    16   $DB_mangos = mysql_select_db($Config['DB_read']['DB_read']['Database_mangos']);
    17     if( !$DB_mangos ){ DIE("<p>Nepodařilo se nastavit pracovní databázi ".$Config['DB_read']['DB_read']['Database_mangos']."!</p>"); };
     16  @mysql_select_db($Config['DB_read']['DB_read']['Database_mangos'])
     17    OR DIE("<p>Nepodařilo se nastavit pracovní databázi ".$Config['DB_read']['DB_read']['Database_mangos']."!</p>");
    1818/*  $DB_realmd = mysql_select_db($Config['DB_read']['DB_read']['Database_realmd']);
    1919    if( !$DB_realmd ){ DIE("<p>Nepodařilo se nastavit pracovní databázi ".$Config['DB_read']['DB_read']['Database_realmd']."!</p>"); };
    2020  $DB_web = mysql_select_db($Config['DB_read']['DB_read']['Database_web']);
    2121    if( !$DB_web ){ DIE("<p>Nepodařilo se nastavit pracovní databázi ".$Config['DB_read']['DB_read']['Database_web']."!</p>"); }; */
    22   @mysql_query("SET NAMES ".$Config['DB_read']['DB_read']['Charset']);
     22  @mysql_query("SET CHARACTER SET utf8");
    2323
    2424/* =========== Speciální FCE =========== */
Note: See TracChangeset for help on using the changeset viewer.