Whats wrong with this...Doesn't seem to enter to db, comes back with no errors.
mysql_function.php.ap4 is my database variables, and connection file.
<?php
echo "<form action='?p=gallery&act=comment&img=$img' method='post' name='comment'>";
echo "<input name='poster' type='text' name='g_username' value='$g_username' size='15' readonly='true' {subtitle}>";
echo "<input name='poster' type='text' name='img' value='$img' size='15' readonly='true' {subtitle}><br>";
echo "Your comment<br>";
echo "<textarea name='comment' cols='70' row='10' {subtitle}>$comment</textarea><br>";
echo "<input type='submit' name='submit' value='Post Comment' {subtitle}>";
echo "</form>";
if (isSet($submit)) {
include("pages/mysql_function.php.ap4");
$query = "INSERT INTO comments ('image' , 'poster' , 'comment' , 'id') VALUES ($img, $g_username, $comment, ''";
mysql_query($query);
echo "Comment Entered - <a href='?p=gallery&act=showimage&img=$img'>Continue</a>";
}
?>