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
Author Previous Topic Topic Next Topic
Page: of 6

Alfred
Senior Member

USA
1527 Posts

Posted - 09 August 2003 :  20:36:47  Show Profile  Visit Alfred's Homepage
Do you mean when I want to award a medal to a player?
I have made myself a form, accessible in Admin options, which contains a player field and a medals field.
http://www.ggholiday.com/bg/FORUMS/admin_medals.txt shows you the code.

Alfred
The Battle Group
CREDO
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 09 August 2003 :  21:23:54  Show Profile
As I said member-medal is easy, NEW medals will mean exactly maintenance.

Put it this way, you have X medals now, they can be awarded to any member quite easily, and you have the process & code in place to do that. If you suddenly want to award the V8Central Excellence Medal you will need to change your ASP code to make that medal available to any/all members.

Don't worry about it now, it works fine, but if you have a LOT of medal additions (like I mean a brand new medal every week or so) then the db design should allow that function simply, without the need to change code.
Go to Top of Page

Alfred
Senior Member

USA
1527 Posts

Posted - 09 August 2003 :  21:36:24  Show Profile  Visit Alfred's Homepage
I see what you mean.
I have been thinking about that too when I wrote the original member_medals form.
However, there will not be that many additions, and if there is any, I will have to add it to the code I suppose.

BTW, something weird happened here in my previous post.
The link or the txt file brings up the page like it was an htm page!
You too?

Alfred
The Battle Group
CREDO

Edited by - Alfred on 09 August 2003 21:38:54
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 09 August 2003 :  21:44:00  Show Profile
It's because your file contains "normal" HTML tags, the browser sees these and renders them properly. That's one of the pluses with 100% Response.Writes you see ALL the code.
Go to Top of Page

Alfred
Senior Member

USA
1527 Posts

Posted - 09 August 2003 :  22:53:58  Show Profile  Visit Alfred's Homepage
Oh, I just solved (I think) the addition of new medal types as well!

http://www.ggholiday.com/bg/FORUMS/admin_medals_create.asp
http://www.ggholiday.com/bg/FORUMS/admin_medals_create.txt

And (can you believe?) I have no questions, error messages, etc.!
It actually worked when I added a test medal on localhost.
Alfred, the program pro!

Alfred
The Battle Group
CREDO
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 10 August 2003 :  03:59:57  Show Profile
OK, so you add a new medalID (e.g. 50) .... how does that translate to a filename without modifying ANY code ???
Go to Top of Page

Alfred
Senior Member

USA
1527 Posts

Posted - 10 August 2003 :  11:08:52  Show Profile  Visit Alfred's Homepage
Of course it does not do that.
However, it enables me to insert the data into the medals table without having to shut down and download/upload the database.
I still have to modify display files, but only need to do a replacement upload then.

Alfred
The Battle Group
CREDO
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 10 August 2003 :  17:16:37  Show Profile
quote:
Originally posted by Alfred

Of course it does not do that.

But a better db design makes it possible
quote:

However, it enables me to insert the data into the medals table without having to shut down and download/upload the database.


NO need to do this at all. Table Editor is fantastic for online updating
quote:

I still have to modify display files, but only need to do a replacement upload then.


Exactly my point. There is no need for this. It 'should' all be done by updating the database via forms, not by altering code and uploading all the time.
Go to Top of Page

Alfred
Senior Member

USA
1527 Posts

Posted - 11 August 2003 :  12:12:24  Show Profile  Visit Alfred's Homepage
Well, via forms is what I have been doing, and I put the forms in the admin option section.
But I still need to rewrite the code for the pages that display the data, and upload the new one.

I guess the "table editor" cannot eliminate that need.

Alfred
The Battle Group
CREDO

Edited by - Alfred on 11 August 2003 14:16:40
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 11 August 2003 :  17:34:07  Show Profile
Alfred, you're not listening properly .....

With a better designed database, you will NOT need to edit code to change anypart of your application. At the moment if you want to add on to your medal list you have to change code. Using forms is fine (look at Snitz, everything is handled by forms), do you ever see instructions in Snitz that say "now go and edit this code to make it work". The only time you see that is when you inserting a mod (not really what I'm talking about here).

Anyway, as I said, it doesn't really matter. You know what you need to change when you have new medals, members, or links between the two. All I was trying to show was there is a better (more complex to write, more easy to maintain) method that you might want to consider.
Go to Top of Page

Alfred
Senior Member

USA
1527 Posts

Posted - 11 August 2003 :  18:43:35  Show Profile  Visit Alfred's Homepage
Well, as you can see, anything more complex to write does not have good prospects with me.
Basically, I like the idea of putting extra efort into the design, so that maintenance is easier, but alas, I better recognize my limitations, and for once curb my ambitions.

I want to thank you very much for your patience and tenacity to see me through this challenge.

Alfred
The Battle Group
CREDO
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 12 August 2003 :  04:22:26  Show Profile
no probs mate, my reward is to see your code working

I only bring it up now, because you have something that now works. You can now choose to further develop the medal feature or leave it like it is.

Whichever you choose, it's on to the next challenge
Go to Top of Page
Page: of 6 Previous Topic Topic Next Topic  
Previous 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 2.46 seconds. Powered By: Snitz Forums 2000 Version 3.4.07