-Edward-
12-14-2005, 07:27 AM
Here's my query and code:
$_POST[msg] = strip_tags($_POST[msg]);
$_POST[room] = strip_tags($_POST[room]);
$_POST[color] = strip_tags($_POST[color]);
$_POST[value] = strip_tags($_POST[value]);
@mysql_query("INSERT INTO messages SET
user = '$uid',
value = '$_POST[value]',
message = '$_POST[msg]',
style = '$color',
latest = '$utime',
ip ='$ip',
room='$room'");
}
However whenever i submit a posting that has ' in the posting it doesnt post it, how can i get around this? i've tried so many different things but it just gives me parse errors.
$_POST[msg] = strip_tags($_POST[msg]);
$_POST[room] = strip_tags($_POST[room]);
$_POST[color] = strip_tags($_POST[color]);
$_POST[value] = strip_tags($_POST[value]);
@mysql_query("INSERT INTO messages SET
user = '$uid',
value = '$_POST[value]',
message = '$_POST[msg]',
style = '$color',
latest = '$utime',
ip ='$ip',
room='$room'");
}
However whenever i submit a posting that has ' in the posting it doesnt post it, how can i get around this? i've tried so many different things but it just gives me parse errors.
