$results = sql::clean_row(" select sum(quantity) as quantity, (sum(duration_minutes) * 60) + sum(duration_seconds) as duration_seconds from event.dbo.process_data where process_id=$process_id");
There's no need in the code you posted to assign $_POST['how_many'] to the same variable four times. Once it's assigned, it's assigned (unless you overwrite it at some point). For that matter, there's really no functional need to assign $_POST['how_many'] to anything. These two snippets are functionally identical:
PHP Code:
$foo = $_POST['foo'];
$result = $foo * $bar;
...or...
PHP Code:
$result = $_POST['foo'] * $bar;
04-01-2013, 06:24 AM
Robins133
Ref: Post
You have to check the all code from first. Check event code separately and execute it.
Thanks
iConnect Group