This topic is locked

php erreur est apparue

3/30/2017 12:51:00 PM
PHPRunner General questions
H
htmalbenur author

Type d'erreur 256

Description erreur Duplicate entry 'NOR-03 Décès suivant type de Tumeur par groupe d'A--1' for key 'PRIMARY'

URL localhost/admin_rights_list.php?

Erreur fichier C:\Users\RNC\Documents\PHPRunnerProjects\Registre National du Cancer v2.0\output\connections\Connection.php

Erreur ligne 642

Requête SQL insert into registrehaiugrights (GroupID, TableName, AccessMask) values (-1, 'NOR-03 Décès suivant type de Tumeur par groupe d\'Age Homme', 'ASPI')
I cant find the error.
plz help.

H
Hertz2P 3/30/2017



Type d'erreur 256

Description erreur Duplicate entry 'NOR-03 Décès suivant type de Tumeur par groupe d'A--1' for key 'PRIMARY'

URL localhost/admin_rights_list.php?

Erreur fichier C:\Users\RNC\Documents\PHPRunnerProjects\Registre National du Cancer v2.0\output\connections\Connection.php

Erreur ligne 642

Requête SQL insert into registrehaiugrights (GroupID, TableName, AccessMask) values (-1, 'NOR-03 Décès suivant type de Tumeur par groupe d\'Age Homme', 'ASPI')
I cant find the error.
plz help.


My French is pretty rusty but it sure looks like you're trying to add a record whose primary key has already been assigned.. Is this not an auto increment field on your application?