HI, I have been trying to write a little sort scripts,
I have the 1st part connect to the mysql and everything, but this is my script and try to print result, but I only have blank page. Did I do something wrong? Can some one help me? Thanks
if($action == "list") {
$sql = "SELECT * FROM posts WHERE subject LIKE 'a%' ";
$result = $db->query($sql);
$querydata = $db->fetch_array($result);
$finalresult = $querydata ["posts"];
echo $finalresult;
}