this.user Posted January 26, 2010 Share Posted January 26, 2010 I am running into something I have never seen before; using this line of code, the value message had is removed and it echos nothing $message = mysql_real_escape_string($_POST['message']); echo $message; can anyone explain what is going on? why the value is no longer there? Link to comment https://forums.phpfreaks.com/topic/189910-mysql_real_escape_string-nullifying-string/ Share on other sites More sharing options...
Fergal Andrews Posted January 26, 2010 Share Posted January 26, 2010 Are you using mysql_real_escape_string() after you have made a database connection? Link to comment https://forums.phpfreaks.com/topic/189910-mysql_real_escape_string-nullifying-string/#findComment-1002092 Share on other sites More sharing options...
this.user Posted January 27, 2010 Author Share Posted January 27, 2010 turns out i had misstyped the include file which caused it to never connect. thanks! Link to comment https://forums.phpfreaks.com/topic/189910-mysql_real_escape_string-nullifying-string/#findComment-1002253 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.