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
https://forums.phpfreaks.com/topic/17573-link-to-database-file/
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.