Article View: alt.comp.lang.php
Article #58pbl parse error ???
From: t.perrain
Date: Thu, 22 Feb 2001 18:13
Date: Thu, 22 Feb 2001 18:13
213 lines
8365 bytes
8365 bytes
j'ai un pbl sur le fichier php3 joint
la base et la table sont correctement format�es.
resultat : parse error line 140 ???
merci de m'aider car je ne vois pas du tout...
t.perrain@iai-france.net
<script language="php"> if (!isset($envoi)):
error_reporting(0);
$dbhost="localhost";
$u="********";
$p="s22cqmau";
</script>
<html>
<head>
<body>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Freeride moto, le pro de l'equipement moto</title>
</head>
<body bgcolor="#000000" text="#FFFFFF" topmargin="0" leftmargin="0"
link="#FFFFFF"
vlink="#FFFF00" alink="#FFFFFF">
<div align="left">
<form method="POST" action="<script language="php">
$npage=strtok($REQUEST_URI,"?"); echo $npage </script>">
<table border="0" cellpadding="0" cellspacing="0" width="100 ">
<tr>
<td width="100" height="43"></td>
</tr>
<tr>
<td><p align="center"><img src=" ../images/titres/sportives.gif"><br>
<strong><font face="Arial" size="2">L'�quipement de la
Moto</font></strong></p></td>
</tr>
<tr>
<td><strong><font face="Arial"><p
align="center"><small><small><small><font
color="#000000">.</font></small></small></small></font></strong></td>
</tr>
<tr>
<td><p align="center"><font face="Arial" size="1" color="white">Quel
produit recherchez vous ?</font><br>
<font face="Arial" size="1" color="black"><select name="NUMF3" size="1"
style="font-family: arial; font-size: 11"><option
value="">Indifferent</option><option
value="pneu">Pneus</option></select></font></td>
</tr>
<tr>
<td><strong><font face="Arial"><p
align="center"><small><small><small><font
color="#000000">.</font></small></small></small></font></strong></td>
</tr>
<tr>
<td><p align="center"><font face="Arial" size="1" color="white">Origine du
produit :</font><br><font face="Arial" size="2" color="black"><select
name="NUMF4" size="1" style="font-family: arial; font-size: 11"><option
value ="">Indifferent</option><option value="non">Produits vendus en
France</option><option value="oui">Produits
import�s</option></select></font></td>
</tr>
</table>
</div>
<p align="center"><input type="submit" value="RECHERCHER" name="envoi"
style="font-family: Arial; font-size: 8pt; background-color:
rgb(240,199,32)"><br></p>
<p align="center"><font face="Arial" size="1" color="white"><a href="
../renseignement.htm">Plus d'informations, vos questions, cliquez
ici...</a></font></p>
</form>
<script language="php"> echo"</body>"</script>
<script language="php"> echo"</html>"</script>
<script language="php"> else:</script>
<script language="php"> echo"<html>"</script>
<script language="php"> error_reporting(0);
$dbhost="localhost";
$u="********";
$p="s22cqmau";
$lpp=10;
$NUMF1="oui";
$NUMF2="equipementmoto";
if (isset($pa)==0):
$pa=0;
endif;
$pg=$pa*$lpp;
$pg=intval($pg);
mysql_connect($dbhost,$u,$p);
$sql="";
$rsql="select * from freeride";
if ($NUMF1!=""):
if ($sql!=""):$sql=$sql."AND ";endif;
$sql=$sql."basique like '$NUMF1' ";
endif;
if ($NUMF2!=""):
if ($sql!=""):$sql=$sql."AND ";endif;
$sql=$sql."categorie like '$NUMF2' ";
endif;
if ($NUMF3!=""):
if ($sql!=""):$sql=$sql."AND ";endif;
$sql=$sql."produit like '$NUMF3' ";
endif;
if ($NUMF4!=""):
if ($sql!=""):$sql=$sql."AND ";endif;
$sql=$sql."import like '$NUMF4' ";
endif;
if ($sql!=""):
$sql="where ".$sql;
endif;
$rsql=$rsql.$sql;
;$rsql=$rsql."LIMIT $pg,$lpp";
$r=mysql($u,$rsql);
$n=mysql_numrows($r);
$r2=mysql($u,"select count(*)as nb from freeride ".$sql);
$n2=mysql_result($r2,0,"nb");
$nbp=($n2/$lpp)+1;
$i=0;</script>
<script language="php"> echo"<head>"</script>
<script language="php"> echo"<meta http-equiv=\"Content-Type\"
content=\"text/html; charset=iso-8859-1\">"</script>
<script language="php"> echo"<title>freeride moto</title>"</script>
<script language="php"> echo"</head>"</script>
<script language="php"> echo"<body bgcolor=\"#000000\" text=\"#FFFFFF\"
topmargin=\"0\" leftmargin=\"0\" link=\"black\" vlink=\"black\"
alink=\"black\">"</script>
<div align="left">
<table border="0" cellpadding="0" cellspacing="0" width="100 ">
<tr>
<td height="43"></td>
</tr>
<tr>
<td><p align="center"><img src=" ../images/titres/sportives.gif"><br>
<strong><font face="Arial">L'�quipement de la Moto</font></strong></td>
</tr>
<tr>
<td><p align="center"><font
face="Arial"><strong><small><small><small><font
color="#000000">.</font></small></small></small></strong></font></p></td>
</tr>
<tr>
<td><p align="center"><font face="Arial" size="2"><strong><script
language="php"> echo
mysql_result($r,$i,"produit");</script></strong></font></p></td>
</tr>
<tr>
<td><p align="center"><font face="Arial"
color="#000000"><strong><small><small><small>.</small></small></small></stro
ng></font></td>
</tr>
<tr>
<td><p align="center"><font
face="Arial"><strong></strong></font></p></td>
</tr>
</table>
</div>
<div align="center">
<table border="4" cellpadding="2" cellspacing="3">
<tr>
<td bgcolor="#F0C720"><p align="left"><font face="Arial" color="black"
size="2">R�f�rence</font></td>
<td bgcolor="#F0C720"><p align="left"><font face="Arial" color="black"
size="2">Descriptif Rapide</font></td>
<td bgcolor="#F0C720"><p align="left"><font face="Arial" color="black"
size="2">details</font></td>
</tr>
<script language="php"> while ($i<$n):</script>
<tr>
<td><p align="left"><font face="Arial" color="black" size="2"><script
language="php"> echo mysql_result($r,$i,"reference");
</script></font></p></td>
<td><p align="left"><font face="Arial" color="black" size="2"><script
language="php"> echo mysql_result($r,$i,"descrap") </script></font></p></td>
<script language="php">
$vignet=mysql_result($r,$i,"vignette");
$ref=mysql_result($r,$i,"reference");
</script>
<td><p align="left"><font color="black" size="2"><script language="php">
echo "<center><a href=\" ../php/fichesproduit.php3?fiche=$ref\"><img src=\"
../vignettes/equippilot/$vignet.gif\" border=\"0\"></a></center>"
<script></font></p></td>
</tr>
<script language="php"> $i++;
endwhile;</script>
</table>
</div>
<script language="php"> if ($nbp>0):</script>
<p align="center">Aller a la Page :</p>
<script language="php">
$i=0;
$nbp=intval($nbp);
while ($i<$nbp):
$i++;
if ($pa==($i-1)):
echo $i;
else:
echo "<a href=\""; $npage=strtok($REQUEST_URI,"?"); echo $npage ;
echo "?pa="; echo $i-1; echo "&envoi=p"; echo "&NUMF1="; echo
urlencode($NUMF1); echo "&NUMF2="; echo urlencode($NUMF2); echo "&NUMF3=";
echo urlencode($NUMF3); echo "&NUMF4="; echo urlencode($NUMF4); echo"\">[";
echo $i;echo "]</a>";
endif;
endwhile;
endif;</script>
</body>
</html>
Technical Details
Message-ID:
<973kss$7bf$2@wanadoo.fr>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!freenix!wanadoo.fr!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: 10f92b,de657c9a8be15dc7,start X-Google-Attributes: gid10f92b,public X-Google-Thread: 1156bd,de657c9a8be15dc7,start X-Google-Attributes: gid1156bd,public X-Google-Thread: f9981,de657c9a8be15dc7,start X-Google-Attributes: gidf9981,public X-Google-Thread: 104359,de657c9a8be15dc7,start X-Google-Attributes: gid104359,public X-Google-Thread: 1148a8,de657c9a8be15dc7,start X-Google-Attributes: gid1148a8,public X-Google-Thread: fc70a,de657c9a8be15dc7,start X-Google-Attributes: gidfc70a,public X-Google-Thread: 1107bb,de657c9a8be15dc7,start X-Google-Attributes: gid1107bb,public X-Google-ArrivalTime: 2001-02-22 10:14:07 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!freenix!wanadoo.fr!not-for-mail From: <t.perrain@iai-france.net> Newsgroups: alt.comp.lang.php,alt.php,alt.php.sql,cz.comp.lang.php,de.comp.lang.php,fr.comp.infosystemes.www.auteurs.php,it.comp.www.php Subject: pbl parse error ??? Date: Thu, 22 Feb 2001 19:13:25 +0100 Organization: Wanadoo, l'internet avec France Telecom Lines: 217 Message-ID: <973kss$7bf$2@wanadoo.fr> NNTP-Posting-Host: mix-poitiers-103-2-85.abo.wanadoo.fr X-Trace: wanadoo.fr 982865628 7535 193.250.106.85 (22 Feb 2001 18:13:48 GMT) X-Complaints-To: abuse@wanadoo.fr NNTP-Posting-Date: 22 Feb 2001 18:13:48 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211