graham23s Posted January 3, 2008 Share Posted January 3, 2008 Hi Guys, i have successfully stored an embed link for vidoes on my site in mysql: <embed src="http://www.site.com/player/mediaplayer.swf" width="425" height="355" allowfullscreen="true" allowscriptaccess="always" flashvars="&file=http://www.site.com/flvmovies/phoenix23uk-FLV-1197160212.flv&height=355&width=425" /> but when i go to echo it out only this is coming back: <embed src= i assume it's to do with the fact its coming to a " but not sure if theres something i should be doing before inserting it into myslq or on the way out any help would be great cheers Graham Quote Link to comment https://forums.phpfreaks.com/topic/84356-solved-getting-urls-from-mysql/ Share on other sites More sharing options...
redarrow Posted January 3, 2008 Share Posted January 3, 2008 to post html in a database $url=htmlentities(addslashes($_POST['url'])); as said from above..... WARNING to make the database secure and code of yours intresting and re-usable just post the name of the file in then use html Quote Link to comment https://forums.phpfreaks.com/topic/84356-solved-getting-urls-from-mysql/#findComment-429658 Share on other sites More sharing options...
sKunKbad Posted January 3, 2008 Share Posted January 3, 2008 I believe when you store the html link in the database you need to add slashes before quotes, and then when you print the results of your query to the database, remove the slashes. Quote Link to comment https://forums.phpfreaks.com/topic/84356-solved-getting-urls-from-mysql/#findComment-429664 Share on other sites More sharing options...
graham23s Posted January 3, 2008 Author Share Posted January 3, 2008 thanks guys:) Graham Quote Link to comment https://forums.phpfreaks.com/topic/84356-solved-getting-urls-from-mysql/#findComment-429709 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.