billledouble

Inscris le 05/08/2009 à 15:46
  • Signature
    bill
  • Nombre de sujets
    2
  • Nombre de messages
    7
  • Nombre de commentaires
    Aucun
  • Nombre de news
    Aucune
  • Niveau en PHP
    Débutant

Ses derniers messages sur les forums

billledouble
le 18/08/2009 à 21:40
Champ select multiple - problème insertion valeur dans BDD MySql
Dans ma réponse précédente, j’ai mentionné : "J'ai expurgé tous mes essais précédents, car ils étaient non concluants".
Je galère depuis des jours sur ce sujet sans avancer, car désolé de le dire mais je reçois des bouts de code, que je ne peux interpréter, alors que j'ai bien mentionné que je suis un novice, en apprentissage.

Je te remercie pour tes commentaires, mais nous perdons notre temps, je vais payer un développeur pour me développer ce petit bout de code.

Ciao
bill
billledouble
le 17/08/2009 à 08:58
Champ select multiple - problème insertion valeur dans BDD MySql
Bonjour,

J'ai reformulé mon sujet pour le rendre compréhensible. Comme indiqué précédemment, je rencontre des difficultés à mettre en oeuvre la fonction « Explode », je m'explique :

Mon premier fichier/code affiche 4 checkbox
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<form action="checkbox-traitement.php" id="form1" name="form1" method="post">
<p>
<label>
<input type="checkbox" name="cb[]" value="1" id="cb_0" />Matin</label>
<br />
<label>
<input type="checkbox" name="cb[]" value="2" id="cb_1" />Midi</label>
<br />
<label>
<input type="checkbox" name="cbB[]" value="3" id="cb_2" />Soir</label>
<br />
<label>
<input type="checkbox" name="cb[]" value="4" id="cb_3" />Nuit</label>
<br />
</p>
<input type="submit" name="Enregistrer" id="Enregistrer" value="Enregistrer" />
<input type="hidden" name="MM_insert" value="form1" />
</form>
</body>
</html>


Mon second fichier/code enregistre les valeurs « cochées » dans le champ « cb » de ma base de données en utilisant la fonction « implode » :
<?php
//connexion à MySQL
mysql_connect("localhost", "xxxxx", "xxxxx");

//sélection de la base de données
mysql_select_db("basejoomla");
?>
<?php
//récupération des valeurs des champs

$cb = implode(";", $_POST['cb']);

//création & exécution de la requête SQL

$sql = "INSERT INTO checkbox (id_cb, cb) VALUES ('', '$cb')";

mysql_query($sql) or die(mysql_error());
?>


Je récupère bien les valeurs (cases cochées) séparées par un « ; » dans mon champ « cb », de ma base de données « checkbox ».

Mon troisième fichier/code devrait me permettre d’afficher pour l’ID correspondante les champs input cochés ou non, de les modifier et de les enregistrer à nouveau. J’ai expurgé tous mes essais précédents, car ils étaient non concluants. Merci d’avance à celle ou celui qui voudra bien me donner la solution, car je bloque littéralement.

<?php
//connexion à MySQL
mysql_connect("localhost", "xxxxx", "xxxxx");

//sélection de la base de données
mysql_select_db("basejoomla");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<form action="x.php" id="form1" name="form1" method="post">
<p>
<input type="checkbox" name="cb[]" value="1">Matin
<br />
<input type="checkbox" name="cb[]" value="2">Midi
<br />
<input type="checkbox" name="cb[]" value="3">Soir
<br />
<input type="checkbox" name="cb[]" value="4">Nuit
<br />
</p>
<input type="submit" name="Modifier" id="Modifier" value="Modifier" />
<input type="hidden" name="MM_insert" value="form1" />
<input name="id_cb" type="hidden" id="id_cb" value="<?php echo $row_r_checkbox['id_cb']; ?>" />
</form>
</body>
</html>
bill
billledouble
le 12/08/2009 à 15:03
MYSQL : Erreur de syntaxe près de ' à la ligne 1
>Bonjour Moogli

