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.
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
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){
>
>
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
4 matches
Mail list logo