- - Code, Content, and Presentation
- -- PHP Server Side Scripting
- ---- PHP Warning: Division by zero
swa66 - 10:59 pm on Apr 16, 2013 (gmt 0)
Any chance there's a query that doesn't return any rows ?
Calculating the remainder of something divided by zero isn't going to work out...
You should check that you get a $divideby that's different from zero before you calculate the modulo.
Thread source: http://www.webmasterworld.com/php/4564612.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com