Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

one second of your time, 8 hours of mine


zebraplayer

Recommended Posts

Posted

Okay folks,

 

I have the following line:

 

$languages_string = '';

reset($lng->catalog_languages);

while (list($key, $value) = each($lng->catalog_languages)) {

$languages_string .= ' <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . tep_image(DIR_WS_LANGUAGES . $value['directory'] . '/images/' . $value['image'], $value['name']) . '<?php echo CHANGE_LANGUAGE; ?></a> ';

 

Obviously the part in bold is not right. I say obviously, because I know it doesn't work. But I don't know why it doesn't work because I'm a total newbie and get lost in all the . ' . and what not. Can someone give me the solution to this puzzle?

 

I am tring to make the link following the image, be called from a definition in the language files.

 

Thanks for looking.

 

zp

Archived

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

×
×
  • Create New...