Bonjour,
Je veux le code pour ajouter dans la base de donnée via odbc (PHP)
Comment faire ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 if($_POST){ $cnx=odbc_connect("DB_Inv","sa","c2011"); $sqlquery="select * from T_USER where login='".$_POST["txtlogin"]."' and password='".$_POST["txtpassword"]."'"; $process=odbc_exec($cnx, $sqlquery); while(odbc_fetch_row($process)){ $identifiant = odbc_result($process,"PROFIL"); echo "$identifiant<br>"; } odbc_close($cnx); }
Partager