Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. $user='root';
  2. $pass='';
  3. $db='szlxabt_sze_adb_kotprog';
  4. $db=new mysqli('localhost', $user, $pass, $db) or die("Unable to connect");
  5.  
  6. $sql = "UPDATE item SET ad=".$_POST['ad'].", ap=".$_POST['ap'].", hp=".$_POST['hp'].", cdr=".$_POST['cdr'].", cost=".$_POST['cost']." WHERE itemname = '".$_POST['selectItem']."'";
  7. echo $sql;
  8. $db->query($sql);
  9. $db->close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement