Jobs

C++, C#, Java, PHP, ect...
Post Reply
pretender5552
Posts: 127
Joined: Mon Jan 03, 2011 5:38 am

Jobs

Post by pretender5552 »

I am setting my game up so that you can do jobs that can earn you experience and money but I want the results to show up in the same page just in a table that is only there when you finish the job how do I do this?
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: Jobs

Post by Jackolantern »

This is a pretty broad question that really can't be answered without writing up pretty much all the code for you. If you have gone all the way through Halls' PHP tutorials, you should have a good grasp on how to conditionally write results out to the page HTML (it is one of the foundations of PHP). If you have not watched all of the tutorial videos first, I suggest to watch them all the way through without writing a single line of code. You will see how to solve this problem in almost every video, but it may not hit you until you have seen it a few times in different situations.

If you still have a problem with it after that, then you can show us your code where you got stuck along with whatever errors you are getting or problems you are having and we can help you solve them. If you don't know where to start on a problem, break it down into smaller parts until each part gets simple enough that you can try it.
The indelible lord of tl;dr
pretender5552
Posts: 127
Joined: Mon Jan 03, 2011 5:38 am

Re: Jobs

Post by pretender5552 »

Sorry didn't explain clearly I have the jobs all up I am going to turn the button into a hyperlink when its clicked adds the money and experience I think I can do this bit but what I am asking is how I put the table in and have everything move down everything is set it place my divs so I am wondering if for that part I have to make it switch to a second style.css
Post Reply

Return to “Coding”