|
Posted by Jerry Stuckle on 05/13/05 06:47
DJ Craig wrote:
> I keep getting this error:
> Fatal error: Unsupported operand types in
> /usr/local/etc/httpd/htdocs/djtricities/kat/bpmchart/chart.php on line
> 58
>
> I've looked for hours for some type of error, and tried lots of
> different things, but I can't get it to work. I did a google search
> for "unsupported operand types" and for most of the people getting this
> error, it was something to do with the version of PHP that they were
> running, but I can't change that because it's a shared server from a
> hosting company. I'm using PHP version 4.3.11 on Linux. Heres the
> program around line 58:
> _________________________________
> function makeTable($myarray){
> $result = "";
> for($row = 0; $row < count($myarray); $row++){
> $result .= '<tr>';
> for($col = 0; $col < count($myarray[$row]); $col++){
> $result .= '<td>' . $myarray[$row][$column] . '</td>';
> }
> $result .= '</tr>';
> }
> return $result;
> }
>
> function bpm($cue, $play){
> //if( abs($play - 2 * $cue) < abs($play - $cue) ) $cue = $cue * 2;
> //else if( abs(2*$play - $cue) < abs($play -$cue) ) $play = $play *
> 2;
> return ((-100 * ($cue - $play))/$cue); // ***LINE 58***
> }
> ?>
> </body></html>
>
What's actually in $cue and $play? Try echoing them to see. I suspect
one or both is not numeric.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|