Click to See Complete Forum and Search --> : Catalogue, de l'aide SVP


Omar_
04-22-2003, 08:16 AM
I have image1, image2, image3 ..etc .., values in a field in my table in my database, haw can i get the values 1 or 2 or 3 and insert it in an element imageX, to go find the imagX in my database, and the X correspendent to the value choised by the client, the client have to choice values between 1 to 20 in his screen .
Thank you :)


j'ai image1, image2, image3 des valeur dans un champ de base de données, comment faire pour récuperer la valeur 1, ou 2 ou 3 et la mettre dans un parametre pour aller chercher imageX dans ma base avec le X qui correspent à la valeur cliquer par l'internaute ? sachant que par exemple l'internaute a le choix de cliquer sur des choiffre devant lui, de 1 à 20 par exemple ?

Merci :)

Omar_
04-22-2003, 10:49 PM
Hi Dave,
i ask haw can i get the number from the client to do the traitement in my server, and i think the combine with the literel is <img src="image/image<%=rs("number")%>.jpg">
e.g : for number 3 : <%=rs("number")%> = 3
<img src="image/image3.jpg">

what do you think ?
Thnak

Omar_
04-23-2003, 09:34 AM
but i must do the same thing for all my 100 photo ??
i must write the same line for all number of photo that i have ??

do you have idea with session ?? if i can receive the value number in a session, i can search it in my database as a parameter ..
what do you think ?

Omar_
04-24-2003, 08:16 AM
naw i just have a little exemple for 8 photo, and i used a page for each photo, so i have 8 page, but it's not a practice method for 100 photo !, i must have a dynamique solution that can call the photo and replace the actual photo in the same page, etc etc .. so for each photo called by his number (1,2,3 ... 100), he must came and insered in the web page
am i clear ? and in case, do you have an idea ?
thank's Dave

Omar_
04-26-2003, 10:33 PM
Thank's Dave, very nice solution without usin Server-Side Code, using JavaScript is more fast than Server-Side !

...................

OK, just because i don't know more and more about JavaScript, i'll go learn in the 2 first link, i think they help me to understand JavaScript programming, for my diploma studying, not a contract programming services
Thank you