Jump to content

URL


Wildthrust

Recommended Posts

I think so, basicly I have a directory full of icon files with filenames formated as icon##_##.png.  I already have made it so the page will put the list into img tags so I get a page with every icon showing.  However the ##_## part is also in a MySql database and I want to click on the icon and send it's ##_## to another page that can then look that up, so I would have a link on each icon like

<a href="detail.php?icon=<?php echo substr($filename,4,5); ?>"><img .....

 

so I would want to be able to build a query on the next page like

 

$sql = "SELECT * FROM TABLE WHERE ICON LIKE \'' . $icon . '\'';

 

where $icon is the the ?icon=

Link to comment
https://forums.phpfreaks.com/topic/90378-url/#findComment-463365
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.