I am building a private messaging network and it doesn't seem to be inserting them into my table specified. The messages are posted into the table and then accessed in a different script. What is wrong my my query?
$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>
";
}