RyanSmith Posted January 10, 2005 Posted January 10, 2005 This code doesn't print anything. Can someone tell me what I did wrong? <?php tep_href_link('index.php', 'cPath=31_32'); ?>"> osCommerce is a great piece of software with wonderful contributions. Spend some time in the contribution area. There are a lot of gems there.
radders Posted January 10, 2005 Posted January 10, 2005 Try this: <a href="<?php echo tep_href_link('index.php?cPath=31_32', '','NONSSL');?>">Link Text</a>
RyanSmith Posted January 10, 2005 Author Posted January 10, 2005 Try this: <a href="<?php echo tep_href_link('index.php?cPath=31_32', '','NONSSL');?>">Link Text</a> <{POST_SNAPBACK}> Nope it's still not printing anything. I have no idea whats going on osCommerce is a great piece of software with wonderful contributions. Spend some time in the contribution area. There are a lot of gems there.
radders Posted January 10, 2005 Posted January 10, 2005 Nope it's still not printing anything.I have no idea whats going on <{POST_SNAPBACK}> Now I am really puzzled. I virtually cut and pasted that from my site where is working fine.
RyanSmith Posted January 10, 2005 Author Posted January 10, 2005 Now I am really puzzled. I virtually cut and pasted that from my site where is working fine. <{POST_SNAPBACK}> Ya, I don't get it either. You would think it would throw an error or something. But it doesn't print anything. osCommerce is a great piece of software with wonderful contributions. Spend some time in the contribution area. There are a lot of gems there.
Rob123 Posted January 10, 2005 Posted January 10, 2005 Nope it's still not printing anything.I have no idea whats going on <{POST_SNAPBACK}> You must try David's suggestion outside of <?PHP ?> tags and within regular HTML tags. HTH, Robert
RyanSmith Posted January 10, 2005 Author Posted January 10, 2005 You must try David's suggestion outside of <?PHP ?> tags and within regular HTML tags. HTH, Robert <{POST_SNAPBACK}> Outside of the PHP tags it just prints out the text tep_href_link('index.php?cPath=31_32', '','NONSSL'); From within the PHP tags, it prints out nothing. osCommerce is a great piece of software with wonderful contributions. Spend some time in the contribution area. There are a lot of gems there.
RyanSmith Posted January 10, 2005 Author Posted January 10, 2005 OK. I feel like a jack ass. I have been struggling with this all day, and my problem was that I didn't add the echo before the function call. Needs to look like this: <?php echo tep_href_link('index.php?cPath=31_32', '','NONSSL'); ?> Thanks for your help, I appericate it. osCommerce is a great piece of software with wonderful contributions. Spend some time in the contribution area. There are a lot of gems there.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.