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?? Link to comment https://forums.phpfreaks.com/topic/148473-getting-x-amount/ Share on other sites More sharing options...
waynew Posted March 8, 2009 Share Posted March 8, 2009 In a mysql table? Link to comment https://forums.phpfreaks.com/topic/148473-getting-x-amount/#findComment-779611 Share on other sites More sharing options...
seany123 Posted March 8, 2009 Author Share Posted March 8, 2009 yeah Link to comment https://forums.phpfreaks.com/topic/148473-getting-x-amount/#findComment-779620 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 ? Link to comment https://forums.phpfreaks.com/topic/148473-getting-x-amount/#findComment-779621 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. Link to comment https://forums.phpfreaks.com/topic/148473-getting-x-amount/#findComment-779626 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... Link to comment https://forums.phpfreaks.com/topic/148473-getting-x-amount/#findComment-779635 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.