Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-22-2007, 11:41 PM   #1
galleryseek
Confirmed User
 
Industry Role:
Join Date: Mar 2002
Posts: 8,234
PHP Issue! what is a function for...

I'm trying to submit a couple textareas which contain actual php coding text as content, to a mysql table. The problem is... is mysql errors when I submit it because it tries to actually execute the php coding... while all I want to do is just store the coding in a table...

I know there has to be some type of function I can run the textarea variables through first that will temporarily render the coding so that php won't try to execute it, anyone know what it is?

Thanks
galleryseek is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-22-2007, 11:44 PM   #2
tical
Confirmed User
 
Join Date: Feb 2002
Location: Las Vegas
Posts: 6,504
encode the variables before they go in... decode after they're out

and i think the eval() function will be useful

http://www.php.net/eval
__________________
112.020.756
tical is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-22-2007, 11:48 PM   #3
galleryseek
Confirmed User
 
Industry Role:
Join Date: Mar 2002
Posts: 8,234
Quote:
Originally Posted by tical View Post
encode the variables before they go in... decode after they're out

and i think the eval() function will be useful

http://www.php.net/eval
so I "encode" the variables first with eval?

ie:

$php_coding = eval($_POST['php_coding');

$query = "INSERT INTO table (php_coding) VALUES ($php_coding)";

?
galleryseek is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.