|
Posted by Jerry Stuckle on 05/29/06 17:09
scuniverse@gmail.com wrote:
> The script is rather big... there's like 600 lines, however it's quite
> simple.
>
> At the beggining there's a select mysql query and afterwars a while
> loop, on the loop there's 3 possible cases and each one has 2 select
> and 3 update mysql query, in between the 2 select and 3 updates there's
> a bunch of basic maths and that's pretty much everything.
>
> When I run it manually it output a lot of division by zero errors but
> no other error
>
Well, a lot of division by zero errors tells me there's a lot of sloppy
programming there, and anything could be happening.
But in addition to that - there is no way anyone can tell you what's going on
without detailed knowledge of what you're doing in the loops. I suggest you cut
down the amount of code in the slow loops until you locate the specific line(s)
of code causing the problem.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|