Advertisement

10.05.2006 at 07:21AM PDT, ID: 22014101
[x]
Attachment Details

SQL statement giving me an error when requesting certain field

Asked by mastallama in MySQL

Tags: automation, type, uses, giving, sql

Hello everyone,

I'm using a MySQL server as a game server for a MMORPG that I'm developing.  Everything for the game is working correctly, but I've decided to allow the players to log into their account through the website (using ASP) to pay their bill, purchase in game items, etc.  The problem I'm having is actually in the Admin area of the website.

Here's the error:
Script error detected at line 17.
Description: Variable uses an Automation type not supported in VBScript

Here's the line of code:
response.write "<tr><td><a href=characters.asp?account_id="&rs("account_id")&">"&rs("username")&"</a></td><td>"&rs("password")&"</td><td>"&rs("email")&"</td><td>"&rs("isdm")&"</td><td>"&rs("isbanned")&"</td></tr>"

Now, when I change the rs("account_id") to any other field, the line of code works fine, so, here's the SQL statement that  created this table, the problem field is account_id:

CREATE TABLE `rc_accounts` (
  `account_id` int(11) unsigned NOT NULL auto_increment,
  `username` varchar(32) NOT NULL default '',
  `password` varchar(32) NOT NULL default '',
  `email` varchar(32) NOT NULL default '',
  `isdm` tinyint(4) NOT NULL default '0',
  `isbanned` tinyint(4) NOT NULL default '0',
  PRIMARY KEY  (`account_id`)
) TYPE=MyISAM;

If all I do is response.write rs("account_id") and nothing else in the line, it prints.  As soon as I add other things to this line of code, I get the error.

Here's my question:
How can I view the data in the account_id field without having to change the field type?
Start Free Trial
[+][-]10.05.2006 at 07:23AM PDT, ID: 17668892

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.05.2006 at 08:13AM PDT, ID: 17669404

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.05.2006 at 09:37AM PDT, ID: 17670154

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.06.2006 at 12:35AM PDT, ID: 17674597

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.06.2006 at 02:40AM PDT, ID: 17674986

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MySQL
Tags: automation, type, uses, giving, sql
Sign Up Now!
Solution Provided By: hans_vd
Participating Experts: 3
Solution Grade: A
 
 
[+][-]10.06.2006 at 06:10AM PDT, ID: 17676034

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.06.2006 at 06:11AM PDT, ID: 17676041

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.06.2006 at 06:36AM PDT, ID: 17676208

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32