chrometweaks.org

iPage.com stolen / hijacked domain name.?

Click Here To View All Answers...


First of all iPage.com stolen / hijacked domain name.? Hoping for any comment. Another quick question... Supposedly, there is a parse error in the first line of the cod below. Since I am not that great with php yet... can you guy help me figure out what it is??.

Thanks!!.

If (tep_not_null($product_info['products_model'])) {.

$products_name = $product_info['products_name']'<br><span class="smallText">['$product_info['products_model']']</span>';.

} else {..

Comments (68)

Hmm... I need to find out myself. I don't know what is the right answer. I'll do some research in Google and get back to you if I discover an useful answer. You should email the people at iPage as they probably can help you..

Comment #1

This helps? I've added a contribution yesterday, and I am pretty sure it went wrong somewhere. But I just can figure out what!.

<?php.

} else {.

$product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from "TABLE_PRODUCTS" p, "TABLE_PRODUCTS_DESCRIPTION" pd where p.products_status = '1' and p.products_id = '"(int)$HTTP_GET_VARS['products_id']"' and pd.products_id = p.products_id and pd.language_id = '"(int)$languages_id"'");.

$product_info = tep_db_fetch_array($product_info_query);.

Tep_db_query("update "TABLE_PRODUCTS_DESCRIPTION" set products_viewed = products_viewed+1 where products_id = '"(int)$HTTP_GET_VARS['products_id']"' and language_id = '"(int)$languages_id"'");.

If ($new_price = tep_get_products_special_price($product_info['products_id'])) {.

$products_price = '<s>'$currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id']))'</s> <span class="productSpecialPrice">'$currencies->display_price_nodiscount($new_price, tep_get_tax_rate($product_info['products_tax_class_id']))'</span>'.

If (tep_not_null($product_info['products_model'])) {.

$products_name = $product_info['products_name']'<br><span class="smallText">['$product_info['products_model']']</span>';.

} else {.

$products_name = $product_info['products_name'];.

}.

?>..

Comment #2

If (tep_not_null($product_info['products_model'])) {.

$products_name = $product_info['products_name']'<br><span class="smallText">.

['$product_info['products_model']'].

</span>';.

} else {.

Is the error in the bolded part above ? .

This post has been edited by.

Yesudo.com.

: 18 February 2004, 18:35..

Comment #3

It is saying the error is on line 80, which would be the first line of the code you posted:.

If (tep_not_null($product_info['products_model'])) {..

Comment #4

Try this:.

<?php.

} else {.

$product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from "TABLE_PRODUCTS" p, "TABLE_PRODUCTS_DESCRIPTION" pd where p.products_status = '1' and p.products_id = '"(int)$HTTP_GET_VARS['products_id']"' and pd.products_id = p.products_id and pd.language_id = '"(int)$languages_id"'");.

$product_info = tep_db_fetch_array($product_info_query);.

Tep_db_query("update "TABLE_PRODUCTS_DESCRIPTION" set products_viewed = products_viewed+1 where products_id = '"(int)$HTTP_GET_VARS['products_id']"' and language_id = '"(int)$languages_id"'");.

If ($new_price = tep_get_products_special_price($product_info['products_id'])) {.

$products_price = '<s>'$currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id']))'</s> <span class="productSpecialPrice">'$currencies->display_price_nodiscount($new_price, tep_get_tax_rate($product_info['products_tax_class_id']))'</span>';.

}.

If (tep_not_null($product_info['products_model'])) {.

$products_name = $product_info['products_name']'<br><span class="smallText">['$product_info['products_model']']</span>';.

} else {.

$products_name = $product_info['products_name'];.

}.

?>.

You were missing at least a ";" and a "}" for starters....plus there is another part that was deleted and I am not sure why but try the above first just in case the section that is missing has something to do with the contribution...

Comment #5

Seems work fine!!!.

Thanks a bunch!.

I really don't know what I would do without this forum..

Comment #6

Supposedly, there is a parse error in the first line of the cod below. Since I am not that great with php yet... can you guy help me figure out what it is??.

Thanks!!.

If (tep_not_null($product_info['products_model'])) {.

$products_name = $product_info['products_name']'<br><span class="smallText">['$product_info['products_model']']</span>';.

} else {..

Comment #7

It is something that you changed above it causing the problems...most likely a missing "}" somewhere. Try posting all of the code above it as well until you get to the next <?php that is above (about 15 lines)...

Comment #8


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