we want to display the total hours work of a person from the database. and we used the following codes:
or die("You are not connected");
$sql='select SUM(No_Hours) from timelist where="'.$id.'"';
echo 'Total hours work:'.$result.'';
why is it this statement won't work?
is something missing?
instead of the total hours be dispalayed, this statement will
be displayed: "resource id #5", that supposed to be the value
of $result will be displayed...