Changeset 103 for db


Ignore:
Timestamp:
Sep 30, 2007, 11:00:33 PM (17 years ago)
Author:
hosiplan
Message:

vypadá to že to kódování ještě furt zlobí, ale doma už mi to jede v pohodě

Location:
db
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • db/include/bug_report.php

    r102 r103  
    2525<?php } elseif( $id=="sendbug" ){ ?>
    2626  <?php echo $sql_insert['result']; ?>
    27   <form action="./index.php?id=sendbug" method="post">
     27  <form action="./index.php?id=sendbug" method="post" accept-charset="utf-8">
    2828    <table id="sendbug" border="0" cellspacing="0" cellpadding="2">
    2929      <tr><td>
  • db/post_read.php

    r102 r103  
    124124  mysql_select_db($Config['DB_read']['DB_read']['Database_web'])
    125125    OR DIE("<p>Nepodařilo se nastavit pracovní databázi ".$Config['DB_read']['DB_read']['Database_web']."!</p>");
     126    @mysql_query("SET CHARACTER SET utf8"); 
    126127
    127128  $sql_select = SQLselect_Strankovani("SELECT * FROM `bug_report` ORDER BY `opraveno` ASC, `vlozeno` DESC", $limit, 20, "?id=bugreport", $SID);
     
    151152  mysql_select_db($Config['DB_read']['DB_read']['Database_web'])
    152153    OR DIE("<p>Nepodařilo se nastavit pracovní databázi ".$Config['DB_read']['DB_read']['Database_web']."!</p>");
     154    @mysql_query("SET CHARACTER SET utf8"); 
    153155
    154156  $sql_select['sql'] = mysql_query("SELECT * FROM `bug_report` WHERE id=$bug LIMIT 1");
     
    168170  mysql_select_db($Config['DB_read']['DB_read']['Database_web'])
    169171    OR DIE("<p>Nepodařilo se nastavit pracovní databázi ".$Config['DB_read']['DB_read']['Database_web']."!</p>");
     172    @mysql_query("SET CHARACTER SET utf8"); 
    170173
    171174  $sql_insert['sql'] = "INSERT INTO `bug_report` (`nick`,`typ`,`vlozeno`,`popis`) VALUES('".$_POST['game_nick']."','".$_POST['err_type']."','".time()."','".$_POST['popis']."')";
Note: See TracChangeset for help on using the changeset viewer.