This topic is locked
[SOLVED]

 How do I display two values in one field

6/15/2020 6:35:00 AM
PHPRunner General questions
M
mhollibush author

I have a table with fname and lname,

I want to display them as one as a link
$value ="<a href='owners_view.php?editid1=". $data["id"] ."'>".$data["fname"]. $data["lname"]."</a>";
This works, but I need a space in between the fname and lname
I am lost on how to accomplish this.... probably pretty simple, but I am stumped
Thanks for any help

mbintex 6/15/2020

Try
$value ="<a href='owners_view.php?editid1=". $data["id"] ."'>".$data["fname"]."&nbsp;". $data["lname"]."</a>";

M
mhollibush author 6/15/2020



Try
$value ="<a href='owners_view.php?editid1=". $data["id"] ."'>".$data["fname"]."&nbsp;". $data["lname"]."</a>";


I thought I tried that... but I missed the period before the "&nbsp"

$value ="<a href='owners_view.php?editid1=". $data["id"] ."'>".$data["fname"] "&nbsp;". $data["lname"]."</a>";
Thank you.... needed a fresh set of eyes looking at it....