Generate a page with php based on what user clicks -


so i've made database of guilds of mmo. people can go there , filter gaming guilds based on numerous different options , displays in nifty table. example:

guild name - focus - leaders guild 1    - pvp   - bob guild 2    - pve   - fred 

now want make guild name link takes user guilds page. page doesn't exist until person clicks on link, create temple called viewguild.php , if person clicks "guild 1" takes them http://somesite.com/viewguild.php?name=guild1. , have done! using code:

echo '<tr><td><a href="viewguild.php?id='.$guild2.'">'.$guild2.'</a></td>'; 

it creates link fine! problem is, can't seem php file, viewguild.php, generate information based on guild name person clicked.

you can use $_get['id'] variable in viewguild.php name of guild in url.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -