Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 passing names to query
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 6

Alfred
Senior Member

USA
1527 Posts

Posted - 01 August 2003 :  11:18:01  Show Profile  Visit Alfred's Homepage
quote:
Originally posted by laser

I'll double-check later, but I was sure that the filenames on decorated.asp and members.asp are different - (aren't they ?)

SHouldn't be:
decorated has "<img border=""0"" src=""../images/gold.gif"" width=""19"" height=""28"">"
members has: http://www.ggholiday.com/bg/images/gold.gif

Alfred
The Battle Group
CREDO
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 01 August 2003 :  12:25:38  Show Profile
On decorated page (http://www.ggholiday.com/bg/forums/decorated.asp), Avenger's "cross" is http://www.ggholiday.com/bg/images/med_ger_gold.JPG but on the members & profile page (http://www.ggholiday.com/bg/forums/pop_profile.asp?mode=display&id=6) it is http://www.ggholiday.com/bg/images/gold.gif

BUT, your decorated.asp is completely different to your decorated.txt
Go to Top of Page

Alfred
Senior Member

USA
1527 Posts

Posted - 01 August 2003 :  12:58:41  Show Profile  Visit Alfred's Homepage
Remember, my decorated.asp is purely manual right now, not populated by the database.
I only installed it to have something to look at for now.
BTW, both image files do exist in the folder, and we can use either.

Alfred
The Battle Group
CREDO
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 01 August 2003 :  18:26:06  Show Profile
OK, but you can't use either if they are not both noted in the database (does that make sense?) or at least have a standard for the name of the bigger files.

So what's wrong with decorated.txt ? You're just missing a few Response.Write's at the end. Try inserting this line just before the movenext :

Response.Write mymedals("medal_ID") & DisplayMedalIcon & "<br>"

and also, just after your while, put this :

DisplayMedalIcon = ""

You might want to rename this to decorated2.asp until we get it working fully.
Go to Top of Page

Alfred
Senior Member

USA
1527 Posts

Posted - 01 August 2003 :  19:09:46  Show Profile  Visit Alfred's Homepage
Ok, I made the changes, named it decorated2.asp for localhost, but got this error:
quote:
Microsoft VBScript runtime (0x800A01F5)
Illegal assignment: 'DisplayMedalIcon'
/BG/forums/decorated2.asp, line 14


Browser
line 14 is this one, which I just added: DisplayMedalIcon = ""

I also updated the decorated.txt.

Alfred
The Battle Group
CREDO

Edited by - Alfred on 01 August 2003 19:11:54
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 01 August 2003 :  19:30:52  Show Profile
ummm ... maybe just put a space between the two " then
Go to Top of Page

Alfred
Senior Member

USA
1527 Posts

Posted - 01 August 2003 :  19:55:13  Show Profile  Visit Alfred's Homepage
quote:
Originally posted by laser

ummm ... maybe just put a space between the two " then

Nope- same error!

Alfred
The Battle Group
CREDO
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 01 August 2003 :  20:04:03  Show Profile
I thought DisplayMedalIcon was a function that had a required variable to be passed to it (namely the member id)??

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

Alfred
Senior Member

USA
1527 Posts

Posted - 01 August 2003 :  21:26:54  Show Profile  Visit Alfred's Homepage
I wondered about that as well!
But who am I to think, or doubt!
I just carry out instructions, and hope that sooner or later it gets me there!

Alfred
The Battle Group
CREDO
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 02 August 2003 :  03:28:04  Show Profile
quote:
Originally posted by Nikkol

I thought DisplayMedalIcon was a function that had a required variable to be passed to it (namely the member id)??


OF COURSE !!!! (Thanks Nikkol !!)

Alfred, can you remove your inc line at the top - you're not really using the function at the moment and your current code replaces the function anyway
Go to Top of Page

Alfred
Senior Member

USA
1527 Posts

Posted - 02 August 2003 :  10:31:46  Show Profile  Visit Alfred's Homepage
Yes, we are not using the function as such in this page, but put the actual code in.
Ok, after taking the display DisplayMedalIcon out, I got this error:
quote:
Error Type:
Microsoft VBScript runtime (0x800A01C2)
Wrong number of arguments or invalid property assignment: 'DisplayMedalIcon'
/BG/forums/decorated2.asp, line 24
Line 24 is the red one in here:
quote:
while not myMedals.bof and not myMedals.eof

if mymedals("medal_ID") = 8 then
DisplayMedalIcon = DisplayMedalIcon & "<img border=""0"" src=""../images/gold.gif"" width=""19"" height=""28"">"
end if

if mymedals("medal_ID") = 7 then
DisplayMedalIcon = DisplayMedalIcon & "<img border=""0"" src=""../images/silver.gif"" width=""19"" height=""28"">"
end if

if mymedals("medal_ID") = 6 then
DisplayMedalIcon = DisplayMedalIcon & "<img border=""0"" src=""../images/bronze.gif"" width=""19"" height=""28"">"
end if
Why would it object just to this one and not the others before it?

Alfred
The Battle Group
CREDO

Edited by - Alfred on 02 August 2003 10:33:37
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 02 August 2003 :  11:01:43  Show Profile
I don't know what could cause that error. Try deleting that line and creating again.
Go to Top of Page

Alfred
Senior Member

USA
1527 Posts

Posted - 03 August 2003 :  00:19:12  Show Profile  Visit Alfred's Homepage
I retyped it, then deleted the old line - same result.

When I comment that line out it picks another one with the same error: line 74, then line 16, then line 32.
Each time it is the middle line of this statement, with the medal ID number changing:
quote:
if mymedals("medal_ID") = 6 then
DisplayMedalIcon = DisplayMedalIcon & "<img border=""0"" src=""../images/bronze.gif"" width=""19"" height=""28"">"
end if
So I wondered what would happen if I just leave one of the different medal number statements, and take all others out.
It gave a blank page.

Alfred
The Battle Group
CREDO

Edited by - Alfred on 03 August 2003 00:21:15
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 03 August 2003 :  01:32:44  Show Profile
... and you've removed this line ?

<!--#INCLUDE FILE="inc_medalsfunction.asp"-->


Can you update the txt file please ?
Go to Top of Page

Alfred
Senior Member

USA
1527 Posts

Posted - 03 August 2003 :  10:43:58  Show Profile  Visit Alfred's Homepage
Yes, and yes - I did.
http://www.ggholiday.com/bg/forums/decorated2.txt
In it's asp form it currently brings up a blank page!

Alfred
The Battle Group
CREDO
Go to Top of Page
Page: of 6 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07