data_seek($row); $datarow = $res->fetch_array(); return $datarow[$field]; } # lire le contenu de la table pejko.news $user="pejko"; $password="pejk0sp0rtcan1n"; $database="pejko"; $mysqli = new mysqli("localhost", $user, $password, $database); if ($mysqli->connect_errno) { echo "Echec lors de la connexion a  MySQL : (" . $mysqli->connect_errno . ") " . $mysqli->connect_error; } $request = "select * from news order by ordre asc" ; $result=mysqli_query($mysqli,$request); $nor=mysqli_num_rows($result); $i =0; $hmax=250;$wmax=250; # largeur et hauteur max des images jpeg while ($i<$nor) { $ligne1[$i] = mysqlx_result($result,$i,"ligne1"); $ligne2[$i] = mysqlx_result($result,$i,"ligne2"); $ligne3[$i] = mysqlx_result($result,$i,"ligne3"); $ligne4[$i] = mysqlx_result($result,$i,"ligne4"); $id_news[$i] = mysqlx_result($result,$i,"id_news"); $ordre[$i] = mysqlx_result($result,$i,"ordre"); $i++; } ?> News - Pejko Sport Canin


Accueil
Sport Canin
Présentation
Elevage
Education
Costumes
News
Matériel       
Remorques
Obstacles
Accessoires
Courriel       
($wmax/$hmax)) { $wimg= $wmax; $himg= $height*($wmax/$width); } else { $himg= $hmax; $wimg= $width*($hmax/$height); } ?>
  News