📜  php sql 获取单个值 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:20.891000             🧑  作者: Mango

代码示例1
// 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);