this query is provided by wordnet itself, and is used for retrieving word information, such as definition, examples etc from a view named dict. it was working fine for a month but now it just stopped working. beside, this query works fine in phpMyadmin!
if ($stmt = $link->prepare("SELECT lemma,pos,sensenum,synsetid,definition ,sampleset FROM dict WHERE lemma = ? ORDER BY pos,sensenum"))
{
$stmt->bind_param("s",$Vocab);
$stmt->execute();
$stmt->bind_result($Lemma, $Pos, $Sensenum, $synsetid, $Def1, $Def2);
while($stmt->fetch())
{
$output[]=array("Pos"=>$Pos,"Sensenum"=>$Sensenum,"Def1"=>$Def1,"Def2"=>$Def2, "pDef"=>'');
}
echo "@@*@@";
print json_encode($output);
$stmt->close();
}