den fulländiga koden på sidan (där jag kodar så att den direkt skickas vidare till en ny sida, men med den koden som ni visa skickades jag inte vidare utan stannade på sidan?? men här e koden:
Kod:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<?php
$con = mysql_connect("localhost","__","__");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("djmusic_se", $con);
$num_points = 10;
SQL_query ("UPDATE credits SET (credits=credits+10) WHERE user='admin'")
?>
//använder som sagt detta!!
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=http://djmusic.se/1/">
<body>
</body>
</html>