Closed

Fix php/database error (division by zero) in my video script

This project was awarded to ranganalx for $30 USD.

Get free quotes for a project like this
Employer working
Awarded to:
Skills Required
Project Budget
$30 - $250 USD
Total Bids
11
Project Description

Below is a message to me from a server person that explains to me what the issue is which is preventing my SD videos from playing. I need someone to fix this and preferably someone who can start on it immediately. Any questions please ask.

Its something to do with the db. I have found that the videos that are not playing have some missing entries in the DB file.
Yesterday i have mentioned about the error. ie

=================
$video_width = $rs->fields['width_sd'];
------------------
if ($hd==0)
{
$autoheight = round(630 * ($video_height/$video_width) + 22); =================> line 34:PHP Warning: Division by zero in
$player_width = 630;
}
================

division by zero error thows because, video_width filed takes the value zero from db.

from the script ,the video_width takes it value from the table "video" of DB "smutclub_media". I have found that the videos that are not working have their "width_sd" value zero. As this value is zero, the above mentioned script throws the error "Division by zero".

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online