Retrieve Specific Data/Value From Database 1 Line PHP
Posted
by Belgin Fish
on Stack Overflow
See other posts from Stack Overflow
or by Belgin Fish
Published on 2010-05-08T23:20:46Z
Indexed on
2010/05/08
23:28 UTC
Read the original article
Hit count: 124
Hi, I'm just wondering how I can retrieve a specific value (only 1 thing will be returned) from a database using php.
My query is
mysql_query("SELECT balance FROM users WHERE username = '". $this->username . "'")
I'm just looking for it to retrieve the data from that row so I can save it directory into a variable.
© Stack Overflow or respective owner