topical media & game development
professional-sql-10-public-files-post.php / php
<?php
// include shared code
include '../lib/common.php';
include '../lib/db.php';
// validate incoming values
_POST['person_name'])) ? trim(comment = (isset(_POST['post_comment']) : '';
if (comment)
{
// add comment
_GET['id'],
htmlspecialchars(comment));
mysql_query(GLOBALS['DB']);
echo 'OK';
}
else
{
echo 'ERR';
}
mysql_close(
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.