php - Can I create a generic hyperlink without a href? -


i have mysql database names of fruit. php reads , creates list of them on web page. @ moment, have added individual urls each type of fruit readers can more information particular fruit.

i wondering though if create 1 generic web page called, fruitinfo.php read information database whichever fruit user clicked on. problem have not sure how record in variable fruit user clicked on. also, way know make "link" clickable use href, not want do. hoping able possible?

i give example

fruit database

|- id -|- name   -|- detail    -| |-  1 -|- apple  -|- delicious -| |-  2 -|- orange -|- orange | 

main page (we generate server)

links <a href="detail.php?id=1">apple</a> <a href="detail.php?id=2">orange</a> or <a href="detail.php?name=apple">apple</a> <a href="detail.php?name=orange">orange</a> 

detail page

$fruit = $_get['name']  // query fruit id or name server  // print fruit details 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -