Quote:
Originally Posted by ArchangelX
The error I'm getting is this...but for the most part, it seems to be working...it's just that some it doesn't like some stocks.
Warning: Division by zero in /vbtrade.php on line 114
|
In vbtrade.php search for:
PHP Code:
if ($mktval != 0)
$gainper = number_format((($gain/$mktval)*100),3);
And change the first line to:
PHP Code:
if ($mktval != 0 && $gain!= 0)