Suoritettu

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, 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

Tietoa työnantajasta:
( 20 arvostelua ) 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ä
(345 Arvostelua)
7.4

10 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön

dinotech

understood your requirement and ready to start...

$250 USD 2 päivässä
(237 arvostelua)
7.9
ranjitsingh90

Allow me to do maths for you :P

$50 USD 1 päivässä
(49 arvostelua)
5.9
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
rahulfl

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

$50 USD 1 päivässä
(33 arvostelua)
5.1
luantnd

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

$30 USD 0 päivässä
(60 arvostelua)
4.8
rajeshsingh520

I can solve this problem of divide by zero

$60 USD 1 päivässä
(17 arvostelua)
4.0
synan54

hi ready to work on your project

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

I can help you fix it..

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

I'm expert of this.

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