Thanks ill try that out
Still does not seem to work with it. I checked my source here is what the php code created
<button onclick='youtube("GUY MARTIN TT Isle of Man Lap on-board Honda 1000 - 1 of 2","On-board with the TT\'s quickest ever recorded lap in the Senior TT 2007 race in the TT\'s 100th Anniversary Year with British rider, GUY MARTIN (who provides ...","http://www.youtube.com/watch?v=QVXc29ZgutI")'>GUY MARTIN TT Isle of Man Lap on-board Honda 1000 - 1 of 2</button>
When I remove all the apostrophe then it works.
$title1 = Addslashes($titles);
$dess = Addslashes($des);
$url2 = Addslashes($url1);
What I did was that i used str_replace() and had is so it replaced all the " in the string with just a place space.