Jump to content


Photo

Fried Brain PHP Question


Best Answer requinix, 27 February 2013 - 08:15 PM

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]);
Go to the full post


  • Please log in to reply
2 replies to this topic

#1 motorcity

motorcity

    Member

  • Members
  • PipPip
  • 26 posts

Posted 27 February 2013 - 08:03 PM

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?



#2 requinix

requinix

    Hopeless Member

  • Moderators
  • 5,991 posts
  • LocationWA

Posted 27 February 2013 - 08:15 PM   Best Answer

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]);

When in doubt, CHECK YOUR ERROR LOG

#3 motorcity

motorcity

    Member

  • Members
  • PipPip
  • 26 posts

Posted 27 February 2013 - 08:50 PM

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!






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com