sqs-insane
07-14-2006, 10:39 AM
I havent been able to get my current code working on my new server due to magic_quotes and addslashes restrictions, and despite a previous attempt for help which didnt work out, or i wasnt able to implement in correctly, im now baffled. Can anyone supply me with some code for insert and code for update sql that is compatible with magic_quotes turned off and not using addslashes, so that i can just modify it with my db name and field names.
I am using forms which call <?php echo $editFormAction; ?> which are refernced in the PHP code as
$editFormAction = $HTTP_SERVER_VARS['PHP_SELF'];
if (isset($HTTP_SERVER_VARS['QUERY_STRING'])) {
$editFormAction .= "?" . $HTTP_SERVER_VARS['QUERY_STRING'];
in the action section of the form.
I am also using this call in the name section of the form
name="MM_insert"
which is reference in the PHP code as
if ((isset($HTTP_POST_VARS["MM_insert"])) && ($HTTP_POST_VARS["MM_insert"] == "addReptilefoods")) {
If there is a different way of doing this, any help would be great. i dont have much hair left to pull out :/
regards
paul
I am using forms which call <?php echo $editFormAction; ?> which are refernced in the PHP code as
$editFormAction = $HTTP_SERVER_VARS['PHP_SELF'];
if (isset($HTTP_SERVER_VARS['QUERY_STRING'])) {
$editFormAction .= "?" . $HTTP_SERVER_VARS['QUERY_STRING'];
in the action section of the form.
I am also using this call in the name section of the form
name="MM_insert"
which is reference in the PHP code as
if ((isset($HTTP_POST_VARS["MM_insert"])) && ($HTTP_POST_VARS["MM_insert"] == "addReptilefoods")) {
If there is a different way of doing this, any help would be great. i dont have much hair left to pull out :/
regards
paul