Testing code

Posted in Browsers, Uncategorized | Posted by admin |


$title = $_POST['title'];
$content = $_POST['content'];
if(!get_magic _quotes_gpc())
{
$title = addslashes($title);
$content = addslashes($content);
}
include 'library/config.php';
include 'library/opendb.php';
$query = " INSERT INTO news (title, content) ".
" VALUES ('$title', '$content')";
mysql_query($query) or die('Error ,query failed');
include 'library/closedb.php';
echo "Article '$title' added";
}

No Comments » Keep Reading ...
Delicious Twitter Facebook Digg Stumbleupon Favorites More
September 2022
M T W T F S S
 1234
567891011
12131415161718
19202122232425
2627282930