1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <?php
$connexion = mysql_connect("localhost","root","");
mysql_select_db('mission',$connexion);
$requete="select *from PARAM where 1;";
$mysql_result = mysql_query($requete);
$ligne = mysql_fetch_array($mysql_result);
$adr=$ligne[3];
$masterkey=$ligne[2];
$SYSDBA=$ligne[1];
$db = fbird_connect($adr,$SYSDBA,$masterkey);
$req="insert into travail VALUES('nom','prenom','email');";
if (mysql_query ($req)) {
echo '<br>insertion d\'un nouveau utilisateur réussie';
}
else {
echo mysql_error();
}
fbird_close($db);
?> |
Partager