Jump to content

[Help]Online Module For Web Site

- - - - -

  • Please log in to reply
6 replies to this topic

#1
Zero_Cool

Zero_Cool

    Learning Programmer

  • Members
  • PipPipPip
  • 65 posts
i was asked to make an online module in php for web site this module will connect to the game db and show if 0 users connected a progress bar than if 10 users connected the progress bar will go up from 0 to 10 and so on i need a little advice how to begin ? i am a little bit rusty in php :D

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
How is the number of online users recorded in the game db?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
Zero_Cool

Zero_Cool

    Learning Programmer

  • Members
  • PipPipPip
  • 65 posts
there is no limit

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
I didn't ask for the limit, I asked for how it's stored. You have to start with knowing where the data is located. You could probably use a div tag with static width as the "progress bar" and use AJAX calls to update it.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
Zero_Cool

Zero_Cool

    Learning Programmer

  • Members
  • PipPipPip
  • 65 posts
its stored in 2000 SQL Data Bases

#6
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
I hope you mean in a SQL Server 2000 database. If the data is spread across 2000 different databases, it gets a lot messier.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#7
bbqroast

bbqroast

    Codecall Addict

  • Members
  • PipPipPipPipPipPipPip
  • 554 posts
  • Location:/etc/passwd
Are you sure the live amount of players is stored? That could be a bit intensive on MySQL.
A div tag would be your best chance, or you could try making a image (then you could make a signature out of it) if it needs to be live you could use Javascript to make the browser reload it (I'm sure that's possible!).
Please, write clearly with proper structure. Double spacing makes the text feel un-jointed, Capitalizing Every Word Means People Stop Before Every Word Sub-Consciously Which Is A Pain In The Backside, and use code tags! (The right most styling box).




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users