Sponsor-Board.de
PHP Get "Erweiterung"

+- Sponsor-Board.de (https://www.sponsor-board.de)
+-- Forum: Community (/forumdisplay.php?fid=56)
+--- Forum: Hilfe (/forumdisplay.php?fid=102)
+---- Forum: Scripting (/forumdisplay.php?fid=108)
+---- Thema: PHP Get "Erweiterung" (/showthread.php?tid=25376)


PHP Get "Erweiterung" - Aaron - 05.05.2012 17:57

Guten Abend zusammen,
unzwar möchte ich für jeden User ein eigenes Profil anlegen, eigl würde man dann ja via Get die id auslesen profil.php?id=1 zb

nur habe ich jetzt schon dies bei der index verwendet index.php?id=profil

Wie kann dies jetzt nochmal erweitern, sprich index.php?id=profil?id=1 geht nicht :/

oft sieht man ja folgende Text in der Url : index.php?id=profil&id=1

Wie generiere ich dies ?

Wie man sieht, bin ich noch ziemlich am Anfang was PHP und Mysql angeht Tongue

Bin für jede Hilfe dankbar!

mfg


RE: PHP Get "Erweiterung" - Maurice - 05.05.2012 18:06

PHP-Code:
$id $_GET["id"];
$uid $_GET["uid"];

if(
$id == "profil" && is_numeric($uid))
{
  
// Datenbank-Ausgabe des Profiles


index.php?id=profil&uid=1

Vllt. hilfts dir Wink


RE: PHP Get "Erweiterung" - Aaron - 05.05.2012 18:10

danke dir, klappt ohne Probleme Wink


RE: PHP Get "Erweiterung" - Dennis - 05.05.2012 18:23

wirklich valide ist aber erst & anstatt &, damit hatte ich auch schon oft genug Probleme, dass das nicht anerkannt wurde