This is probably simpler than I think, but it is very difficult for me to envelop my head. I'm trying to learn how to code after a 10-year hiatus, so hacks and codecademy are my teachers. Anyway,...
What I'm trying to do is just make a percentage from sql number.
I have a form that, when submitted, enters an integer sql, which is used to output the css value. I'm just trying to change the width value from an integer to a percentage to allow some semblance for a sensitive effect.
Here's the php preliminary output:
<video id="vp2_html5_rightSidePlaylist_'.$row["id"].'" width="'.$row["playerWidth"].'%" height="'.$row["playerHeight"].'" '.$preload_aux.'><div class="xplaylist">'.$playlist_str.'</div></video>
The output is as follows:
<video id="vp2_html5_rightSidePlaylist_1" width="100" height="297" preload="auto" src="http://localhost:888/test.mp4">
Thanks in advance for your help!
source share