I have a Modal Show , and I need to put in the same row 2 table data

Asked

Viewed 16 times

-1

$resultado .= '<dt class="col-sm-3">Cidade/Estado</dt>';
$resultado .= '<dd class="col-sm-9">'.$row_user['cidade'] .$row_user['estado'].'</dd>';

the result in Modal comes out like this:

City/State Betimmg

I can’t put a gap between Betim and MG

1 answer

0

You need to put the jailhouse ' ' (space) in your string, but you just gave space in your oq code does not affect at all the end result of the string.

try this:

$resultado .= '<dd class="col-sm-9">' . $row_user['cidade'] . ' ' . $row_user['estado'] . '</dd>';

if for some reason the browser ignores whitespace, enter the character code &nbsp;:

$resultado .= '<dd class="col-sm-9">' . $row_user['cidade'] . '&nbsp;' . $row_user['estado'] . '</dd>';
  • Andre Really missed the simple quotes , solved the problem Grateful

Browser other questions tagged

You are not signed in. Login or sign up in order to post.