attempting to use several url parameters in one url


problem: i can either pass along picture id parameter or album id parameter next page, never both

i have url parameter picture id, , have album id, determines directory pictures stored on server.

 

 

only album id parameter:

photoalbum.php?mod=album&id_alb=<?php echo $row_rsimages['id_alb']; ?>

which generates url: photoalbum.php?mod=album&id_alb=6

result: loads picture fine

 

only picture id parameter:

photoalbum.php?mod=detail&id_img=<?php echo $row_rsimages['id_img']; ?>

which generates url: photoalbum.php?mod=detail&id_img=8

result: loads picture b fine

 

now want pass both parameters:

photoalbum.php?mod=detail&id_img=<?php echo $row_rsimages['id_img']; ?>mod=album&id_alb=<?php echo $row_rsimages['id_alb']; ?>

which generates url: photoalbum.php?mod=detail&id_img=8mod=album&id_alb=

shows one picture

but when type number @ end of url reads;

photoalbum.php?mod=detail&id_img=8mod=album&id_alb=6

it shows both pictures

 

mysql query:

rsimages
select id_img, vlg_img, idalb_img, filename_img, filenamea_img, filenameb_img, description_img, date_img
from image_img
where idalb_img = colname

name: colname
type: text
standard value:  -1
runtime value: $_get['id_alb']

 

mysql query:

rsalbbgr
select id_alb, title_alb, description_alb, backgr_img
from album_alb
where album_alb.id_alb= bgrname

name: bgrname
type: text
standard value:  -1
runtime value: $_get['id_alb']

 

it's puzzling me days now, can please me?

 

mysql - 5.0.27
mysql client version: 4.1.20

php version 5.2.3

> generates url: photoalbum.php?mod=detail&id_img=8mod=album&id_alb=

 

you need ampersand between each set of information in url - in case between img=8 , mod=album. line above needs be

 

photoalbum.php?mod=detail&id_img=8&mod=album&id_alb=



More discussions in PHP Application Development (read only)


adobe

Comments

Popular posts from this blog

Joomla site hacked, cant see front and - Joomla! Forum - community, help and support

Christian Home School Programs - Joomla! Forum - community, help and support

Trouble with PF_OutFlag_I_USE_AUDIO and PF_CHECKOUT_LAYER_AUDIO