how to get id from URL using php -



how to get id from URL using php -

i have code on search page:

<a href="detail.php?id=<?php echo $ido;?>"style="text-decoration: none"><?php echo $nume;?></a>

and have detail.php page. need $ido value url can utilize in detail.php page retrieve info database.

the detail page has url this: detail.php?id=17 , need value after =, in case 17, variable.

in detail.php use: $id = $_get['id']; can utilize $id around rest of page.

php

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -