Bonjour à vous.
Je viens ici pour vous demander conseil, je n'ai jamais fais de requête préparée avec oci8 alors il y surement une petite erreur. Merci de bien vouloir m'aider.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 
$date = $_GET['datfin'];
$badge2 = $_GET['badge'];
 
$update = "UPDATE plbmat SET datfin = TO_DATE(:dat,'DD-MM-YYYY') WHERE nobadg = :bad ";
 
$stid = oci_parse($conn,$update);
oci_bind_by_name($stid,":dat",$date);
oci_bind_by_name($stid,":bad", $badge2);
 
 
 
oci_execute($stid);
 
oci_free_statement($stid);
$close = oci_close($conn);