0

I am writing a web app and at some point, I have a list of projects and when the user clicks on view on one of the projects I need to display the correct project page, basing on the project ID. (All the projects are stored in a Database). I am trying to pass the project id by a URL query string that should look like this

user/project/view&proj_id=2

then in my index.php, I try to var dump the $_GET but it says is an empty array while if I try to var dump the URI I get user/project/view&proj_id=2

ho can I correctly pass and retrieve parameters with $_GET?

asked Nov 24, 2019 at 10:08

1 Answer 1

1

Use ? instead: user/project/view?proj_id=2

answered Nov 24, 2019 at 10:10
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.