guys its so simple...
"points inserter page"
$points_given=$_GET["pts"];
$points=mysql_query("SELECT * FROM (table) WHERE (username)='(users username)'");
$record=mysql_fetch_array($points);
$points2add=$record["pts"]+$points_given;
$apply=mysql_query("UPDATE (table) SET pts='".$points2add."' WHERE (username)='(username)'");
walla there. easy peasy.
nah i can still use it and i have the latest version of php.
NO ONE IS GOING TO HACK YOU UNLESS YOU PUT UP A OPEN file UPLOADER.
Ehh I don't want to redo my ENTIRE website
well i guess ur right, using mysqli helped me with my games update script
<?
$points=$_GET['points'];
if(is_int($points)){
mysqli_query($CONNECTION,"UPDATE `users` SET `points`=`points`+$points WHERE `username`='Ricky'");
mysqli_close($CONNECTION);
}
?>
That's pretty good.
... It's just an example
The distinguished lilwayne1556 spake:[quote]The distinguished GuitarBoy spake:<blockquote><?
$points=$_GET['points'];
if(is_int($points)){
mysqli_query($CONNECTION,"UPDATE `users` SET `points`=`points`+$points WHERE `username`='Ricky'");
mysqli_close($CONNECTION);
}
?>
That's pretty good.