Jump to content

Link to database file


chico1st

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