chrometweaks.org

Whats the best free web iPage hosting service available ?

Click Here To View All Answers...


My first question is Whats the best free web iPage hosting service available ? Thanks in advance for any answer or 2. Another question I got... I am trying to use this code to display alternate link locations in the reviews.php page. Any suggestions on why this function will not work. I am new at php. Getting this error.

I have everything defined (tep_get_manufacturer and link_1).

<?php.

If (tep_get_manufacturer($reviews['products_id']) == 1).

     {.

Echo "<td class="main"><?php echo '<a href="'tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id='$reviews['products_id']'&reviews_id='$reviews['reviews_id'])'"><u><b>'$reviews['products_name']'</b></u></a> ";.

                           }.

     else.

     {.

Echo" <td class="main"><?php echo '<a href="' .link_1(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id='$reviews['products_id']'&reviews_id='$reviews['reviews_id'])'"><u><b>'$reviews['products_name']'</b></u></a> ";.

?>..

Comments (58)

Hmm... I need to find out myself. I don't know what is the answer to that question. I'll do some poking around and get back to you if I find an useful answer. You should email the people at iPage as they probably could assist you..

Comment #1

Thanks for the fast reply Emmett but still get this error with your code.

It occurs on the line in red:.

<?php.

If (tep_get_manufacturer($reviews['products_id']) == 1).

{.

?>.

<td class="main"><?php echo '<a href="'tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id='$reviews['products_id']'&reviews_id='$reviews['reviews_id'])'"><u><b>'$reviews['products_name']'</b></u></a>';.

<?php.

}.

Else.

{.

?>.

<td class="main"><?php echo '<a href="' .link_1(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id='$reviews['products_id']'&reviews_id='$reviews['reviews_id'])'"><u><b>'$reviews['products_name']'</b></u></a>';.

<?php.

}.

?>..

Comment #2

<?php.

If (tep_get_manufacturer($reviews['products_id']) == 1) {.

?>.

<td class="main"><?php echo '<a href="'tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id='$reviews['products_id']'&reviews_id='$reviews['reviews_id'])'"><u><b>'$reviews['products_name']'</b></u></a>'; ?>.

<?php.

} else {.

?>.

<td class="main"><?php echo '<a href="' .link_1(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id='$reviews['products_id']'&reviews_id='$reviews['reviews_id'])'"><u><b>'$reviews['products_name']'</b></u></a>'; ?>.

<?php.

}.

?>.

It was missing 2 closing PHP tags. Also, don't forget the </td> if you want the tags to close...

Comment #3

You made a mess! Was ink_1 your function?.

<?php.

If (tep_get_manufacturer($reviews['products_id']) == 1) {.

 echo '<td class="main"><a href="'tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id='$reviews['products_id']'&reviews_id='$reviews['reviews_id'])'"><u><b>'$reviews['products_name']'</b></u></a>';.

} else {.

 echo '<td class="main"><a href="'         ink_1(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id='$reviews['products_id']'&reviews_id='$reviews['reviews_id'])'"><u><b>'$reviews['products_name']'</b></u></a>';.

?>..

Comment #4

Thanks Todd your suggestions combined with Emmett's help solved the problem. Thanks again guys...

Comment #5

I am trying to use this code to display alternate link locations in the reviews.php page. Any suggestions on why this function will not work. I am new at php. Getting this error.

I have everything defined (tep_get_manufacturer and link_1).

<?php.

If (tep_get_manufacturer($reviews['products_id']) == 1).

     {.

Echo "<td class="main"><?php echo '<a href="'tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id='$reviews['products_id']'&reviews_id='$reviews['reviews_id'])'"><u><b>'$reviews['products_name']'</b></u></a> ";.

                           }.

     else.

     {.

Echo" <td class="main"><?php echo '<a href="' .link_1(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id='$reviews['products_id']'&reviews_id='$reviews['reviews_id'])'"><u><b>'$reviews['products_name']'</b></u></a> ";.

?>..

Comment #6

I have only had a quick look but try:.

<?php.

If (tep_get_manufacturer($reviews['products_id']) == 1).

{.

?>.

 <td class="main"><?php echo '<a href="'tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id='$reviews['products_id']'&reviews_id='$reviews['reviews_id'])'"><u><b>'$reviews['products_name']'</b></u></a>';.

<?php.

}.

Else.

{.

?>.

 <td class="main"><?php echo '<a href="' .link_1(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id='$reviews['products_id']'&reviews_id='$reviews['reviews_id'])'"><u><b>'$reviews['products_name']'</b></u></a>';.

<?php.

}.

?>..

Comment #7


This question was taken from a support group/message board and re-posted here so others can learn from it.