feyd
Posted: Wed Jul 14, 2004 4:03 am
were you guys holding that info back on purpose... lol, your going to give me grey hair man...
thanks alot for your help feyd and weirdan, you guys got it working for me... regards
hey by the way could you show me how to add to it, right now it's just over writing:
thanks alot 
hey by the way could you show me how to add to it, right now it's just over writing:
Code: Select all
<?php
require('dbconnect.php');
require('check_login.php');
$pts = 100;
$uname = $_GET['uname'];
$pass = $_GET['pass'];
if($pass != "test") {
die("wrong");
} else {
$sob = "SELECT users FROM points WHERE username='".$uname."'";
$sql = "UPDATE users SET points='".$sob."+".$pts."' WHERE username='".$uname."'";
$sun = @mysql_query($sql) or die(mysql_error());
echo "<center>".$sun."</center>";
}
?>