s4salman Posted October 2, 2011 Share Posted October 2, 2011 Hello i am unable to find why the record is not adding into the mysql database. My connection are right. I am attaching the files. Please help me in this. [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/248273-not-adding-record-into-mysql-db/ Share on other sites More sharing options...
Buddski Posted October 2, 2011 Share Posted October 2, 2011 $results = mysql_query($query) or die(mysql_error()); Will tell you why. Also, trim isnt going to do much to protect your DB from SQL Injection, try mysql_real_escape_string() Quote Link to comment https://forums.phpfreaks.com/topic/248273-not-adding-record-into-mysql-db/#findComment-1274943 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.