sean14592 Posted April 2, 2008 Share Posted April 2, 2008 Hi, I can't believe im askign this but I keep getting: Parse error: parse error, unexpected $end in C:\Program Files\EasyPHP 2.0b1\www\****\****\page6.php on line 146 line 146 has the simple ?> the rest of the page has: <?php ////INSERT ALL VARIABLES INTO DATABASE! $connect = mysql_connect($host,$username,$password) or die("Error connecting to Database!". mysql_error()); mysql_select_db($database,$connect) or die("cannot select database!".mysql_error()); $request= "INSERT INTO properties values(NULL,'$package','$email','$phone1','$phone2','$pname','$pcity','$pstate','$pcountry','$shortdesc','$shortdesc','$areadesc','$conditions','$changeday','$nearestbeach','$distbeach','$sleeps','$bedrooms','$car','$wheel','$pets','$child','$smoke','$tennis','$water,'$horse','$golf','$fishing','$cycling','$beach','$lake','$winter','$night','$cult','$sight','$events','$sport','$theme','$walk','$sea','$prigarden','$balc','$poolview','$tv','$sattv','$safe','$wifi','$kettle','$toast','$iron','$hair','$dish','$cook','$micro','$air','$log','$fridge','$freez','$wash','$bath','$suite','$shower','$wc','$bid','$sofa','$double','$twin','$single','$bunk','$cot','$high','$dining','$lounge','$linen','$prioutheat','$priinheat','$prioutun','$priinun','$shouheat','$shinhe','$shouun','$shinun','$shgarden','$pripark','$shpark','$24','$gym','$furthdetout','$furthdetin','$bath2','$suite2','$shower2','$wc2','$bid2','$sofa2','$double2','$twin2','$single2','$bunk2')"; $results = mysql_query($request); if($results) { header("Location: reg_done.php"); //Sent to this page once reg conplete. } else { header("Location: errors/reg_account.php"); } mysql_close($link); Die(); ?> Link to comment https://forums.phpfreaks.com/topic/99173-solved-simple-error-but-cant-fix-please-help/ Share on other sites More sharing options...
uniflare Posted April 2, 2008 Share Posted April 2, 2008 need the whole code, count your parenthesis' ( { and } ). try putting } before ?> Link to comment https://forums.phpfreaks.com/topic/99173-solved-simple-error-but-cant-fix-please-help/#findComment-507363 Share on other sites More sharing options...
ansarka Posted April 2, 2008 Share Posted April 2, 2008 in the insert code are you writing $24 by mistake '$shgarden','$pripark','$shpark','$24','$gym','$furthdetout','$furthdetin','$bath2','$suite2','$shower2','$wc2', Link to comment https://forums.phpfreaks.com/topic/99173-solved-simple-error-but-cant-fix-please-help/#findComment-507367 Share on other sites More sharing options...
sean14592 Posted April 2, 2008 Author Share Posted April 2, 2008 Hi, ansarka thanks for that, have change yet I still have error. Cheers Sean Link to comment https://forums.phpfreaks.com/topic/99173-solved-simple-error-but-cant-fix-please-help/#findComment-507370 Share on other sites More sharing options...
sean14592 Posted April 2, 2008 Author Share Posted April 2, 2008 thanks uniflare , fixed! Link to comment https://forums.phpfreaks.com/topic/99173-solved-simple-error-but-cant-fix-please-help/#findComment-507372 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.