我有这样的代码php
$result = mysql_query("SELECT phone FROM user where phone LIKE 'hjkhkjh');
// check if row inserted or not
if ($result) {
// successfully inserted into database
$response["success"] = 1;
$response["message"] = "Account wasnt created.";
// echoing JSON response
echo json_encode($response);
}
else {
// failed to insert row
$response["success"] = 0;
$response["message"] = "Account was created.";
我想比较数据库中的电话号码,但是当我运行此代码时,此代码显示“未创建帐户”,而我的表中有数据电话号码“hjkhkjh”,我的代码的任何解决方案,谢谢