質問

How can i get this id from url? I want for all id's not only 1

http://szymciog.pl/stefan/gildia.php?gildia=1

i tried that:

$id_z_url = $_GET['id'] && $_GET['id']==''.$gildia['id'].'';

but this doesn't 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']; than you need to set the name id in the url like this: http://szymciog.pl/stefan/gildia.php?id=1

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top