Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $user='root';
- $pass='';
- $db='szlxabt_sze_adb_kotprog';
- $db=new mysqli('localhost', $user, $pass, $db) or die("Unable to connect");
- $sql = "UPDATE item SET ad=".$_POST['ad'].", ap=".$_POST['ap'].", hp=".$_POST['hp'].", cdr=".$_POST['cdr'].", cost=".$_POST['cost']." WHERE itemname = '".$_POST['selectItem']."'";
- echo $sql;
- $db->query($sql);
- $db->close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement