Fix: Erreur sur cration sur base deja existante
This commit is contained in:
parent
373340307c
commit
e4cf07e6d3
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -239,6 +239,7 @@ if ($_POST["action"] == "set")
|
|||||||
{
|
{
|
||||||
if ($db->errno() == 'DB_ERROR_KEY_NAME_ALREADY_EXISTS' ||
|
if ($db->errno() == 'DB_ERROR_KEY_NAME_ALREADY_EXISTS' ||
|
||||||
$db->errno() == 'DB_ERROR_CANNOT_CREATE' ||
|
$db->errno() == 'DB_ERROR_CANNOT_CREATE' ||
|
||||||
|
$db->errno() == 'DB_ERROR_PRIMARY_KEY_ALREADY_EXISTS' ||
|
||||||
eregi('duplicate key name',$db->error()))
|
eregi('duplicate key name',$db->error()))
|
||||||
{
|
{
|
||||||
//print "<td>Déjà existante</td></tr>";
|
//print "<td>Déjà existante</td></tr>";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user