SQL results with PHP as links | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

SQL results with PHP as links

Like facebook or google if u search for anything, you will get the results but as links , after clicking the link then you can read or see the full results So I created a table in SQL and I created the search queries, what I want is to show the heading of the results as links to the main content, how can I do that with PHP and MySQL am really stuck am sorry for the long sentence as am not a native English speaker

16th Dec 2020, 2:16 AM
Muhammad Zain
Muhammad Zain - avatar
2 Answers
+ 2
"select * from table_name where first_name like '%{$search}%' || last_name like '%{$search}%' "; I will use this query for searching from the db based on the user input .
16th Dec 2020, 3:39 AM
Hima
Hima - avatar
0
Ok
16th Dec 2020, 2:44 PM
Muhammad Zain
Muhammad Zain - avatar