🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.comp.lang.php
1 messages
1 total messages Started by t.perrain Thu, 22 Feb 2001 18:13
pbl parse error ???
#58
Author: t.perrain
Date: Thu, 22 Feb 2001 18:13
213 lines
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>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads