Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php sql get single value

// mysql_result() function is used to pull a single value from the database
$value = mysql_result(mysql_query("SELECT value FROM table WHERE condition = 'met'"), 0);
Source by www.daniweb.com #
 
PREVIOUS NEXT
Tagged: #php #sql #single
ADD COMMENT
Topic
Name
2+6 =