01-19-2017, 12:07 PM
I realised during my test i was arranging the $m incorrectly in the string.
So trying out a simple test by manually setting prints out correctly with the following:
for your use it should be:
breaking down into its sections helps when trying to work out concatenations:
I have changed the quotes from to for ease of reading, either works.
I hope this solves it for you. If not then i will need to test with the sql query and results filter.
So trying out a simple test by manually setting
Code:
$m
Code:
$fname
Code:
lname
Code:
echo '<a href="profile.php?id='.$m.'"'.'>'.$fname.' '.$lname.'</a><br>';
for your use it should be:
Code:
echo '<a href="profile.php?id='.$m.'"'.'>'.$found->fname.' '.$found->lname.'</a><br>';
breaking down into its sections helps when trying to work out concatenations:
Code:
'<a href="profile.php?id='
Code:
.
Code:
$m
Code:
.
Code:
'"'
Code:
.
Code:
'>'
Code:
.
Code:
$found->fname
Code:
.
Code:
' '
Code:
.
Code:
$found->lname
Code:
.
Code:
'</a></br>';
I have changed the quotes from
Code:
"
Code:
'
I hope this solves it for you. If not then i will need to test with the sql query and results filter.