Re: used "primary key"
| From: | joe at jWebMedia dot com | Date: | Tue, 29 Aug 2000 18:58:16 +0000 |
| Subject: | Re: used "primary key" | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-2452@lists.php.net to get a copy of this message | ||
Yup, it'll tell you. Use echo mysql_error();
Why aren't you auto_incrementing the field and using mysql_insert_id() to
get a new id?
Joe
Stefan Ott wrote:
> hello
>
> i'm quite new to mysql and i've got the following question: if i try to
> add an entry with a primary key that's alerady in use, do i get some
> kind of feedback from the database? if yes, how can i read it?
>
> thanks for your help
>
> regards
> stefan
> --
> stefan ott cellular: +41.79.2459777
> stefan@desire.ch phone: +41.62.8274115
> http://stefan.desire.ch fax: +41.62.8274118
>
> "life is a sexually transmitted disease with 100% mortality"
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net