pcjames Posted June 21, 2007 Share Posted June 21, 2007 Hi All I'm new to php and I'm trying real hard to learn this so please be kind to me. I'm trying to add a < br > to the below statement right after $reviews['reviews_text' (at the end of statement) while ($reviews = tep_db_fetch_array($reviews_query)) { $info_box_contents[][0] = array('align' => 'left', 'params' => 'class="Info" valign="top"', 'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . (int)$HTTP_GET_VARS['products_id'] . '&reviews_id=' . $reviews['reviews_id']) . '"><b>' . $reviews['customers_name'] . '</b> - ' . tep_date_short($reviews['date_added']) . ' ' . tep_image(DIR_WS_IMAGES . 'stars_' . $reviews['reviews_rating'] . '.gif' , sprintf(BOX_REVIEWS_TEXT_OF_5_STARS, $reviews['reviews_rating'])) . '</a><br> ' . $reviews['reviews_text']) ; } Thanks in advance for any help you can provide me, James Link to comment https://forums.phpfreaks.com/topic/56569-solved-newbie-need-to-put-a-br-in-statement/ Share on other sites More sharing options...
ztealmax Posted June 21, 2007 Share Posted June 21, 2007 think this would work? . $reviews['reviews_text'] . '<br>'); Link to comment https://forums.phpfreaks.com/topic/56569-solved-newbie-need-to-put-a-br-in-statement/#findComment-279404 Share on other sites More sharing options...
pcjames Posted June 21, 2007 Author Share Posted June 21, 2007 Thanks ztealmax! The one was giving me the same result so I added another one and it's working GREAT! . $reviews['reviews_text'] . '<br><br>'); Thanks again for your speedy reply! James Link to comment https://forums.phpfreaks.com/topic/56569-solved-newbie-need-to-put-a-br-in-statement/#findComment-279411 Share on other sites More sharing options...
ztealmax Posted June 21, 2007 Share Posted June 21, 2007 Not a problem :-) Link to comment https://forums.phpfreaks.com/topic/56569-solved-newbie-need-to-put-a-br-in-statement/#findComment-279439 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.