Jump to content
New Reality: Ads For Members ×

Fried Brain PHP Question


motorcity

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/275037-fried-brain-php-question/
Share on other sites

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!

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.