Johno
:: xHosts :: www.xhosts.uk
- Sep 12, 2011
- 586
- 255
Hey
Im new to php coding but trying to code a update script for my users
here is what i have so far but its not working
<?php
$username = $_SESSION['username'];
$userq = mysql_query("SELECT * FROM users WHERE username = '".$username."' LIMIT 1");
$user = mysql_fetch_array($userq);
mysql_query("UPDATE users SET rank = '3' WHERE username = '".$username."'" "SET credits = '+1000000"');
?>
Im new to php coding but trying to code a update script for my users
here is what i have so far but its not working
<?php
$username = $_SESSION['username'];
$userq = mysql_query("SELECT * FROM users WHERE username = '".$username."' LIMIT 1");
$user = mysql_fetch_array($userq);
mysql_query("UPDATE users SET rank = '3' WHERE username = '".$username."'" "SET credits = '+1000000"');
?>