mijn script:
Code: Selecteer alles
<?
$username=$_REQUEST["username"];
$pass=$_REQUEST["pass"];
$myconnection=mysql_connect(localhost,"mijn gebruikersnaam","mijn pass");
mysql_select_db("jeroentjevj_photoshop") or die( "Unable to select database");
$query = "SELECT * FROM `gebruikers` WHERE `username`='$username' AND `wachtwoord`='$pass'";
$result=mysql_query($query);
$time=mysql_result($result,0,"tijd")+0.083333333333333333333333333333333;
echo "$time";
////////////////////tot hier werkt alles prima
mysql_close($myconnection);
$myconnection=mysql_connect(localhost,"mijn gebruikersnaam","mijn pass");
mysql_select_db("jeroentjevj_photoshop") or die( "Unable to select database");
$TESTquery = "UPDATE FROM `gebruikers` SET `tijd` = $time WHERE `username`='$pass' AND `wachtwoord`='$pass'" or die("failed to update");
$result=mysql_query($TESTquery);
?>