Forums
This topic is locked
Looking for Picture available code
Posted 21 Jul 2005 13:57:22
1
has voted
21 Jul 2005 13:57:22 Mashkur Alam posted:
HiI have two culum in Access DB name "Imain" "I2" for image name.
I want to show users from catalogue page
More pictures available (which will reffer from I2) if there is any picture name then show "More pictures available" or if I2 is Null then ignore the text.
I found a code but not sure how to manupulate.
<%Dim TextShow
TextShow = rsletting_list.Fields.Item("I2"

IF TextShow <>"" THEN%>
<%=TextShow%>">
<%ELSE%>
<b>Extra photographs available</b>
<%End If%>
Please help with advice.
Babu
Replies
Replied 23 Jul 2005 21:51:35
23 Jul 2005 21:51:35 Rene Bandsma replied:
- The first code line is just creating a variable called TextShow;
- The next line is setting TextShow to the value of the database in the I2 Column;
- The third line is the beginning of an IF block and the <> means "" IF NOT" so if the string IS NOT EMPTY then it will write the contents out of I2 on your screen.
- The fourth is an ELSE block that will be processed when the first IF tag is NOT true (so it is filled) and then the normal HTML code <b>Extra..... available</b> is written to the browser.
<hr><b>DMXZone support manager</b><br><a href="www.kousman.nl">Kousman web resellers</a>
- The next line is setting TextShow to the value of the database in the I2 Column;
- The third line is the beginning of an IF block and the <> means "" IF NOT" so if the string IS NOT EMPTY then it will write the contents out of I2 on your screen.
- The fourth is an ELSE block that will be processed when the first IF tag is NOT true (so it is filled) and then the normal HTML code <b>Extra..... available</b> is written to the browser.
<hr><b>DMXZone support manager</b><br><a href="www.kousman.nl">Kousman web resellers</a>
Replied 25 Jul 2005 13:22:34
25 Jul 2005 13:22:34 Mashkur Alam replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
- The first code line is just creating a variable called TextShow;
- The next line is setting TextShow to the value of the database in the I2 Column;
- The third line is the beginning of an IF block and the <> means "" IF NOT" so if the string IS NOT EMPTY then it will write the contents out of I2 on your screen.
- The fourth is an ELSE block that will be processed when the first IF tag is NOT true (so it is filled) and then the normal HTML code <b>Extra..... available</b> is written to the browser.
<hr><b>DMXZone support manager</b><br><a href="www.kousman.nl">Kousman web resellers</a>
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Thanks RENE,
Pretty much I understand the explanation now. But how can I modify something like:
If I2 value is something then write - Extra Photographs Available
If I2 value is nothing then do not write anything.
Please help with advice.
Babu
- The first code line is just creating a variable called TextShow;
- The next line is setting TextShow to the value of the database in the I2 Column;
- The third line is the beginning of an IF block and the <> means "" IF NOT" so if the string IS NOT EMPTY then it will write the contents out of I2 on your screen.
- The fourth is an ELSE block that will be processed when the first IF tag is NOT true (so it is filled) and then the normal HTML code <b>Extra..... available</b> is written to the browser.
<hr><b>DMXZone support manager</b><br><a href="www.kousman.nl">Kousman web resellers</a>
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Thanks RENE,
Pretty much I understand the explanation now. But how can I modify something like:
If I2 value is something then write - Extra Photographs Available
If I2 value is nothing then do not write anything.
Please help with advice.
Babu
Replied 26 Jul 2005 11:00:16
26 Jul 2005 11:00:16 Wayne Hultum replied:
Try this
<pre id=code><font face=courier size=2 id=code><% if rs.fields("I2"
<>"" then response.write("Extra Photographs Available"
%> </font id=code></pre id=code>
Hope it helps
Wayne
<pre id=code><font face=courier size=2 id=code><% if rs.fields("I2"


Hope it helps
Wayne
Replied 26 Jul 2005 14:04:36
26 Jul 2005 14:04:36 Mashkur Alam replied:
Thanks a lot....absolutely fine<img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>
Babu
Babu