PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I want to create a Jackpot game where the positive & negative numbers are randomly generated. I have written my code in Dreamweaver but I don't see the output of my PHP code. Instead of code I see the PHP symbol. I also want to know how to combine multiple functionalities in PHP. I want to create a table, store game credit, generate a random number etc. This is my current code.
@Internet Solution: .php
@Oscardog: I have XAMPP, I don't know how to use it. Anyways my main problem is I don't know how to put multiple different things in a table or execute multiple different things separately eg. generate a random number, capture form info all in one program. I also need to update gamer credit regularly. How do I do all this in one program?
Suzanne M wrote:@Internet Solution: .php
@Oscardog: I have XAMPP, I don't know how to use it. Anyways my main problem is I don't know how to put multiple different things in a table or execute multiple different things separately eg. generate a random number, capture form info all in one program. I also need to update gamer credit regularly. How do I do all this in one program?
I don't want to be disrespectful, but really, what you are asking is for someone to tell you in an online forum how to learn programming. Programming is a rather complicated skill that requires you to read a book on PHP or follow some online PHP tutorials (you can Google to find many of them).
Nvm I understood how to program what I wanted and I understood XAMPP. Now my qn is I created a game database with XAMPP. What info shud the database store? Jus game data which means all the random numbers the game can generate or also gamer details? The reason for my qn is in this game, the gamer will first deposit part of his credit value before playing the game, the game outputs a random credit value, this value gets added to the gamers existing credit, game over. So are user details also req storage? As in store Username, Current Credit, Generated Credit from game.
A database stores data that will or may be needed later. If you will need data at a future point, then you need to store it. If you won't need the data at a future point, then you don't need to store it.