Merci pour ton intérêt:

tu trouveras ci après le message d'erreur :

"Erreur de syntaxe près de 'div) VALUES ('', 'test', 'test', 'test', 'test', 'test', 'test',' à la ligne 1"

ci après ma table :

CREATE TABLE `gestion_if` (
`id_gestion` int(10) NOT NULL auto_increment COMMENT 'clé primaire',
`famprogc` longtext COMMENT '1.1 Famille de programme cadre',
`perprogc` longtext COMMENT '1.2 Période de programmation',
`nomprogc` longtext COMMENT '1.3 Nom du programme cadre',
`dotaprogc` longtext COMMENT '1.4 Dotation du programme cadre',
`natprogc` longtext COMMENT '1.5 Nature du programme cadre',
`bailprogc` longtext COMMENT '1.6 Bailleur du programme cadre',
`docsprogc` longtext COMMENT '1.7 Documents du programme cadre',
`conteuprogc` longtext COMMENT '1.8 Points de contact européen du programme cadre',
`contnatprogc` longtext COMMENT '1.9 Points de contact nationaux ou régionaux du programme cadre',
`objprogc` longtext COMMENT '1.10 Objectifs du programme cadre',
`nomprog` longtext COMMENT '2.1 Nom du programme',
`dotaprog` longtext COMMENT '2.2 Dotation du programme',
`natprog` longtext COMMENT '2.3 Nature du programme',
`docsprog` longtext COMMENT '2.4 Documents du programme',
`conteuprog` longtext COMMENT '2.5 Points de contact européen du programme',
`contnatprog` longtext COMMENT '2.6 Points de contact nationaux ou régionaux du programme',
`objprog` longtext COMMENT '2.7 Objectifs du programme',
`nosprog` longtext COMMENT '3.1.1 No du sous programme',
`nomsprog` longtext COMMENT '3.1.2 Nom du sous programme',
`objsprog` longtext COMMENT '3.1.3 Objectifs du sous programme',
`dotasprog` longtext COMMENT '3.1.4 Dotation du sous programme',
`noobjmsp` longtext COMMENT '3.2.1 No de l''objectif (pour les PAC), mesure ou sous priorité (pour les PO)',
`nomobjmsp` longtext COMMENT '3.2.2 Nom de l''objectif (pour les PAC), mesure ou sous priorité (pour les PO)',
`objobjmsp` longtext COMMENT '3.2.3 Objectifs de l''objectif (pour les PAC), mesure ou sous priorité (pour les PO)',
`dotaobjmsp` longtext COMMENT '3.2.4 Dotation de l''objectif (pour les PAC), mesure ou sous priorité (pour les PO)',
`nodomsm` longtext COMMENT '3.3.1 No du domaine (pour les PAC), sous Mesure (pour les PO)',
`nomdomsm` longtext COMMENT '3.3.2 Nom du domaine (pour les PAC), sous Mesure (pour les PO)',
`objdomsm` longtext COMMENT '3.3.3 Objectifs du domaine (pour les PAC), sous Mesure (pour les PO)',
`dotadomsm` longtext COMMENT '3.3.4 Dotation du domaine (pour les PAC), sous Mesure (pour les PO)',
`ratprog` longtext COMMENT '4.1 Rattachement au programme',
`aireint` longtext COMMENT '4.2 Aire d’intervention',
`paysel` longtext COMMENT '4.3 Pays éligibles',
`regel` longtext COMMENT '4.4 Régions éligibles',
`depel` longtext COMMENT '4.5 Départements éligibles',
`parteu` longtext COMMENT '4.6 Obligation partenariat européen',
`critel` longtext COMMENT '4.7 Critères d''éligibilité géographique et de partenariat',
`nomact` longtext COMMENT '4.8 Nom de l''action',
`themact` longtext COMMENT '4.9 Thématiques de l''action',
`sthemact` longtext COMMENT '4.10 Sous-thématiques de l''action',
`objcontact` longtext COMMENT '4.11 Objectifs et contenu de l''action',
`typeactel` longtext COMMENT '4.12 Types d''actions éligibles',
`motcle` longtext COMMENT '4.13 Mots-clés',
`depelact` longtext COMMENT '4.14 Dépenses éligibles de l''action',
`depinelact` longtext COMMENT '4.15 Dépenses inéligibles de l''action',
`critqualact` longtext COMMENT '4.16 Critères qualitatifs de sélection des actions',
`dureproj` longtext COMMENT '4.17 Durée du projet',
`benpot` longtext COMMENT '4.18 Bénéficiaires potentiels',
`montsubv` longtext COMMENT '4.19 Montant maximum et minimum de la subvention',
`tauxsubv` longtext COMMENT '4.20 Taux maximum et minimum de la subvention',
`appelproj` longtext COMMENT '4.21 Appel à projet',
`carappproj` longtext COMMENT '4.22 Caractéristiques de l''appel à projet en cours',
`datelimcand` longtext COMMENT '4.23 Date limite de dépôt des candidatures',
`lieudepdos` longtext COMMENT '4.24 Lieu de dépôt du dossier et service instructeur',
`docs` longtext COMMENT '4.25 Documents',
`div` longtext COMMENT '4.26 Divers',
PRIMARY KEY (`id_gestion`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=50 ;


Ci après le code de la page dans laquelle je saisi les données que je récupère ensuite dans le code dont tu disposes d'ores et déjà :

NdM : j'ai mis le code sur le Wall la c'était beaucoup trop long ;)
Moogli
bill
billledouble
le 12/08/2009 à 11:47
MYSQL : Erreur de syntaxe près de ' à la ligne 1
Bonjour,

Cela fait deux heures que je cherche à corriger cette erreur qui apparaît lorsque je tente d'enregistrer les données saisies dans la BDD correspondante, mais ne trouve pas :

Erreur de syntaxe près de 'div) VALUES ('test', 'test', 'test', 'test', 'test', 'test', 'te' à la ligne 1

Merci d'avance pour vos suggestions avisées,

Bill

Le code

<?php
//connection au serveur & sélection de la base de données

require_once('Connections/gestion_if.php');

//récupération des valeurs des champs

$famprogc = $_POST['famprogc'];
$perprogc = $_POST['perprogc'];
$nomprogc = $_POST['nomprogc'];
$dotaprogc = $_POST['dotaprogc'];
$natprogc = $_POST['natprogc'];
$bailprogc = $_POST['bailprogc'];
$docsprogc = $_POST['docsprogc'];
$conteuprogc = $_POST['conteuprogc'];
$contnatprogc = $_POST['contnatprogc'];
$objprogc = $_POST['objprogc'];
$nomprog = $_POST['nomprog'];
$dotaprog = $_POST['dotaprog'];
$natprog = $_POST['natprog'];
$docsprog = $_POST['docsprog'];
$conteuprog = $_POST['conteuprog'];
$contnatprog = $_POST['contnatprog'];
$objprog = $_POST['objprog'];
$nosprog = $_POST['nosprog'];
$nomsprog = $_POST['nomsprog'];
$objsprog = $_POST['objsprog'];
$dotasprog = $_POST['dotasprog'];
$noobjmsp = $_POST['noobjmsp'];
$nomobjmsp = $_POST['nomobjmsp'];
$objobjmsp = $_POST['objobjmsp'];
$dotaobjmsp = $_POST['dotaobjmsp'];
$nodomsm = $_POST['nodomsm'];
$nomdomsm = $_POST['nomdomsm'];
$objdomsm = $_POST['objdomsm'];
$dotadomsm = $_POST['dotadomsm'];
$ratprog = $_POST['ratprog'];
$aireint = $_POST['aireint'];
$paysel = $_POST['paysel'];
$regel = $_POST['regel'];
$depel = $_POST['depel'];
$parteu = $_POST['parteu'];
$critel = $_POST['critel'];
$nomact = $_POST['nomact'];
$themact = $_POST['themact'];
$sthemact = $_POST['sthemact'];
$objcontact = $_POST['objcontact'];
$typeactel = $_POST['typeactel'];
$motcle = $_POST['motcle'];
$depelact = $_POST['depelact'];
$depinelact = $_POST['depinelact'];
$critqualact = $_POST['critqualact'];
$dureproj = $_POST['dureproj'];
$benpot = $_POST['benpot'];
$montsubv = $_POST['montsubv'];
$tauxsubv = $_POST['tauxsubv'];
$appelproj = $_POST['appelproj'];
$carappproj = $_POST['carappproj'];
$datelimcand = $_POST['datelimcand'];
$lieudepdos = $_POST['lieudepdos'];
$docs = $_POST['docs'];
$div = $_POST['div'];

//création & exécution de la requête SQL

$sql = "INSERT INTO gestion_if (famprogc, perprogc, nomprogc, dotaprogc, natprogc, bailprogc, docsprogc, conteuprogc, contnatprogc, objprogc, nomprog, dotaprog, natprog, docsprog, conteuprog, contnatprog, objprog, nosprog, nomsprog, objsprog, dotasprog, noobjmsp, nomobjmsp, objobjmsp, dotaobjmsp, nodomsm, nomdomsm, objdomsm, dotadomsm, ratprog, aireint, paysel, regel, depel, parteu, critel, nomact, themact, sthemact, objcontact, typeactel, motcle, depelact, depinelact, critqualact, dureproj, benpot, montsubv, tauxsubv, appelproj, carappproj, datelimcand, lieudepdos, docs, div) VALUES ('$famprogc', '$perprogc', '$nomprogc', '$dotaprogc', '$natprogc', '$bailprogc', '$docsprogc', '$conteuprogc', '$contnatprogc', '$objprogc', '$nomprog', '$dotaprog', '$natprog', '$docsprog', '$conteuprog', '$contnatprog', '$objprog', '$nosprog', '$nomsprog', '$objsprog', '$dotasprog', '$noobjmsp', '$nomobjmsp', '$objobjmsp', '$dotaobjmsp', '$nodomsm', '$nomdomsm', '$objdomsm', '$dotadomsm', '$ratprog', '$aireint', '$paysel', '$regel', '$depel', '$parteu', '$critel', '$nomact', '$themact', '$sthemact', '$objcontact', '$typeactel', '$motcle', '$depelact', '$depinelact', '$critqualact', '$dureproj', '$benpot', '$montsubv', '$tauxsubv', '$appelproj', '$carappproj', '$datelimcand', '$lieudepdos', '$docs', '$div')";

$result = mysql_query($sql) or die(mysql_error());
echo "Nouvelle ligne de financement insérée dans la base de données !";
?>
bill
billledouble
le 06/08/2009 à 10:15
Champ select multiple - problème insertion valeur dans BDD MySql
C'est sympa à toi, désolé pour le BB-Code! Effectivement, j'ai oublié d'insérer multiple="multiple", ce qui est fait à présent (voir code ci-dessous), néanmoins je n'arrive toujours pas à récupérer mes valeurs en envoyant le formulaire, alors que j'arrive à récupérer toutes les autres valeurs provenant de champ de type texte. Merci d'avance si tu peux m'aiguiller et merci encore pour ton 1er feedback, ciao

<label>
<select name="aireint" size="4" id="aireint" multiple="multiple">
<?php
do {
?>
<option value="<?php echo $row_lstaireint['id_aireint']?>"><?php echo $row_lstaireint['aireint']?></option>
<?php
} while ($row_lstaireint = mysql_fetch_assoc($lstaireint));
$rows = mysql_num_rows($lstaireint);
if($rows > 0) {
mysql_data_seek($lstaireint, 0);
$row_lstaireint = mysql_fetch_assoc($lstaireint);
}
?>
</select>
</label>
bill
billledouble
le 05/08/2009 à 15:56
Champ select multiple - problème insertion valeur dans BDD MySql
Bonjour,

J'ai consulté pendant plus de 4 heures différents forums mais n'ai pas trouvé de réponse à mon problème que je vous expose ci-après :

J'ai créé un formulaire me permettant d'insérer des éléments dans une base de données MYSQL.

J'ai un problème avec un des champs: un champ select multiple. Alors qu'en testant le formulaire je choisis avec CTRL deux valeurs et que j'envoie mon formulaire, aucune valeur n'est inscrite dans le champ correspondant 'aireint' de la base de données.

Merci d'avance de vos suggestions.

Bill

CODE DE MON FORMULAIRE REALISE AVEC DREAMWEAVER - VOIR CHAMP SELECT

<?php header('Content-Type: text/html; charset=utf-8'); ?>
<?php include_once("fckeditor/fckeditor.php") ; ?>
<?php require_once('Connections/gestion_if.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}

if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}

if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}

