Hello i want a basic search which counts how many records there are ths code works in mysql but when i use it in php its jus prints this code and dont display result
// Standard SQL
$query="SELECT COUNT(*) FROM dates WHERE search='yes'";
echo $query;