+ 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

2nd Apr 2017, 8:22 AM
Awele Omeligwe
Awele Omeligwe - avatar
2 Answers
+ 2
you should try: var_dump($_GET);
4th Apr 2017, 6:38 AM
Marcin Hędrzak
Marcin Hędrzak - avatar
+ 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
25th Jun 2017, 4:41 PM
Mohammed Osama El-Morsy
Mohammed Osama El-Morsy - avatar