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

Link to comment
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.