edenwax
VIP
v5 Beta Tester[M:5000]
Posts: 1,266
|
Post by edenwax on Mar 10, 2011 5:38:13 GMT
Im making a web design comic script but I need some help with doing things like index.php?id=1
If any of you knowledgeable in PHP could help me out I would appreciate it.
|
|
Nick
VIP
v5 Beta Tester[M:5000]
Philadelphia Eagles: 8-8
Posts: 2,239
|
Post by Nick on Mar 10, 2011 16:19:48 GMT
Use $_GET, then make if statements like, if($_GET['id'] == '1') {content here}
Explained:
$_GET[ 'X' ] == Y
X is what the url extension is, so if you want ?id= at the end of your url, X would be 'id'.
Y would be what comes after the equal sign, so have Y be 1 if you want the end of the url to be ?id=1 this also works for letters.
If you dont understand yet, tell me and Ill redo the post on my desktop. Im on my ipod and in a rush!
The x's after the $_get's arent showing on my ipod... Just modify to view the text
|
|
edenwax
VIP
v5 Beta Tester[M:5000]
Posts: 1,266
|
Post by edenwax on Mar 10, 2011 16:45:46 GMT
Ive been using that, but there are some issues. I'll PM you what I have so far.
|
|
Cam
Administrator
[M:5000]
Posts: 6,381
|
Post by Cam on Mar 14, 2011 3:59:57 GMT
Thanks Nick, explained a bit.
|
|
edenwax
VIP
v5 Beta Tester[M:5000]
Posts: 1,266
|
Post by edenwax on Mar 14, 2011 7:09:46 GMT
Erm.... what? Oh derp. Nevermind haha.
|
|