Jump to content

Somebody pls help!!!


medworthy

Recommended Posts

I am having problems adding and deleting records.

I am working on a simple phone messaging system using php and mysql, and am having deleting and adding records.

 

I have attached 3 files, add.php - to add records, del.php - deletes records and view.php to (yep, you guessed it) view the records.

 

If somebody (anybody, help!) can look through the files and tell me where I am going wrong, that would be great.

 

-- Mark

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/47234-somebody-pls-help/
Share on other sites

I don't think anyone wants to use their free time ploughing through your code looking for some hidden syntactic or logical error.  Perhaps you could deign to give us a hint of what problem(s) you are having?  Maybe even, if it's not too much to ask, an error message.

 

And when you're posting, try to come up with a more descriptive title than "Somebody pls help!!!"

Link to comment
https://forums.phpfreaks.com/topic/47234-somebody-pls-help/#findComment-230664
Share on other sites

Why do you have the "if (isset($_POST["id"]) && !get_magic_quotes_gpc..." block twice?  It looks like you accidently copied and pasted it in the middle of itself.  Your code would be much more legible were it indented.

 

Have you tried checking for MySQL errors?  Have you dumped $_POST to be sure there's data in there?

Link to comment
https://forums.phpfreaks.com/topic/47234-somebody-pls-help/#findComment-231243
Share on other sites

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.