withinweb

Information and support for products of withinweb.com

withinweb header image 2

Possible way of dealing with inserting quote marks into a database

May 11th, 2012 · No Comments

This is another possible way of dealing with quote marks for inserting data into a database :

if (!get_magic_quotes_gpc()) {
$item_name = addslashes($_POST['txtItem_Name']);
}
else
{
$item_name = $_POST['txtItem_Name'];
}

Dealing with quote marks for inserting data into a database
———————————————————–

if (!get_magic_quotes_gpc()) {
$item_name = addslashes($_POST['txtItem_Name']);
}
else
{
$item_name = $_POST['txtItem_Name'];
}

Tags: General PHP · Security Issues

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

You must log in to post a comment.