//Retrieve posted info.
$englishinput=$_POST['englishinput'];
$query="SELECT monolingua, COUNT(monolingua) as monolingua_count FROM dictionary
WHERE english=$englishinput GROUP BY monolingua ORDER BY monolingua_count
DESC LIMIT 5";
echo $query;
I'm having two problems with this script.
First, I'm getting a syntax error for the $query cmd. I believe it has to do with the $englishinput variable.
Second, the echo $query line just prints out the script line above. I need it to print out the data results.