Welcome to Scoreattack.net Sign in | Join | Faq

www.scoreattack.net

Started by Lance Way at 03-04-2006 12:44 AM. Topic has 21 replies.

Print Search
Sort Posts:    
   03-04-2006, 12:44 AM
Lance Way is not online. Last active: 1/25/2007 2:48:51 AM Lance Way

Top 10 Posts
Joined on 02-11-2006
England
Posts 148
Re: Database creation advice request.
Reply Quote
It's all looking fairly fine now, though I should say that the new PHP pages are always loaded "but with errors on page" according to IE status bar. (according to the "details" tab, it's syntax errors).
   Report 
   03-04-2006, 3:33 AM
EVL is not online. Last active: 3/28/2007 5:45:53 AM EVL



Top 10 Posts
Joined on 01-30-2006
UK
Posts 83
Re: Database creation advice request.
Reply Quote
Yeah, your image rollovers are somewhat broken.

I've just had a little look for rollover scripts on the web, and this looks good: http://www.dnolan.com/code/js/rollover/ though you'd have to rename all of the rollover images.

There will be plenty of other scripts for rollovers on the web, but make sure you look for cross browser or compliant ones. :)

edit: Oh, it's looking really good though! (I can't just come out with negativity) :)

   Report 
   03-04-2006, 9:37 AM
tabitha is not online. Last active: 1/5/2008 9:16:03 AM tabitha



Top 10 Posts
Joined on 01-22-2006
Posts 536
Re: Database creation advice request.
Reply Quote
I will have a look at the rollovers at some point next week. I think it might be something to do with PHP going absolutely nuts when you have inverted commas or something in it. Anyway, the main thing is its working and seirously EVL I cant thank you enough.

   Report 
   03-06-2006, 4:28 AM
EVL is not online. Last active: 3/28/2007 5:45:53 AM EVL



Top 10 Posts
Joined on 01-30-2006
UK
Posts 83
Re: Database creation advice request.
Reply Quote
No worries tabitha, I'm glad to be able to help.

By the way, I noticed that skaternights' scores have dissappeared in the update!


   Report 
   03-06-2006, 8:06 AM
tabitha is not online. Last active: 1/5/2008 9:16:03 AM tabitha



Top 10 Posts
Joined on 01-22-2006
Posts 536
Re: Database creation advice request.
Reply Quote
Thanks for pointing that out. I will get on it in a second.

Dont suppose you have any idea how to sort this problem out?

This is the final page I am having trouble with, its going to be totals for everyones scores for bosses/dreams/mares to give an overall picture of how people are doing.

http://www.scoreattack.net/scorestats.php

I have the code here,

http://www.scoreattack.net/scorestats.txt

I need to find a way to sort the value $btotal in reverse numeric order. Any ideas would be MUCH appreciated.





   Report 
   03-06-2006, 8:35 AM
EVL is not online. Last active: 3/28/2007 5:45:53 AM EVL



Top 10 Posts
Joined on 01-30-2006
UK
Posts 83
Re: Database creation advice request.
Reply Quote
The best way to do that would be to order it in the sql, something like

select gul + puf + cla + rea + jac + gul + wiz as total from tbl order by gul + puf + cla + rea + jac + gul + wiz desc

or possibly (can't quite remember, but I think both should work)

select gul + puf + cla + rea + jac + gul + wiz as total from tbl order by total desc

then just do $btotal = $r["total"]


   Report 
   03-06-2006, 6:13 PM
tabitha is not online. Last active: 1/5/2008 9:16:03 AM tabitha



Top 10 Posts
Joined on 01-22-2006
Posts 536
Re: Database creation advice request.
Reply Quote
I didnt know you could use the plus symbol in mySQL I htought it had to be the sum command which I tried but had Zero luck with. I will give this a go in a second.

- edit -

Looks like it is working! Thanks VERY much for the help.

   Report 
  Page 2 of 2 (22 items) < 1 2
Scoreattack.net » Score Attack - ... » www.scoreattack... » Re: Database creation advice request.

Powered by Community Server, by Telligent Systems