Styles2304 Posted August 12, 2007 Share Posted August 12, 2007 Wasn't quite sure where to ask this question but . . . I was trying to update my database with this block of info for my church that requires some javascript however the quotes are throwing me off. Can you tell me how to fix that? Here's the link: <a href="javascript:void(0)" onclick="changePage('randompage.html');" class="announcements">here</a> When storing that with phpMyAdmin it gives me all kinds of errors. Quote Link to comment https://forums.phpfreaks.com/topic/64457-solved-storing-javascript-in-mysql/ Share on other sites More sharing options...
Styles2304 Posted August 12, 2007 Author Share Posted August 12, 2007 The problem is definitely the quotes . . . I tried "s around randompage but then the script doesn't work. I'm sure there has to be some way to store this in such a way that I can spit it out a webpage and have it still be functional. Quote Link to comment https://forums.phpfreaks.com/topic/64457-solved-storing-javascript-in-mysql/#findComment-321359 Share on other sites More sharing options...
Styles2304 Posted August 12, 2007 Author Share Posted August 12, 2007 bump Quote Link to comment https://forums.phpfreaks.com/topic/64457-solved-storing-javascript-in-mysql/#findComment-321562 Share on other sites More sharing options...
Styles2304 Posted August 12, 2007 Author Share Posted August 12, 2007 Ok nevermind, I just thought to replace the single quotes with the html code for them and it works fine. Quote Link to comment https://forums.phpfreaks.com/topic/64457-solved-storing-javascript-in-mysql/#findComment-321574 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.