February 1st, 2013, 09:46 AM
Join Date: Dec 2012
Time spent in forums: 8 h 36 m 44 sec
Reputation Power: 0
PHP5 - Error in script but cant see where?
Hi, I have an error somewhere in this script but i cant see where im going wrong.
Can anyone point me in the right direction.
its a script to allow the edit of some feilds.
$host = "localhost";
$user = "x";
$pass = "x";
$dbname = "x";
$connection = mysql_connect($host,$user,$pass) or die (mysql_errno().": ".mysql_error()."<BR>");
$PCN = $_GET['PCN'];
$results = mysql_query("select PCN, REG from selfticket where PCN = $PCN");
$row = mysql_fetch_row($results);
<a href="edit.php?PCN=<?php echo $row['PCN']; ?>">Edit</a>