chrometweaks.org

Does anyone know of a free web iPage hosting service that lets me use python?

Click Here To View All Answers...


My 1st question is: Does anyone know of a free web iPage hosting service that lets me use python? Hoping for any comment. Second question.. I am trying to m=have the manufacturer's name appear under the logo. this is the code I have for the line..

Echo '<a href="'tep_href_link(FILENAME_DEFAULT, 'manufacturers_id='$manufacturers['manufacturers_id']'">'$manufacturers['manufacturers_name'], 'NONSSL', false)'">'$manufacturers['manufacturers_name']'</a><br>'.

This is the error messaqge I am receiving:.

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /www/n/needlept/htdocs/allmanufacturers.php on line 73.

The above line is line 73. What am I doing wrong?..

Comments (102)

Ye, but... you might want to make sure and wait for another person here to confirm it as I am unsure of myself. Better yet, why don't you e-mail the iPage guys because they can answer your iPage question better...

Comment #1

Your code solved my problem....... thank you.

NOw your turn..

I will help you as best I can. I tried adding this code..

'text' => '<a href="'tep_href_link(FILENAME_PRODUCT_INFO, 'products_id='$random_product['products_id'])'">'tep_image(DIR_WS_IMAGES$random_product['products_image'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT)'</a><br><a href="'tep_href_link(FILENAME_PRODUCT_INFO, 'products_id='$random_product['products_id'])'">'$random_product['products_name']'</a><br>'$whats_new_price)] '.

<br>'. '<a href="'tep_href_link(FILENAME_DEFAULT, 'manufacturers_id='$manufacturers['manufacturers_id']'">'$manufacturers['manufacturers_name'], 'NONSSL', false)'">'$manufacturers['manufacturers_name']'</a><br>';.

And am ending up with a parse error........ Why, I am not sure..

Parse error: parse error, unexpected ']' in /www/n/needlept/htdocs/includes/boxes/whats_new.php on line 37.

Also......... is a query required to pull the value of the name out of the database..

This is the query I used..

$manufacturers_query = tep_db_query("select manufacturers_name, manufacturers_id, manufacturers_image from "TABLE_MANUFACTURERS" order by manufacturers_name" );..

Comment #2

What file did you add it to? should it work in any file?..

Comment #3

$whats_new_price)] '<br>'..

I think thats whats causing your problem.

Might work.

How do I get the manufaturers name to appear anywhere in the site, I wanna put the code in a function or as a session variable so I can call it anywhere...

Comment #4

THe code is in thte include/boxes/whatsnew.php.

$whats_new_price)] is the price of the product displayed in what's new...

Comment #5

I've not a clue mate,.

Why is$whats_new_price)] written so? I cant see an open bracket before it confused.

Really need help showing the manufacturer name now..

Comment #6

I am trying to m=have the manufacturer's name appear under the logo. this is the code I have for the line..

Echo '<a href="'tep_href_link(FILENAME_DEFAULT, 'manufacturers_id='$manufacturers['manufacturers_id']'">'$manufacturers['manufacturers_name'], 'NONSSL', false)'">'$manufacturers['manufacturers_name']'</a><br>'.

This is the error messaqge I am receiving:.

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /www/n/needlept/htdocs/allmanufacturers.php on line 73.

The above line is line 73. What am I doing wrong?..

Comment #7

I tried like this and got no syntax errors, i'm trying to use it but it just echoes nothing. am I using it in the wrong place? I've put it into the whats new box, I'm wondering if you can help, I want the manufacturers name to be displayed anywhere in the iPage site but specifically in the whats new box, and maybe underneath each product in the product listing.

Echo '<a href="'tep_href_link(FILENAME_DEFAULT, 'manufacturers_id='$manufacturers['manufacturers_id']'">'$manufacturers['manufacturers_name'], 'NONSSL', false)'">'$manufacturers['manufacturers_name']'</a><br>';..

Comment #8


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