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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.