Erreur de syntaxe php

moustach123 -  
dodo78 Messages postés 181 Date d'inscription   Statut Membre Dernière intervention   -
Bonjour,
je n'arrive pas à trouver l'erreur de ce morceau de code pourriez vous m'aider:

le code :
<?php $user = $_post['login'];
$passwd = $_post['pass'];
$conn = oci_connect($user,$passwd,"(DESCRIPTION =(ADDRESS =(PROTOCOL = TCP)(HOST = " titanium " )(PORT = "1521"))(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = " XE " )))");
$stmt = oci_parse($conn, "select * from cab where id = 461 ");
oci_execute($stmt, oci_default);
$column_value = oci_result($stmt) ;
echo $column_value ;
?>

l'erreur:
Parse error: parse error, unexpected T_STRING in C:\Program Files\EasyPHP 2.0b1\www\facture.php on line 24
merci de me répondre le plus vite possible.

Aux programmeurs PHP.

Liban

4 réponses

dodo78 Messages postés 181 Date d'inscription   Statut Membre Dernière intervention   16
 
bonjour,

a quoi correspond a ta ligne 24 ?

est ce que tu attend bien d'une récupération de donnée de type $_post ?
0
moustach123
 
bonjou le code est :

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type"
content="text/html; charset=ISO-8859-1">
<title>facture_téléphonique</title>
</head>
<body>
<h1 align="center"> Bienvenue</h1>
<table style="text-align: left; width: 633px; height: 28px;"
border="1" cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td style="height: 38%;"><?php $user = $_post['login'];
$passwd = $_post['pass'];
$conn = oci_connect($user , $passwd , "(DESCRIPTION =(ADDRESS =(PROTOCOL = TCP)(HOST = " titanium " )(PORT = "1521"))(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = " XE " )))");
if ($conn){
echo "cé ok\n"; }
else{
echo "veuillez saisir à nouveau\n" ;
}
?></td>
</tr>
</tbody>// ligne 24
</table>
</body>
</html>

erreur:Parse error: parse error, unexpected T_STRING in C:\Program Files\EasyPHP 2.0b1\www\facture.php on line 24
0
moustach123
 
oui le $_post récupére le login et le mot de passe d'une page index.html.

mais la ligne 24 est :

</td>
</tr>
</tbody> // ligne 24
</table>
<br>
</body>
</html>


merci
0
nini
 
ligne 24 de facture.php
0
moustach123
 
bonjour

voici le code au complet:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type"
content="text/html; charset=ISO-8859-1">
<title>facture_téléphonique</title>
</head>
<body>
<h1 align="center"> Bienvenue</h1>
<table style="text-align: left; width: 633px; height: 28px;"
border="1" cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td style="height: 38%;"><?php $user = $_post['login'];
$passwd = $_post['pass'];
$conn = oci_connect($user , $passwd , "(DESCRIPTION =(ADDRESS =(PROTOCOL = TCP)(HOST = " titanium " )(PORT = "1521"))(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = " XE " )))");
if ($conn){
echo "cé ok\n"; }
else{
echo "veuillez saisir à nouveau\n" ;
}
?></td>
</tr>
</tbody>// voici la ligne 24
</table>
</body>
</html>

erreur: Parse error: parse error, unexpected T_STRING in C:\Program Files\EasyPHP 2.0b1\www\facture.php on line 24
0
dodo78 Messages postés 181 Date d'inscription   Statut Membre Dernière intervention   16
 
tu a de fermeture de balise !
0