php - How can i get id from url -


How do I get this ID from the URL? I am not the only one for all IDs

I tried:

  $ id_z_url = $ _GET ['id'] & amp; Amp; $ _GET ['id'] == ''. $ Gildia ['id']. '';   

But it does not work.

You should try this:

  $ id_z_url = $ _GET ['Gildia'];   

With the name of the params, in your case gildia .

When you want to use $ id_z_url = $ _GET ['id']; In this way you need to set the name id in the URL:

Comments

Popular posts from this blog

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -

c# - Split String between 2 substrings without removing delimiters -

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -