Jump to content

My Entries Are Not Getting Saved In Mysql Db (Xampp)


raheelwp

Recommended Posts

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

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.

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.