raheelwp Posted December 16, 2012 Share Posted December 16, 2012 Hello All, I m a newbie in php. As i m practicing it , but i don't know what is wrong with my code that my entries are not getting saved in mysql db. On the other hand i have almost the same code and it is working fine. So i assume my xampp is working fine. Attach is the file .. Please help me anyone . Thanks Raheel module.php db.php Link to comment https://forums.phpfreaks.com/topic/272073-my-entries-are-not-getting-saved-in-mysql-db-xampp/ Share on other sites More sharing options...
Christian F. Posted December 17, 2012 Share Posted December 17, 2012 You're not handling MySQL errors, and I suspect that you got error reporting turned off as well. Both of which will make it a lot harder than necessary, and in some cases impossible, to properly debug a problem. I recommend reading the links in Jessica's signature, as they'll teach you everything you need to know in order to sort this out. PS: Your script is also totally open for SQL injections and XSS attacks! You really need to look into input validation, and output escaping. Link to comment https://forums.phpfreaks.com/topic/272073-my-entries-are-not-getting-saved-in-mysql-db-xampp/#findComment-1399804 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.