Re: [PHP] Script not updating

2001-02-25 Thread Miles Thompson
Peter, In case "AAA" When $submit is set, you will always get an an insert; you have a mysql_query executing. In case "BBB" you are only assigning the SQL statement to $result, I didn't look further to see where it executes. It really doesn't matter because case "AAA" will always fire first.

RE: [PHP] Script not updating

2001-02-25 Thread Miles Thompson
CTED]] >Sent: Monday, February 26, 2001 10:36 AM >To: Peter Houchin; PHP MAIL GROUP >Subject: Re: [PHP] Script not updating > > >From: "Peter Houchin" <[EMAIL PROTECTED]> > > > > Could some one please have a look thru my code and tell me why it creates >a

RE: [PHP] Script not updating

2001-02-25 Thread Peter Houchin
er Houchin; PHP MAIL GROUP Subject: Re: [PHP] Script not updating From: "Peter Houchin" <[EMAIL PROTECTED]> > Could some one please have a look thru my code and tell me why it creates a new record instead of updating the record? > [snip] > > if ($submit){ > >

Re: [PHP] Script not updating

2001-02-25 Thread Simon Garner
From: "Peter Houchin" <[EMAIL PROTECTED]> > Could some one please have a look thru my code and tell me why it creates a new record instead of updating the record? > [snip] > > if ($submit){ > > $result = mysql_query("INSERT INTO app (name,company,address,suburb,state,post,areacode,phone,faxar