I'm trying to access the page upd_kar.php from login.php
login.php is a site where you type in your name and pass to get to upd_kar.php but i get an errormessage that something is wrong on line 12 this is the code
<?php
$link = mysql_connect("localhost","","") or die ("Unable to connect to MySQL server.");
mysql_select_db("raser");
$result = mysql_query("SELECT * FROM karaktarer WHERE id=$id");
$row = mysql_fetch_array($result);
?>
Line 12 is eather $result = mysql_query
or
$row = mysql_fetch....
i do not know what i do wrong in this matter... I'm trying to load data in to forms for update but it won't work....
Thanks...