The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Database search filter
#25
I realised during my test i was arranging the $m incorrectly in the string.
So trying out a simple test by manually setting
Code:
$m
Code:
$fname
Code:
lname
prints out correctly with the following:
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:
"
to
Code:
'
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.
  Reply


Messages In This Thread
Database search filter - by LBC - 01-12-2017, 11:06 AM
Database search filter - by mudmin - 01-12-2017, 01:57 PM
Database search filter - by Brandin - 01-12-2017, 02:44 PM
Database search filter - by LBC - 01-12-2017, 04:19 PM
Database search filter - by mudmin - 01-12-2017, 08:27 PM
Database search filter - by LBC - 01-13-2017, 06:33 AM
Database search filter - by mudmin - 01-13-2017, 02:17 PM
Database search filter - by mudmin - 01-13-2017, 06:43 PM
Database search filter - by meetmec12 - 01-14-2017, 09:42 AM
Database search filter - by LBC - 01-17-2017, 08:11 AM
Database search filter - by mudmin - 01-17-2017, 02:21 PM
Database search filter - by LBC - 01-18-2017, 08:35 AM
Database search filter - by LBC - 01-18-2017, 08:56 AM
Database search filter - by sabr - 01-18-2017, 12:24 PM
Database search filter - by LBC - 01-18-2017, 12:55 PM
Database search filter - by LBC - 01-18-2017, 02:36 PM
Database search filter - by sabr - 01-18-2017, 02:57 PM
Database search filter - by LBC - 01-19-2017, 07:35 AM
Database search filter - by sabr - 01-19-2017, 07:42 AM
Database search filter - by LBC - 01-19-2017, 08:28 AM
Database search filter - by sabr - 01-19-2017, 08:46 AM
Database search filter - by LBC - 01-19-2017, 08:54 AM
Database search filter - by sabr - 01-19-2017, 08:57 AM
Database search filter - by LBC - 01-19-2017, 08:58 AM
Database search filter - by sabr - 01-19-2017, 12:07 PM
Database search filter - by LBC - 01-20-2017, 06:43 AM
Database search filter - by sabr - 01-20-2017, 08:19 AM
Database search filter - by LBC - 01-20-2017, 08:56 AM
Database search filter - by sabr - 01-20-2017, 09:00 AM
Database search filter - by mudmin - 01-20-2017, 03:25 PM
Database search filter - by plb - 01-22-2017, 09:18 PM
Database search filter - by LBC - 01-24-2017, 08:15 AM
Database search filter - by LBC - 01-24-2017, 09:00 AM
Database search filter - by plb - 01-24-2017, 08:43 PM
Database search filter - by LBC - 01-25-2017, 07:06 AM
Database search filter - by LBC - 01-30-2017, 07:16 AM
Database search filter - by mudmin - 02-03-2017, 02:17 PM
Database search filter - by LBC - 02-06-2017, 07:30 AM
Database search filter - by mudmin - 02-07-2017, 03:27 AM
Database search filter - by LBC - 02-07-2017, 06:56 AM
Database search filter - by sabr - 02-07-2017, 08:26 AM
Database search filter - by LBC - 02-07-2017, 09:23 AM
Database search filter - by sabr - 02-07-2017, 09:34 AM
Database search filter - by LBC - 02-07-2017, 09:47 AM
Database search filter - by sabr - 02-07-2017, 07:26 PM
Database search filter - by LBC - 02-08-2017, 08:12 AM
Database search filter - by sabr - 02-08-2017, 11:54 AM

Forum Jump:


Users browsing this thread: 12 Guest(s)