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

Closed

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".

Skills: Linux, MySQL, PHP

See more: division zero php, warning division zero, php division zero, php warning division zero, php round division zero, hd video script, message error, video script, sd to hd, php fix error, php database, my entries, fix php, script warning, database error linux server, linux php database, table video, linux server error, missing database table, table error, server found message video, video upload script php database, fix php database, need someone fix php script, php warning

Project ID: #4224296

Awarded to:

ranganalx

Hi, Good day! Let me work on this. Please send me FTP info and the link to where I could reproduce the issue. I can fix this today. Thanks!

$30 USD in 1 day
(242 Reviews)
6.4

11 freelancers are bidding on average $65 for this job

dinotech

understood your requirement and ready to start...

$250 USD in 2 days
(38 Reviews)
6.1
saifmit2

My objective is great customer service with broad experience and affordable Implementation. My Notion: "No Satisfaction, No Payment".

$100 USD in 1 day
(17 Reviews)
5.5
pyostrike

Hello. I can help you. Anton.

$55 USD in 1 day
(58 Reviews)
5.0
luantnd

Hi, Very easy, I'm ready fix it now

$30 USD in 0 days
(34 Reviews)
4.5
rahulfl

Hi I can start right now and solve this issue. Thanks

$50 USD in 1 day
(18 Reviews)
4.4
ranjitsingh90

Allow me to do maths for you :P

$50 USD in 1 day
(16 Reviews)
4.3
rajeshsingh520

I can solve this problem of divide by zero

$60 USD in 1 day
(8 Reviews)
3.5
synan54

hi ready to work on your project

$30 USD in 1 day
(7 Reviews)
2.9
kishore415

I can help you fix it..

$30 USD in 1 day
(2 Reviews)
1.8
fabriziofarina

I'm expert of this.

$30 USD in 1 day
(0 Reviews)
0.0