TashaAT Posted August 11, 2008 Share Posted August 11, 2008 I bought a script but I am having loads of errors on it the one I am struggling with now refers to a line in the index but the line only has //// in it? What is strange is that in the connection file there is about a 160 lines worth of /// The connection file looks like this: <? $db_host = "localhost"; $db_username = ""; $db_password = ""; $db_name = ""; $script_dir = ""; ///////////////////////////////// THESE CONTINUE FROM LINE TEN TO 170 Why are they there? This is the section where it gives me an error - the error being on the last line it just says Parse error: parse error, unexpected $end if($my_date_day == $i) { $m .= "<option value=\"$i\" selected>$i</option>\n\t"; } else { $m .= "<option value=\"$i\">$i</option>\n\t"; } } $m .= "</select>"; ////////////////////// Any help would be great thanks Quote Link to comment Share on other sites More sharing options...
trq Posted August 11, 2008 Share Posted August 11, 2008 // starts a comment line. There aren't any errors in the code you have posted. Can you tell us what line number the error is stating, the exact error message and post the line and around ten lines prior to it. Quote Link to comment Share on other sites More sharing options...
TashaAT Posted August 12, 2008 Author Share Posted August 12, 2008 I understand that /// is to indicate comments I just found it strange that they had so many in there with no comments? The exact error message is:Parse error: parse error, unexpected $end This is the section where it gives me an error - the error being on the last line the red where all the /// are. //////////////////////////////////////////////////////////// ////////////// days menu - start //////////////////////////////////////////////////////////// $m .= "<select name=\"day\">\n\t<option value=\"\"></option>\n\t"; for($i = 1; $i <= 31; $i++) { if($my_date_day == $i) { $m .= "<option value=\"$i\" selected>$i</option>\n\t"; } else { $m .= "<option value=\"$i\">$i</option>\n\t"; } } $m .= "</select>"; ////////////////////// Here is a link to where I uploaded it http://www.webassist.co.za/recruit/index.php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.