$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}

if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form_1")) {
$insertSQL = sprintf("INSERT INTO saisie_if (id_saisie, nomsousif, docs2, natsousif, pointeusif, pointnatsif, aireint) VALUES (%s, %s, %s, %s, %s, %s, %s)",
GetSQLValueString($_POST['id_saisie'], "int"),
GetSQLValueString($_POST['nomsousif'], "text"),
GetSQLValueString($_POST['docs2'], "text"),
GetSQLValueString($_POST['natsousif'], "text"),
GetSQLValueString($_POST['pointeusif'], "text"),
GetSQLValueString($_POST['pointnatsif'], "text"),
GetSQLValueString($_POST['aireint'], "text");

mysql_select_db($database_gestion_if, $gestion_if);
$Result1 = mysql_query($insertSQL, $gestion_if) or die(mysql_error());

$insertGoTo = "message_1.php";
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
}
header(sprintf("Location: %s", $insertGoTo));
}

mysql_select_db($database_gestion_if, $gestion_if);
$query_lstaireint = "SELECT * FROM lstaireint";
$lstaireint = mysql_query($query_lstaireint, $gestion_if) or die(mysql_error());
$row_lstaireint = mysql_fetch_assoc($lstaireint);
$totalRows_lstaireint = mysql_num_rows($lstaireint);

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Saisie IF</title>
<style type="text/css">
<!--
.Style3 {font-family: Geneva, Arial, Helvetica, sans-serif; font-size: x-small; }
.Style4 {font-size: x-small}
.Style5 {font-family: Geneva, Arial, Helvetica, sans-serif}
-->
</style>
</head>

