seany123 Posted March 8, 2009 Share Posted March 8, 2009 okay well im trying to think of a good way of explaining what i want... basically i have a value in a table called $player->energy and i want to get the value of that so i can do sums with it. thinking about it i could just do the sum then times is by $player->energy. any other suggestions?? Quote Link to comment Share on other sites More sharing options...
waynew Posted March 8, 2009 Share Posted March 8, 2009 In a mysql table? Quote Link to comment Share on other sites More sharing options...
seany123 Posted March 8, 2009 Author Share Posted March 8, 2009 yeah Quote Link to comment Share on other sites More sharing options...
DjMikeS Posted March 8, 2009 Share Posted March 8, 2009 So, basically, you are asking us how to retrieve a value from the mysql database ? Quote Link to comment Share on other sites More sharing options...
seany123 Posted March 8, 2009 Author Share Posted March 8, 2009 yes this might seem very dumb... it does to me also... its probably because i have had no sleep for 40 hours... but yeah i simply i wantto retrieve the value from the database. Quote Link to comment Share on other sites More sharing options...
DjMikeS Posted March 8, 2009 Share Posted March 8, 2009 Well, there are no dumb questions, however...you can do a simple search with google because there are tutorials for this all over the net... Example: http://www.google.com/search?q=get+value+from+mysql+database And if you click on the very first result, it will tell you how to retrieve a value... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.