Jump to content

Fried Brain PHP Question


Go to solution Solved by requinix,

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!

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.