H
Help Please
Hello!
Here is what i am doing. I have this database and i need
to grab some info out of it, multiply it, than select it
and print it out. It is not printing out the info. Anyone
got any ideas?
Thanks!
<%
Response.Expires = -1000 'Make sure the browser doesnt
cache this page
Response.Buffer = True 'enables our response.redirect to
work
If Request.Form("valuepassed") ="true" Then
CheckLoginForm
Else
ShowLoginForm
End If
Sub CheckLoginForm
Dim myconn, myconn2, myconn3, strsales, strorders
**(didnt include the connection strings in here as they
work)**
myconn.execute("UPDATE orders SET sales = (orders *
29.99) , lastlogged = '" & Now() & "' WHERE company='"
& "abc" & "';")
strorders = myconn2.execute("SELECT orders FROM orders
WHERE company='" & "abc" & "';")
strsales = myconn3.execute("SELECT orders FROM orders
WHERE company='" & "abc" & "';")
End Sub
%>
<% Sub ShowLoginForm %>
<table width="100%" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td><div align="center"><strong><font color="#0000FF"
size="5" face="Verdana, Arial, Helvetica, sans-
serif">Report</font></strong></div></td>
</tr>
<tr>
<td><p> </p>
<p><font size="2" face="Verdana, Arial, Helvetica, sans-
serif">Welcome Back!</font></p>
<form name="calculations" action="report.asp"
method="post">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="24%" height="21"><strong><font size="2"
face="Verdana, Arial, Helvetica, sans-serif">Gross
Orders</font></strong></td>
<td width="76%"><strong><font size="2" face="Verdana,
Arial, Helvetica, sans-serif">Gross
Sales</font></strong></td>
</tr>
tr>
<td>
<% Response.Write(strorders) %>
</td>
<td>
<% Response.Write(strsales) %>
</td>
</tr>
</table>
</form><p> </p>
<p> </p></td>
</tr>
</table>
<% End Sub %>
Here is what i am doing. I have this database and i need
to grab some info out of it, multiply it, than select it
and print it out. It is not printing out the info. Anyone
got any ideas?
Thanks!
<%
Response.Expires = -1000 'Make sure the browser doesnt
cache this page
Response.Buffer = True 'enables our response.redirect to
work
If Request.Form("valuepassed") ="true" Then
CheckLoginForm
Else
ShowLoginForm
End If
Sub CheckLoginForm
Dim myconn, myconn2, myconn3, strsales, strorders
**(didnt include the connection strings in here as they
work)**
myconn.execute("UPDATE orders SET sales = (orders *
29.99) , lastlogged = '" & Now() & "' WHERE company='"
& "abc" & "';")
strorders = myconn2.execute("SELECT orders FROM orders
WHERE company='" & "abc" & "';")
strsales = myconn3.execute("SELECT orders FROM orders
WHERE company='" & "abc" & "';")
End Sub
%>
<% Sub ShowLoginForm %>
<table width="100%" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td><div align="center"><strong><font color="#0000FF"
size="5" face="Verdana, Arial, Helvetica, sans-
serif">Report</font></strong></div></td>
</tr>
<tr>
<td><p> </p>
<p><font size="2" face="Verdana, Arial, Helvetica, sans-
serif">Welcome Back!</font></p>
<form name="calculations" action="report.asp"
method="post">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="24%" height="21"><strong><font size="2"
face="Verdana, Arial, Helvetica, sans-serif">Gross
Orders</font></strong></td>
<td width="76%"><strong><font size="2" face="Verdana,
Arial, Helvetica, sans-serif">Gross
Sales</font></strong></td>
</tr>
tr>
<td>
<% Response.Write(strorders) %>
</td>
<td>
<% Response.Write(strsales) %>
</td>
</tr>
</table>
</form><p> </p>
<p> </p></td>
</tr>
</table>
<% End Sub %>