Jump to content

[SOLVED] Storing Javascript in MySQL


Styles2304

Recommended Posts

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.

 

Link to comment
https://forums.phpfreaks.com/topic/64457-solved-storing-javascript-in-mysql/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.