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