$flow="240"; echo"flow ".$flow; $hft = mt_rand(66.0,68.1); echo"flow ".$hft; if($_GET["mode"]=="start") { include_once("config.inc.php"); # Inherit database connection information from variables defined in config.inc.php global $db, $db_host, $db_user, $db_password; # Connect to the database and report any errors on connect. $cid = mysql_connect($db_host,$db_user,$db_password); if (!$cid) { die("ERROR: " . mysql_error() . "\n"); } date_default_timezone_set('Asia/Calcutta'); $date = date('l jS \of F Y h:i:s A'); # Setup SQL statement and add the account into the system. mysql_select_db ("$db"); $result = mysql_query("INSERT INTO htl_exp ( `eid` , `name` , `sys` , `date` ) VALUES ('','Anuradha Bhat','$sys','$date')") or die("MySQL Login Error: ".mysql_error()); # Check for errors. if (!$result) { die("ERROR: " . mysql_error() . "\n"); } else { mysql_select_db ("$db"); $stuff = mysql_query("SELECT * FROM `htl_exp` where date='$date'") or die("MySQL Login Error: ".mysql_error()); if (mysql_num_rows($stuff) > 0) { $row=mysql_num_rows($stuff); while($row = mysql_fetch_array($stuff)) { $srno=$row['Srno']; } } } $floor = 10000; $ceiling = 99999; srand((double)microtime()*1000000); $random = rand($floor, $ceiling); $eid = $srno.$random; # Setup SQL statement and add the account into the system. mysql_select_db ("$db"); $result = mysql_query("UPDATE htl_exp SET eid='$eid' WHERE Srno='$srno'") or die("MySQL Login Error: ".mysql_error()); # Check for errors. if (!$result) { die("ERROR: " . mysql_error() . "\n"); } else { $_SESSION['eid'] = $eid; } } ?>
Enter position of valve for hot fluid (% opened)
Cold fluid flow rate :
lph
Hot fluid inlet temperature :
°C
Cold fluid inlet temperature :
°C
echo "
"; ?>