Connect $ row-> Name to link

Codes here !

Moderators: egami, macek, gesf

Post Reply
conta
New php-forum User
New php-forum User
Posts: 1
Joined: Thu Apr 23, 2020 3:01 am

Thu Apr 23, 2020 4:18 am

I am creating a search bar, I have created the contents: description, id, name and link. Now I should link each article I searched for to a link but I don't know how to do it, I tried the following code but then a syntax error comes: https://codeshare.io/G8x6Wd`enter
Do you think of something that can connect the row-> Name to the link (so that makes the name clickable and would lead to the link page assigned by the database? I leave you the link of the code and the photo of the mysql tables

Link code: https://codeshare.io/5g3dY8
link image database contents : https: https://i.snipboard.io/XkK73D.jpg
link image database contents of table: https://i.snipboard.io/dwCkvX.jpg



this is the link of the page where is the searchbar https://hard-questions.com/provb



Please help me! I need you!😥
User avatar
hyper
php-forum GURU
php-forum GURU
Posts: 1190
Joined: Mon Feb 22, 2016 5:52 pm

Thu Apr 23, 2020 9:39 am

Use a standard

Code: Select all

<a href=..>Link</a>
Post Reply