PDA

View Full Version : ASP rpg help?



qzp
April 1st, 2007, 11:56 AM
Hi im trying to make a simple text based RPG with ASP. I'm having a problem with showing how much money a user has.
heres the code:


<%
If Session("loggedin") <> True Then Response.Redirect "login.asp"
%>
<!--#include file="inc-dbconnection.asp"-->
<%
Dim gilt
gilt = "Select gmoney FROM members WHERE username = Request.form.username"
%>
<html>
<head>
<title>Members Area</title>

</head>
<body>
<h2>Welcom to Axis Online</h2>
<!--#include file="nav.asp" -->
<%
Response.Write("Your Gilt:" & money)
%>
<p>welcome to the axis online user area</p></body>
</html>
I know there is something wrong with it but i cant find out how to fix it.