Jump to content

[SOLVED] help with injection


darkfreaks

Recommended Posts

anyone got any ideas how i could better escape injection ???

<?php
function systemmessage($game,$page,$user,$message)
{
$timestamp = date("U");
//isnt working injection wise 
mysql_real_escape_string(strip_tags(mysql_query
("INSERT INTO messages2 (userid,message,link,game,message_time) 
VALUES ('$user','$message','$page','$game','$timestamp')")));
return 1;
}?>

Link to comment
https://forums.phpfreaks.com/topic/138396-solved-help-with-injection/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.