Click here to Skip to main content
15,915,975 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
QuestionLearning Linux Pin
pc.bharti27-May-10 23:33
pc.bharti27-May-10 23:33 
AnswerRe: Learning Linux Pin
Richard MacCutchan28-May-10 0:10
mveRichard MacCutchan28-May-10 0:10 
GeneralRe: Learning Linux Pin
wbgxx21-Jun-10 3:58
wbgxx21-Jun-10 3:58 
AnswerRe: Learning Linux Pin
Iranian MM7-Sep-11 6:51
Iranian MM7-Sep-11 6:51 
QuestionPHP DOM Pin
vho12320-May-10 4:50
vho12320-May-10 4:50 
AnswerRe: PHP DOM Pin
Graham Breach20-May-10 7:06
Graham Breach20-May-10 7:06 
QuestionManaging a database insert failure.. Pin
MacIntyre19-May-10 4:57
MacIntyre19-May-10 4:57 
AnswerRe: Managing a database insert failure.. [modified] Pin
Dr.Walt Fair, PE19-May-10 5:26
professionalDr.Walt Fair, PE19-May-10 5:26 
You can use a try ... catch to handle the error elegantly or use @ with the function name to suppress the error message, but in my opinion, allowing a known error to happen in the first place is a poor design.

I would do a simple SELECT query before to see if the name exists, then act accordingly.
CQ de W5ALT

Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software


modified on Wednesday, May 19, 2010 11:32 AM

GeneralRe: Managing a database insert failure.. Pin
MacIntyre19-May-10 5:39
MacIntyre19-May-10 5:39 
GeneralRe: Managing a database insert failure.. Pin
Dr.Walt Fair, PE19-May-10 6:02
professionalDr.Walt Fair, PE19-May-10 6:02 
GeneralRe: Managing a database insert failure.. Pin
MacIntyre19-May-10 6:32
MacIntyre19-May-10 6:32 
GeneralRe: Managing a database insert failure.. Pin
Dr.Walt Fair, PE19-May-10 6:53
professionalDr.Walt Fair, PE19-May-10 6:53 
GeneralRe: Managing a database insert failure.. Pin
MacIntyre19-May-10 7:53
MacIntyre19-May-10 7:53 
GeneralRe: Managing a database insert failure.. Pin
User 171649219-May-10 7:14
professionalUser 171649219-May-10 7:14 
GeneralRe: Managing a database insert failure.. Pin
MacIntyre19-May-10 7:54
MacIntyre19-May-10 7:54 
QuestionFile Conversion Pin
S p k 52117-May-10 18:44
S p k 52117-May-10 18:44 
Questionphp and batch files Pin
simpocoder17-May-10 3:13
simpocoder17-May-10 3:13 
AnswerRe: php and batch files Pin
User 171649217-May-10 3:22
professionalUser 171649217-May-10 3:22 
GeneralRe: php and batch files Pin
simpocoder17-May-10 4:10
simpocoder17-May-10 4:10 
GeneralRe: php and batch files Pin
cjoki17-May-10 11:43
cjoki17-May-10 11:43 
GeneralRe: php and batch files Pin
simpocoder18-May-10 22:53
simpocoder18-May-10 22:53 
GeneralRe: php and batch files Pin
cjoki1-Jun-10 14:19
cjoki1-Jun-10 14:19 
QuestionUsing SAX Pin
vho12317-May-10 2:17
vho12317-May-10 2:17 
Question">" problem in PHP code Pin
SNArruda15-May-10 6:09
SNArruda15-May-10 6:09 
AnswerRe: ">" problem in PHP code Pin
mdusyl15-May-10 7:52
mdusyl15-May-10 7:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.