Forums

This topic is locked

Redirect for MySQL Message

Posted 01 Sep 2004 22:01:34
1
has voted
01 Sep 2004 22:01:34 Brian Case posted:
I created a survey in Dreamwever that stores information in a MySQL database. I wanted to stop our membership from voting more than once so I made AgentID a primary key in the database. The only problem I have is that if a member tries to vote more than once they get the message "Duplicate Entry 'AgentID' For Key1". I want a more friendly version of this message and did not know if there was a way to redirect this particular message to a page with my friendly message. Maybe this is not the best way to do this. Any ideas would be appreciated.

Thanks

Reply to this topic