Jump to content

how to make data pulled into links?


yobo

Recommended Posts

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

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.