Changeset 307 for minimanager/char_edit.php
- Timestamp:
- Mar 13, 2008, 8:18:42 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
minimanager/char_edit.php
r142 r307 29 29 $id = $sql->quote_smart($_GET['id']); 30 30 31 $result = $sql->query("SELECT account FROM `character ` WHERE guid = '$id'");31 $result = $sql->query("SELECT account FROM `characters` WHERE guid = '$id'"); 32 32 33 33 if ($sql->num_rows($result)){ … … 42 42 $sql->connect($characters_db[$realm_id]['addr'], $characters_db[$realm_id]['user'], $characters_db[$realm_id]['pass'], $characters_db[$realm_id]['name']); 43 43 44 $result = $sql->query("SELECT guid,account,data,name,race,class,position_x,position_y,map,online,totaltime,position_z,zone FROM `character ` WHERE guid = '$id'");44 $result = $sql->query("SELECT guid,account,data,name,race,class,position_x,position_y,map,online,totaltime,position_z,zone FROM `characters` WHERE guid = '$id'"); 45 45 $char = $sql->fetch_row($result); 46 46 $char_data = explode(' ',$char[2]); … … 241 241 $id = $sql->quote_smart($_GET['id']); 242 242 243 $result = $sql->query("SELECT account,online FROM `character ` WHERE guid = '$id'");243 $result = $sql->query("SELECT account,online FROM `characters` WHERE guid = '$id'"); 244 244 245 245 if ($sql->num_rows($result)){ … … 333 333 $sql->connect($characters_db[$realm_id]['addr'], $characters_db[$realm_id]['user'], $characters_db[$realm_id]['pass'], $characters_db[$realm_id]['name']); 334 334 335 $result = $sql->query("SELECT data FROM `character ` WHERE guid = '$id'");335 $result = $sql->query("SELECT data FROM `characters` WHERE guid = '$id'"); 336 336 $char = $sql->fetch_row($result); 337 337 $char_data = explode(' ',$char[0]); … … 423 423 } else $teleport = "map='$map', position_x='$x', position_y='$y', position_z='$z',"; 424 424 425 $result = $sql->query("UPDATE `character ` SET data = '$data', name = '$new_name', $teleport totaltime = '$new_tot_time' WHERE guid = '$id'");425 $result = $sql->query("UPDATE `characters` SET data = '$data', name = '$new_name', $teleport totaltime = '$new_tot_time' WHERE guid = '$id'"); 426 426 $sql->close(); 427 427
Note:
See TracChangeset
for help on using the changeset viewer.