Active Server Pages

Moderators: None (Apply to moderate this forum)
Number of threads: 1739
Number of posts: 4450

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Unable to retrieve the data with html view Posted by anatar02 on 25 Sept 2009 at 11:23 AM
Hi all,
I am trying to retrieve the data from my sql db in html view but it's not retrieving the data instead of it's giving the mysql query, so could you please help me on this..

My code is

strSQL ="<table class=grid cellpadding=3 cellspacing=1 width=30><tr><td bgcolor=seashell colspan=2><h3 class=formtitle>Environment Information</h3></tr>"&_
"select '<tr><td bgcolor=seashell>Environment</td><td bgcolor=seashell>+version+</td></tr>' from build_version "&_
"where testsuiterunid=" & id & " or id=" & id & "union select '<tr><td bgcolor=seashell>Robot</td><td bgcolor=seashell>'+automation_robot+'</td></tr>' from execution_log "&_
"where testsuiterunid=" & id & " or id=" & id & "union select '<tr><td bgcolor=seashell>Environment</td><td bgcolor=seashell>'+environment+'</td></tr>' from execution_log "&_
"where testsuiterunid=" & id & " or id=" & id

I am getting the reponse as like below

select '' from build_version where testsuit= or id=union select '' from execution_log where testsui= or id=union select '' from execution_log where tests= or id=

So could you please help me on this...





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.