yobo Posted March 14, 2007 Share Posted March 14, 2007 i seem to be having trouble trying to make the hacks that are pulled down into a link for exammple when you select a category it loads all the hacks that are associated with that category, now i need those hacks linkable so that they have there own page for example this will be the link hacks.php?hacksid=hacksid (hacksid being what ever that hack id is) PHP Code: $search=mysql_query("SELECT hacksid, hackname FROM hacks WHERE `typeid`={$_GET['cat']}"); while($result=mysql_fetch_array($search)){ echo $result["hackname"]; } that is the query that i am using to pull hacks down depeinding on there category PHP Code: echo $result["hackname"]; and i belive i have to put the link in there some how but i am not sure howto Link to comment https://forums.phpfreaks.com/topic/42715-how-to-make-data-pulled-into-links/ Share on other sites More sharing options...
per1os Posted March 14, 2007 Share Posted March 14, 2007 <?php $search=mysql_query("SELECT hacksid, hackname FROM hacks WHERE `typeid`={$_GET['cat']}"); while($result=mysql_fetch_array($search)){ print "pagename.php?hackid=".$result["hackid"]; } ?> --FrosT Link to comment https://forums.phpfreaks.com/topic/42715-how-to-make-data-pulled-into-links/#findComment-207426 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.