Hi can some help I am trying to create a formula in php. The problem is that when one value is divided by zero, which in some cases it might have to be I get this error
Warning: Division by zero in c:\phpdev\private\netspansion\index3.php on line 495
This is the PHP Code
<?php
$Activedaysleft = $Credits/$Creditsusedtoday;
echo $Activedaysleft;
?>
Is there any way to get around this