I am currently trying to develop the following functions:
Want to see or profile photo, I would like to use either I am currently able to execute the first command and when I make another attempt, instead of loading it fails to index page (script According to the design). Here's my code: And to make it clear, there is nothing in those" pages ", but bold saying: Show album photos and users Show Photo But what do I think my problem might be? If you can call An always album_id or
id in the URL:
album.php? Album_id = (numerical number) album.php? Id = (numerical number)
$ album_id = addlashes (is_numeric ($ HTTP_GET_VARS ["album_id"])); $ Profile_id = added zombies (is_numeric ($ HTTP_GET_VARS ["id"])); ? & Gt; & Lt ;? Php if ($ album_id == faucet ||! $ Profile_id == faucet) {Print ("& lt; script language = 'javascript' & gt; window = location = 'index.php'; ;);} Else {if ($ album_id == $ album_id) {included ("/ home / emo / public_html / incldues / layout / photos / pages / albums / album_photos.php");} Else {if ($ profile_id = = $ Profile_id) {include ("/ home / emo / public_html / incldues / layout / photos / pages / albums / profile_photos.php");} Else {include ("/ home / emo / public_html / incldues / layout / photos / Pages / album / album_photos.php ");}}}? & Gt;
album.php? Album_id = {id} ,
$ _GET ['id'] , your first
If returns the statement index page.
if (($ album_id == null) || ($ profile_id == null)) {...}
Null as long as you
album.php? Album_id = {aid} and id = {pid}
(if $ Album_id == null) & amp; ($ Profile_id == zero)) Redirect to {# index.php} and {if ($ album_id! = Null) {# load album} else if ($ profile_id! = Null) {# Load profile} else {# both Gone, redirect to error}}
No comments:
Post a Comment