我正在建立一个私人消息网络,它似乎没有将它们插入到我指定的表中。消息被发布到表中,然后在不同的脚本中访问。我的查询有什么问题?
$new_of_id = $_SESSION['user_login'];
$send_msg = mysql_query("INSERT INTO pvt_messages VALUES ('','$new_of_id','$username','$msg_title','$msg_body','$date','$opened','$deleted')");
echo "Your message has been sent!";
}
}
echo "
<form action='send_msg.php?u=$username' method='POST'>
<h2>Compose a Message: ($username)</h2>
<input type='text' name='msg_title' size='30' onClick=\"value=''\" value='Enter the message title here ...'><p />
<textarea cols='50' rows='12' name='msg_body'>Enter the message you wish to send ...</textarea><p />
<input type='submit' name='submit' value='Send Message'>
</form>
";
}