<body>
<label>
</label>
<form action="<?php echo $editFormAction; ?>" method="POST" name="form_1" target="_self" id="form_1">


<table width="100%" border="0">
<tr>
<th width="28%" align="left" valign="top" scope="row"><span class="Style5">Niveau 1</span></th>
<td width="4%">&nbsp;</td>
<td width="68%">&nbsp;</td>
</tr>
<tr>
<th width="28%" align="left" valign="top" scope="row">&nbsp;</th>
<td width="4%">&nbsp;</td>
<td width="68%">&nbsp;</td>
</tr>
<tr valign="baseline">
<th align="left" valign="top" class="Style3" scope="row">2.1 Nom du sous-programme</th>
<td align="left" valign="top" nowrap="nowrap"><img src="images/Info.png" alt="" width="25" height="25" /></td>
<td align="left" valign="top"><?php
$oFCKeditor = new FCKeditor('nomsousif') ;
$oFCKeditor->BasePath = './FCKeditor/';

//set the EnterMode to "br" (overwrites the default configuration from fckconfig.js)
$oFCKeditor->Config['EnterMode'] = 'br';

$oFCKeditor->Value = '' ;
$oFCKeditor->Create() ;
?></td>
</tr>
<tr valign="baseline">
<th align="left" valign="top" class="Style3" scope="row">2.2 Documents</th>
<td align="left" valign="top" nowrap="nowrap"><img src="images/Info.png" alt="" width="25" height="25" /></td>
<td align="left" valign="top"><?php
$oFCKeditor = new FCKeditor('docs2') ;
$oFCKeditor->BasePath = './FCKeditor/';

