nvm guys. I found a solution. Here it is if anyone is interested
var arrowHeight = 25;
var viewportHeight = 200;
var contentHeight = 600;
var viewableRatio = viewportHeight / contentHeight; // 1/3 or 0.333333333n
I'm making my own custom UI system for my game, and I have a small problem with scroll bars. I don't know what is the equation to calculate the grip size of the scroll bar.
So let's say I have a panel that is 200x200 px. and an...
So I read that mysql_real_escape_string() is deprecated in php 5 and will be removed completely in php6. I also read that I should use pdo to prevent sql injection. is that true?
if so can you guys give me an example on how to...