PDA

View Full Version : Part 2 of my every forending PHP help!



ItchysPaws
06-05-2006, 03:14 PM
Yes me again :P This time, I have finally got my script to work thanks to alot of your help :) I was fine with making the script to Add to the DB, but retrieving Im not so sure about.

I basically want to retrieve rares from db in the following format:

rareview.php?id=###

### being the 001, 002 etc.

My table structure if you need to look is:
http://img191.imageshack.us/img191/2787/sql2gt.png

All help is appreciated, thanks :)

Sygon.
06-05-2006, 03:24 PM
:D

NOt sur ebut...



if ($_GET['id]) {
mysql_query("SELECT FROM table where id = '$id'")
}
else{}


=]

Luckyrare
06-05-2006, 03:27 PM
Check out this tutorial writen by Mentor http://thybag.co.uk/index.php?p=Tutorials&ind=23

That gives you some good functions to use in what you are wanting to do, just take out the bits you need...

ItchysPaws
06-05-2006, 03:39 PM
Well i cant test any until tomorrow (just updated dns server due to a server change from my host) but the latter one dont think will work because I would still haev to insert the page.

I want it so it retrieves whats in the mySQL DB

Want to hide these adverts? Register an account for free!