Our new Indie Games subforum is now open for business in G&T. Go and check it out, you might land a code for a free game. If you're developing an indie game and want to post about it, follow these directions. If you don't, he'll break your legs! Hahaha! Seriously though.
Our rules have been updated and given their own forum. Go and look at them! They are nice, and there may be new ones that you didn't know about! Hooray for rules! Hooray for The System! Hooray for Conforming!
So I have an assignment due at midnight (creating a crude message board with PHP/MySQL), and it's pretty much all done, all it needs it commenting. However I'm trying to implement something for extra credit. Basically, it's a function that allows moderators to edit messages. However, when I go to update the database, it doesn't update it, although mysql_query() returns a true value. Here is my code :
elseif($action == "Submit Edit")
$messageid = $_SESSION['editmessage'];
$body = $_POST['body'];
echo "$body and $messageid<br/>";
$modid = $_SESSION['id'];
$body = stripslashes(trim($body . " edited by $modid"));
$query = "update Messages set body = '$body' where message_id = '$messsageid'";
$result = mysql_query($query);
echo "result = $result<br/>";