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
Post a Comment