Thank you Derokorian for the reply, I'm obviously getting it round my next. Very new to SQL etc.
This return -0, so getting there I guess as no error.
<?php
require_once("config.inc.php");
if (!$completed) die("Please edit config.inc.php before using this.");
//Connect to database
$con = mysql_connect($dbHost, $dbUser, $dbPass);
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
//Check if database exists
if (!mysql_select_db($dbDatabase, $con))
{
die("Could not select database");
}
$query = "SELECT MAX(temp) FROM $dbMainTable";
$result = mysql_query($query);
$num = mysql_numrows($result);
$output .= "<temperature>" . round(mysql_result($result, int, $rowTemperature),1) . "</temperature>";
echo $output;
?>
Where am I still going wrong please?