Jump to content

Archived

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

chico1st

Link to database file

Recommended Posts

Okay ive never done this before but i need to make a link to a page which will bring up a database entry.

lets say that i know the ID of the entry as $id
does it just go?

<A HREF=magicpage.php?id=$id>go here</a>

which leads to magicpage.php
where some of the code would be

$id    = $_GET['id'];
$query = "SELECT name, type, size, content FROM magicdatabase WHERE ID = '$id'";

sorry ive never dealt with this, and im away from MY computer so i cant test it.
After this i should be out of your hair, and I cant tell you how thankful I am for all your help, you are all awesome people! :D

THANKS for any help you can offer

Share this post


Link to post
Share on other sites
Sounds like you're got both ends figured out.. that's pretty much all there is to it.

Share this post


Link to post
Share on other sites

×

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.