Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Syntax error in default.php


Guest

Recommended Posts

Hi,

I am using the 2.2 MS1

 

I am getting a syntax error in line 271 shich is the "while" line. Anybody see the problem?

 

 $column_list = array();



   reset($define_list);



   while (list($column, $value) = each($define_list)) {



     if ($value) $column_list[] = $column;



   }







   $select_column_list = '';

Link to comment
Share on other sites

Nevermind, I think this has to do with my javascript for hiding email addresses from spiders. It is not on line 271, but when I refresh the page the error is gone.

 

Any javascript gurus out there, any problems with this code:

 

<tr><td colspan="3" align="center" class="main">If we can answer any questions or help in any way, please feel free to email us at 

 <script language=javascript> 



<!-- 

var username = "sales"; 

var hostname = "mykeepsakebooks.com"; 

var linktext = username + "@" + hostname; 

document.write("<a href=" + "mail" + "to:" + username + 

"@" + hostname + ">" + linktext + "</a>") 

//--> 

</script>.

</td></tr>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...