Re: insert to table in php scripts
| From: | viraj | Date: | Sat, 28 May 2011 08:12:29 +0000 |
| Subject: | Re: insert to table in php scripts | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-313192@lists.php.net to get a copy of this message | ||
hi negin,
do you get duplicate inserts into both tables? if yes, try an
'exit();' right after the success message;
echo "you have been registered successfully!";
exit();
this will stop the script after the message, and you wont see the form
either. at this point check the tables for duplicate records. if there
are no duplicates, you are closer to the solution.
~viraj
On Sat, May 28, 2011 at 1:31 PM, Negin Nickparsa <nickparsa@gmail.com> wrote:
> I click the submit button just one time! not twice
> but when i go to MySql and select * from it
> it shows me happening two times
>