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] 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() 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
Archived
This topic is now archived and is closed to further replies.