I cant see the problem in my update form, but no matter what i do it will not update my db. I was hoping someone in here could help me out.
I have tried to use mysql_error() after the update statement but no errors was found and have tried echoing out the update statement and couldn't see any problems.
URL = http://localhost/maga/php/update_red.php?id=6&read=14
<?php
$host="localhost";
$pass="*****";
$user="my_db_user";
$db="my_db_name";
$tblname="artikler";
$con=mysql_connect($host, $user, $pass)or die(mysql_error());
mysql_select_db($db)or die(mysql_error());
$read=(int)$_GET['read'];
$id=$_GET['id'];
$read++;
mysql_query("UPDATE $tblname SET read='$read' WHERE id='$id'");
?>
$idvariable.