Jump to content

[SOLVED] round() error


maxudaskin

Recommended Posts

<?php

$dept = $_POST['dept'];
						$dest = $_POST['arrv'];
						$acft = $_POST['aircraft'];
						$tail = $_POST['tail'];
						$ttlt = $_POST['min']/60;
						$ttlt = round($ttlt,2);
						$aspd = $_POST['airspeed'];
						$dptm = $_POST['depttime'];
						$dstm = $_POST['arrvtime'];
						$calt = $_POST['alt'];
						$altt = $_POST['alt_type'];
						$rout = $_POST['route'];
						$fnum = $_POST['flight_num'];
						$query = mysql_query("INSERT INTO `database`.`table` (`departure` ,`destination` ,`flight_id` ,`route` ,`aircraft` ,`totaltime` ,`online` ,`date` ,`type` ,`pid`)VALUES ('{$dept}', '{$dest}', '{$fnum}', '{$rout}', '{$acft}', '{$ttlt}', '{}', '{}', '1', '{}')");

?>

 

It keeps outputting 0... Any ideas?

 

Link to comment
https://forums.phpfreaks.com/topic/86722-solved-round-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.