Read one column from one row from a MySQL database

前端 未结 8 1981
没有蜡笔的小新
没有蜡笔的小新 2021-01-15 03:30

Is there a quick and dirty way to get the value of one column from one row? Right now I use something like this:

$result = mysql_query(\"SELECT value FROM ta         


        
8条回答
  •  天命终不由人
    2021-01-15 04:06

    Do u want this?

    $output = array();
    while($row = mysql_fetch_array($result)){
        $output[] = $row['value'];
    }
    return $output;
    

提交回复
热议问题