PHP arithmetic expressions

  • psilvaj_12
  • Newbie
  • Newbie
  • psilvaj_12
  • Posts: 9

Post 3+ Months Ago

hello!

I'm trying to build a PHP page with some arithmetic expressions, but as the form is no data error messages appear to divide by zero, like this:

Warning: Division by zero in /home/teste/public_html/teste.php on line 385


How can I make these messages disappear?

thank you
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3422
  • Loc: Richland, WA

Post 3+ Months Ago

If you want the warning message not to appear you can disabled it with the error reporting function

http://php.net/manual/en/function.error-reporting.php
  • psilvaj_12
  • Newbie
  • Newbie
  • psilvaj_12
  • Posts: 9

Post 3+ Months Ago

thanks!

It worked.

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 87 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.