Quote:
Originally Posted by sabret00the
sorry to be a pain, but i'm encountering an error on line 1843
Code:
$ms .= ' <td class="tcat"' . iif($vboptions['allowchangestyles'], ' colspan="2"') . '><div class="smallfont">';
the error is
Code:
Parse error: parse error, unexpected T_STRING in K:\Network\xampp\htdocs\forums\includes\functions.php on line 1843
Fatal error: Call to undefined function: exec_nocache_headers() in K:\Network\xampp\htdocs\forums\admincp\global.php on line 37
|
You made a little mistake while editing the code, please check your steps.
Quote:
Originally Posted by Tarion
I get an error division by zero from this two lines in the code, and i can't find out what's wrong.
PHP Code:
$msphp = vb_number_format(((($totaltime - $querytime) / $totaltime) * 100), 2) . '% PHP';
$mssql = vb_number_format((($querytime / $totaltime) * 100), 2) . '% MySQL';
Please help me
|
One of your values has to be returned as zero somewhere, or as a value that PHP will convert to a zero when it converts it to an integer.
Something is wrong with the code, you cannot have either the $totaltime or $querytime as zero.