motorcity Posted February 28, 2013 Share Posted February 28, 2013 Sorry folks. It's been a long day, and none of it had to do with php. I have this code; $products_description = tep_db_prepare_input($data_row[1] . $data_row[2] . $data_row[3]); It "concats" I believe is the correct term, simply joins the data without adding spaces or anything else. I'm trying to duplicate that to a degree except I want to add html <br> between two datarows; $sql_data_array[‘products_description5′] = tep_db_prepare_input($data_row[4] ‘<br>’ $data_row[5]); or is it more like... $sql_data_array[‘products_description5′] = tep_db_prepare_input($data_row[4] . ‘<br>’ . $data_row[5]); Kinda running on empty here. I'm perfectly willing to find it myself. But what the heck would I search for? Quote Link to comment https://forums.phpfreaks.com/topic/275037-fried-brain-php-question/ Share on other sites More sharing options...
Solution requinix Posted February 28, 2013 Solution Share Posted February 28, 2013 It's more like the second one, but make sure you aren't using smart quotes. $products_description = tep_db_prepare_input($data_row[1] . ' ' . $data_row[2] . ' ' . $data_row[3]); Quote Link to comment https://forums.phpfreaks.com/topic/275037-fried-brain-php-question/#findComment-1415514 Share on other sites More sharing options...
motorcity Posted February 28, 2013 Author Share Posted February 28, 2013 It's more like the second one, but make sure you aren't using smart quotes. $products_description = tep_db_prepare_input($data_row[1] . '<br>' . $data_row[2] . '<br>' . $data_row[3]); Thanks. I'm not sure how I got those odd quotes. I copied this from my personal notes blog (wordpress) Something else to look into.Thanks again! Quote Link to comment https://forums.phpfreaks.com/topic/275037-fried-brain-php-question/#findComment-1415522 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.