Hello!
Since i'm new on php, I was looking around to make the url with multi-parameters like domain.com/index.php?catId=1&artId=2 , the variables means the category id and article id, and when a user arrived on a link like this, to appear the article with the respective id.
Now, i can get work only one of them using :
PHP Code:
if(isset ($_GET['catId'])) { echo 'Text for respective category id'; }
url ex: domain.com/index.php?catId=1 or
PHP Code:
if(isset ($_GET['artId'])) { echo 'Text for respective aritcle id'; }
url ex: domain.com/index.php?artId=2
Can you help me make them working together? Please?
Thank you!
|