//set the EnterMode to "br" (overwrites the default configuration from fckconfig.js)
$oFCKeditor->Config['EnterMode'] = 'br';

$oFCKeditor->Value = '' ;
$oFCKeditor->Create() ;
?></td>
</tr>
<tr valign="baseline">
<th align="left" valign="top" class="Style3" scope="row">2.3 Nature du sous-programme</th>
<td align="left" valign="top" nowrap="nowrap"><img src="images/Info.png" alt="" width="25" height="25" /></td>
<td align="left" valign="top"><?php
$oFCKeditor = new FCKeditor('natsousif') ;
$oFCKeditor->BasePath = './FCKeditor/';

//set the EnterMode to "br" (overwrites the default configuration from fckconfig.js)
$oFCKeditor->Config['EnterMode'] = 'br';

$oFCKeditor->Value = '' ;
$oFCKeditor->Create() ;
?></td>
</tr>
<tr valign="baseline">
<th align="left" valign="top" class="Style3" scope="row">2.4 Point d’information européen</th>
<td align="left" valign="top" nowrap="nowrap"><img src="images/Info.png" alt="" width="25" height="25" /></td>
<td align="left" valign="top"><?php
$oFCKeditor = new FCKeditor('pointeusif') ;
$oFCKeditor->BasePath = './FCKeditor/';

