|
|
|
||||
|
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. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
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 |
|
|
|
|
|
#2 |
|
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 |
|
|
|
|
|
#3 | |
|
Confirmed User
Industry Role:
Join Date: Mar 2002
Posts: 8,234
|
Quote:
ie: $php_coding = eval($_POST['php_coding'); $query = "INSERT INTO table (php_coding) VALUES ($php_coding)"; ? |
|
|
|
|