Käynnissä

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

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

Taidot: Linux, MySQL, PHP

Näytä lisää: division zero php, warning division zero, php division zero, php warning division zero, php round division zero, message error, video script, php fix error, 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, fix php database, php warning, php video database script, fix php error, fix warning, warning php, video found fix

About the Employer:
( 20 reviews ) Christchurch, New Zealand

Projektin tunnus: #4224296

Myönnetty käyttäjälle:

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 1 päivässä
(242 arvostelua)
6.4

11 freelanceria on tarjonnut keskimäärin 65 $ tähän työhön

dinotech

understood your requirement and ready to start...

250 $ USD 2 päivässä
(38 arvostelua)
6.1
saifmit2

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

100 $ USD 1 päivässä
(17 arvostelua)
5.5
pyostrike

Hello. I can help you. Anton.

55 $ USD 1 päivässä
(58 arvostelua)
5.0
luantnd

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

30 $ USD 0 päivässä
(34 arvostelua)
4.5
rahulfl

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

50 $ USD 1 päivässä
(18 arvostelua)
4.4
ranjitsingh90

Allow me to do maths for you :P

50 $ USD 1 päivässä
(16 arvostelua)
4.3
rajeshsingh520

I can solve this problem of divide by zero

60 $ USD 1 päivässä
(8 arvostelua)
3.5
synan54

hi ready to work on your project

30 $ USD 1 päivässä
(7 arvostelua)
2.9
kishore415

I can help you fix it..

30 $ USD 1 päivässä
(2 arvostelua)
1.8
fabriziofarina

I'm expert of this.

30 $ USD 1 päivässä
(0 arvostelua)
0.0