+ 9
How can you get data from a url ID
let us say we have a page with different IDs like id=1 with data of a, and id=2 with data of b
2 Answers
+ 2
you should try:
var_dump($_GET);
+ 1
$value_of_a = $_GET['a'];
same for b
you may also do a var_dump for the $_GET to see everything thay stored in the superglobal get