我将近一个小时试图了解我在这里做错了什么。没有输出。
连接正常,数组中充满了数据
<?php header('Content-Type: text/html; charset=utf-8');
// Here's the argument from the client.
$domain = $_GET['string'];
$quest=$_GET['quest'];
$event=$_GET['event'];
$con = mysql_connect('localhost', '******', '********');
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("vocabulary", $con);
$sql="SELECT * FROM `0` WHERE event_name = '".$event."' AND quest_id = '".$quest."'";
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
$key = array_search($domain, $row);
echo $key;
mysql_close($con);
?>
有任何想法吗??谢谢