Ok heres the problem. This is a contribution file from oscommerce for Link management.
Basically I think there is something wrong with the following lines :
case 'links':
require(DIR_WS_FUNCTIONS . 'links.php');
$links_query = tep_db_query("select links_url from " . TABLE_LINKS . " where links_id = '" . (int)$HTTP_GET_VARS['goto'] . "'");
if (tep_db_num_rows($links_query)) {
$link = tep_db_fetch_array($links_query);
tep_update_links_click_count($HTTP_GET_VARS['goto']);
tep_redirect($link['links_url']);
}
Heres what is happening when clicking on a link from the links page it is returning the following url:
http://lovetrix.co.uk/shop/redirect.php/action/links/goto/
when it should be returning the following
http://lovetrix.co.uk/shop/redirect.php/action/links/goto/1
so basically it isn't picking up on the link id and placing it at the end.
Can anybody see the reason for this????
If you need more info then let me know and I czan provide it, for now I have left the links page up on my site but will have to remove it shortly if this problem can't be resolved.
you can see the problem directly from my site www.lovetrix.co.uk the links page is listed in the lefthand column near the bottom of the page.
I appreciate any help with this :-)