Changeset 583 for trunk/pages/admin_finance_modify.php
- Timestamp:
- May 7, 2009, 9:15:17 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pages/admin_finance_modify.php
r474 r583 1 <? 1 <?php 2 2 $lvl = $player -> GetGmLvl(); 3 3 if(1 > 0){ … … 23 23 $operace = $operace_obracene[$oper]; 24 24 25 mysql_connect($db_server, $db_user, $db_pass); 26 mysql_select_db($db_webu); 27 mysql_query("SET NAMES 'utf8'"); 28 $upravit_money = mysql_query("update finance set money='$money' where id='$id2'"); 29 $upravit_operace = mysql_query("update finance set operation='$operace' where id='$id2'"); 30 $upravit_popis = mysql_query("update finance set description='$popis' where id='$id2'"); 31 $upravit_odmenu = mysql_query("update finance set odmena='$odmena' where id='$id2'"); 25 $upravit_money = $db->query("update finance set money='$money' where id='$id2'"); 26 $upravit_operace = $db->query("update finance set operation='$operace' where id='$id2'"); 27 $upravit_popis = $db->query("update finance set description='$popis' where id='$id2'"); 28 $upravit_odmenu = $db->query("update finance set odmena='$odmena' where id='$id2'"); 32 29 33 30 if($upravit_money and $upravit_operace and $upravit_popis and $upravit_odmenu): … … 48 45 ); 49 46 50 $db -> select_db($ db_webu);47 $db -> select_db($Config['Database']['Database']); 51 48 52 49 $load_money = $db -> query("SELECT SUM(`money`) FROM `finance`;") -> fetch_array();
Note:
See TracChangeset
for help on using the changeset viewer.