I have the following code in order to get the data from the db:
<?php
if (!$conn) {
die('Could not connect: ' . mysql_error());
}
$result = mysql_query("SELECT InsuranceType FROM insurancecharges WHERE InsuranceID = '$InsuranceID' ORDER BY 'InsuranceID' DESC LIMIT 0,1", $conn) or die('Query failed: ' . mysql_error());;
if (!$result) {
die('Could not query:' . mysql_error());
}
echo mysql_result($result);
mysql_close($conn);
?>
and after the code with the calculation above I've got nothing in php only html code. Most probably my abovementioned code has some errors. Am I correct?