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
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

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.