Guest Posted June 29, 2004 Posted June 29, 2004 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?
funkyneil Posted June 29, 2004 Posted June 29, 2004 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 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>';
Guest Posted June 29, 2004 Posted June 29, 2004 Your code solved my problem....... thank you :D 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" );
funkyneil Posted July 1, 2004 Posted July 1, 2004 what file did you add it to? should it work in any file?
funkyneil Posted July 1, 2004 Posted July 1, 2004 . $whats_new_price)] '<br>'. i think thats whats causing your problem . $whats_new_price . '<br>'. 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.
Guest Posted July 1, 2004 Posted July 1, 2004 THe code is in thte include/boxes/whatsnew.php . $whats_new_price)] is the price of the product displayed in what's new.
funkyneil Posted July 1, 2004 Posted July 1, 2004 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
Guest Posted July 6, 2004 Posted July 6, 2004 I added the code to the include/boxes/manufacturer.php.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.