Revcms mysql querys

jasjj

New Member
Dec 13, 2010
3
0
Hi,

Anyone know how i get mysql query working for a user? like:

PHP:
<?php$con = mysql_connect("localhost","loginname","password");mysql_select_db("dbname");if (!$con)  {  die('Could not connect: ' . mysql_error());  }
 
 
$query = "UPDATE users SET rank = 3, credits = credits + '1000000', activity_points = activity_points + '200000' WHERE username = '" . $_POST['username'] . "'";mysql_query($query) or die (mysql_error());
 
mysql_close($con);?>
sometext...


it show the text but the query doesnt work
 

Users who are viewing this thread

Top