Résolu | [PHP] Erreur T_STRING ... :-(
cheslot
Messages postés
131
Statut
Membre
-
Bilow Messages postés 1193 Date d'inscription Statut Membre Dernière intervention -
Bilow Messages postés 1193 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
J'ai un problème avec mon code PHP :
'' Parse error: syntax error, unexpected T_STRING in /home/u612267238/public_html/desktop/search.php on line 17 ''
Voici mon code :
Que devrais-je faire?
J'ai un problème avec mon code PHP :
'' Parse error: syntax error, unexpected T_STRING in /home/u612267238/public_html/desktop/search.php on line 17 ''
Voici mon code :
<?php
include("toolbar.php");
include("../conf.inc.php");
$limit = 10;
if($debut == ""){$debut=0;}
$debut = $pge*$limit;
$requete = "select * from users where prenom like '%$search%' limit $debut, $limit";
$total = mysql_query($requete);
$nb_tot = mysql_num_rows($total);
$nbpages = ceil($nb_tot/$limit);
$resultat = mysql_query($requete. "limit, $debut, $limit);
while ($rows=mysql_fetch_array($resultat)) {
?>
<table style="text-align: left; width: 800px; height: 150px; border="1" cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td style="width: 150px; height: 150px;"></td>
<td style="width: 650px; height: 150px;">
<div style="text-align: center;"><big><big><? echo $rows["prenom"]; ?> <? echo $rows["nom"]; ?></big></big><br />
</div>
<br />
<br />
<br />
<div style="float: left;"><img
style="width: 32px; height: 32px;" alt=""
src="file:///C:/Users/William/Pictures/user.bmp" /> <span
style="font-family: Arial; font-weight: bold;">Genre
: <?php if ($rows["genre"] == "m") {echo "Homme";} if ($rows["genre"] == "f") {echo "Femme";} ?></span></div>
<div style="float: right;"><img
style="width: 32px; height: 32px;" alt=""
src="file:///C:/Users/William/Pictures/birthdate.bmp" /><span
style="font-family: Arial; font-weight: bold; float: right;">Date
de naissance : <? echo $rows["month"]; ?>/<? echo $rows["day"]; ?>/<? echo $rows["year"]; ?></span></div>
</td>
</tr>
</tbody>
</table>
<?php }
if($nbpages>>3 and $pge>2){
echo "<a href=\"?pge=0&search=$search\"><b>Début</b></a>";
}
if ($pge>0){
$precedent=$pge-1;
echo "<a href=\"?pge=$precedent&search=$search\">
<b><fontcolor='#993366'>Précédente</font></b></a>";
}
$i=0;$j=1;
if($nb_tot>$limit){
while($i<($nbpages))
{
if ($i>$pge-3 and $i<$pge+3)
{
if($i!=$pge){echo "<a href=\"?pge=$i&search=$search\">$j</a>";}
else {echo "<b>$j</b> ";}
}
$i++;$j++;
}
}
if($pge<$nbpages-1){
$suivant=$pge+1;
echo "<a href=\"?pge=$suivant&search=$search"><b></b></a>";
}
if($nbpages>3 and $pge<$nbpages-3){
$fin=$nbpages-1;
echo "<a href=\"?pge=$fin&search=$search\"><b>fin</b> ($nbpages)</a>";
}
?>
<? include "../blocker.php"; ?>
Que devrais-je faire?
A voir également:
- Résolu | [PHP] Erreur T_STRING ... :-(
- Expert php pinterest - Télécharger - Langages
- Erreur t32 ✓ - Forum Livebox
- Une erreur s'est produite instagram ✓ - Forum Instagram
- Erreur 3000 france tv - Forum Lecteurs et supports vidéo
- Erreur 0x80070643 - Accueil - Windows