PHP Classes

Division by zero in wsp_table.php on line 544

Recommend this page to a friend!

      Table by DIV tags - Whisper Table  >  All threads  >  Division by zero in wsp_table.php on...  >  (Un) Subscribe thread alerts  
Subject:Division by zero in wsp_table.php on...
Summary:Division by zero in wsp_table.php on line 544
Messages:4
Author:Jeff Flesher
Date:2009-02-03 20:06:28
Update:2009-02-03 22:50:40
 

  1. Division by zero in wsp_table.php on...   Reply   Report abuse  
Picture of Jeff Flesher Jeff Flesher - 2009-02-03 20:06:28
I ran your demo and got:
Division by zero in wsp_table.php on line 544
$un_width = (99 - $assigned) / $num_unassigned; // 99... go figure

you assign it $num_unassigned = 0;
and it never gets incremented $num_unassigned++;

  2. Re: Division by zero in wsp_table.php on...   Reply   Report abuse  
Picture of F Philip DeGeorge F Philip DeGeorge - 2009-02-03 20:36:59 - In reply to message 1 from Jeff Flesher
Thanks Jeff. I'll look into it right away. (Perhaps I uploaded the wrong demo file...)

  3. Re: Division by zero in wsp_table.php on...   Reply   Report abuse  
Picture of F Philip DeGeorge F Philip DeGeorge - 2009-02-03 20:47:01 - In reply to message 1 from Jeff Flesher
That's embarassing. I'll get a fix uploaded ASAP.

  4. Re: Division by zero in wsp_table.php on...   Reply   Report abuse  
Picture of Jeff Flesher Jeff Flesher - 2009-02-03 22:50:40 - In reply to message 3 from F Philip DeGeorge
Ok I downloaded the example; had to make one change, line 10; include ("scripts/core/wsp_table.php"); to include ("wsp_table.php"); since I'm running out of the folder I extracted into.
check3.gif is missing.
It works great.

Thanks