At a guess, I'd say no value of rs(0) equals 1. Failing that, try a=rs(0).value
Andy >From: Jegatha <[EMAIL PROTECTED]> >Reply-To: [email protected] >To: Asp <[email protected]> >Subject: [AspClassicAnyQuestionIsOk] if condition >Date: Thu, 18 Aug 2005 11:05:21 +0100 (BST) > >i m using the following code,it should return hello but it shows the >results of > rs(0). > >while not rs.eof >a=rs(0) /****the value of rs(0)=1*****/ >b=project /*****the value of project=1****/ >response.write a >response.write b >if(a<>b) then >response.write rs(0) >else >response.write "hello" >end if >rs.movenext >wend > > i couldn't findout the problem.can any one sort out this. > >thanks in adv > >Regards, >Jegatha _________________________________________________________________ Free blogging with MSN Spaces http://spaces.msn.com/?mkt=nl-be ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12h09242j/M=362131.6882499.7825260.1510227/D=groups/S=1705006764:TM/Y=YAHOO/EXP=1124374025/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org ">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy</a>.</font> --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
