Jump to content

phoebe

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

phoebe's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thank you, David, that did it! For future reference, when I post code here, how do I set it apart as code rather than a quote? I made a minor change, and here's what I ended up doing: Thanks again.
  2. Thanks for the help, Hyster, but it doesn't seem to be functioning quite right. I keep getting the "already subscribed" message, regardless of what id I enter. I tried without the ! in front of the if (!mysql_errno() == 1062) bit because it seemed odd to me but that didn't help either. Any thoughts?
  3. Hello, I am hoping to get some advice on how to make my code work. What I would like to do is display a "you are already subscribed" message if the user experiences error 1062 (duplicate entry) and die, or if it's a different error that occurs I would just like it to display the raw error message and die. I've tried it this and way and that but I'm stumped (obviously I'm also pretty new to this). Here is my code: Any advice is greatly appreciated. Thank you!
×
×
  • 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.