Abd
03-26-2003, 11:27 AM
Hi All,
I pls need a help in concatenating two variable, I have a piece of code which is populating a Text Area from the Database, but I want to concatenate the output in the Text Area with the firstname and it keep given me error. Please help, below is my code.
Thanks
Abd
<%
//Populating Text Area with an entire column data from the Database
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.open "PROVIDER=SQLOLEDB;DATA SOURCE=ABD=sa;PWD=abd;DATABASE=abdul"
Set rs=Conn.execute("Select nservicereq,firstname from globe")
Commnet = RS.Fields("nservicereq")
firstname = RS.Fields("firstname")
response.write "<b>Service Reqst History:</b><br><TEXTAREA NAME='Comment' ROWS=5 COLS=80>"&vbcrlf
while not rs.eof
response.write ""&rs("nservicereq")&""&vbcrlf
rs.movenext
wend
response.write "</TEXTAREA>"&vbcrlf
rs.close
set rs=nothing
Conn.close
set Conn=nothing
%>
I pls need a help in concatenating two variable, I have a piece of code which is populating a Text Area from the Database, but I want to concatenate the output in the Text Area with the firstname and it keep given me error. Please help, below is my code.
Thanks
Abd
<%
//Populating Text Area with an entire column data from the Database
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.open "PROVIDER=SQLOLEDB;DATA SOURCE=ABD=sa;PWD=abd;DATABASE=abdul"
Set rs=Conn.execute("Select nservicereq,firstname from globe")
Commnet = RS.Fields("nservicereq")
firstname = RS.Fields("firstname")
response.write "<b>Service Reqst History:</b><br><TEXTAREA NAME='Comment' ROWS=5 COLS=80>"&vbcrlf
while not rs.eof
response.write ""&rs("nservicereq")&""&vbcrlf
rs.movenext
wend
response.write "</TEXTAREA>"&vbcrlf
rs.close
set rs=nothing
Conn.close
set Conn=nothing
%>