我的代码如下:
$pullGroupNamesSQL ="SELECT 'Group name' FROM `requests` WHERE 'stage'=$stageID"
. " and 'date'='2014-03-18'";
$pullGroupName = mysqli_query($con, $pullGroupNamesSQL)
or die("Error: ".mysqli_error($con));
当我尝试运行此查询时,出现此错误:
Error: Unknown column 'Maslulim' in 'where clause'
我在网上检查了很多(!!!)但找不到这个答案...
答案 0 :(得分:0)
试试这个
"SELECT Group name FROM requests WHERE stage= ".$stageID." and date='2014-03-18'"
答案 1 :(得分:0)
试试这个
$pullGroupNamesSQL = "SELECT column_name FROM Table_name WHERE stage='$stageID' AND date='2014-03-18'";