Go Back   nV News Forums > Software Forums > Software Development

Newegg Daily Deals

Reply
 
Thread Tools
Old 07-11-07, 03:17 PM   #13
evilghost
Registered User
 
Join Date: Jul 2005
Posts: 3,606
Default Re: Storing Javascript into MYSQL

I wouldn't sanitize JavaScript, it's code, treat it as code. Escape it using mysql_real_escape_data() so the DB will accept it as code, you should then be able to echo it out of the db result set and have it be processed correctly. I think your data sanitization (as string) is removing invalid 'string' characters.
evilghost is offline   Reply With Quote
Old 07-11-07, 03:18 PM   #14
evilghost
Registered User
 
Join Date: Jul 2005
Posts: 3,606
Default Re: Storing Javascript into MYSQL

Quote:
Originally Posted by adbox
Whooo! success! It holds the information now.

Thank you alot for your help.
Sweet, glad to help. Stick around, these forums are fun.
evilghost is offline   Reply With Quote
Old 07-12-07, 07:04 AM   #15
ViN86
 
Join Date: Mar 2004
Posts: 15,486
Default Re: Storing Javascript into MYSQL

Quote:
Originally Posted by evilghost
Sweet, glad to help. Stick around, these forums are fun.


glad to hear you got it workin adbox
ViN86 is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL 5.5.25 News Archived News Items 0 06-15-12 06:00 AM
MySQL 5.5.24 News Archived News Items 0 05-09-12 06:10 AM

All times are GMT -5. The time now is 08:28 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.