//set the EnterMode to "br" (overwrites the default configuration from fckconfig.js)
$oFCKeditor->Config['EnterMode'] = 'br';

$oFCKeditor->Value = '' ;
$oFCKeditor->Create() ;
?></td>
</tr>
<tr valign="baseline">
<th align="left" valign="top" class="Style3" scope="row">2.5 Point d’information européen</th>
<td align="left" valign="top" nowrap="nowrap"><img src="images/Info.png" alt="" width="25" height="25" /></td>
<td align="left" valign="top"><?php
$oFCKeditor = new FCKeditor('pointnatsif') ;
$oFCKeditor->BasePath = './FCKeditor/';

//set the EnterMode to "br" (overwrites the default configuration from fckconfig.js)
$oFCKeditor->Config['EnterMode'] = 'br';

$oFCKeditor->Value = '' ;
$oFCKeditor->Create() ;
?></td>
</tr>
<tr valign="baseline">
<th align="left" valign="top" class="Style3" scope="row">2.6 Aire d’intervention</th>
<td align="left" valign="top" nowrap="nowrap"><img src="images/Info.png" alt="" width="25" height="25" /></td>
<td align="left" valign="top">

// CHAMP SELECTION EN QUESTION

<label>
<select name="aireint" size="4" id="aireint">
<?php
do {
?>
<option value="<?php echo $row_lstaireint['id_aireint']?>"><?php echo $row_lstaireint['aireint']?></option>
<?php
} while ($row_lstaireint = mysql_fetch_assoc($lstaireint));
$rows = mysql_num_rows($lstaireint);
if($rows > 0) {
mysql_data_seek($lstaireint, 0);
$row_lstaireint = mysql_fetch_assoc($lstaireint);
}
?>
</select>
</label></td>
</tr>
<tr valign="baseline">
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<th align="left" valign="top" scope="row"></th>
<td>&nbsp;</td>
<td><input type="submit" name="Enregistrer" id="Enregistrer" value="Enregistrer" /></td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="form_1" />
</form>
</body>
</html>
<?php
mysql_free_result($lstaireint);

?>
bill
LoadingChargement en cours