Jump to content

Question about /// being used


TashaAT

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/119144-question-about-being-used/
Share on other sites

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

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.