Hello List, I am trying to learn PHP and finding it very "difficult" as the books which I am using's code does not work properly. And I have taken to using the Manual available from PHP.net, but still struggling terribly I have a script which receives data from an HTML form and the idea is to insert it into a mysql database. However I just can not get passed this error:
Parse error: parse error, unexpected $end Please can someone help! Here is the code:- <snip..............> <html> <head> <title>Insert Page</title> </head> <body> <?php if (!$categorie || !$description || !requestor) { echo "You have not entered enough info.<br>"; exit; } $category = addslashes($category); $description = addslashes($description); $requestor = addslashes($requestor); @ $db = mysql_connect("localhost", "xxxx", "xxxxx"); if (!$db) { echo "DB not available!"; exit;} mysql_select_db("nnnn"); $query = "insert into work values('".$category."','".$description."','".$requestor."'); $result = mysql_query($query); if (!$result) { echo mysql_error(); exit; } if($result){ echo mysql_affected_rows(); } mysql_close($db); ?> </body> </html> <snip..................> Denham Eva ORACLE Administrator and Developer. Tel: (012) 6418292 Cel:0845043617 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php