bonsoir a tous après vos remarques j'ai décide de tout reprendre et maintenant je commence à maîtriser mais un petit soucis. j'ai conçu une page pour affcicher les infos de ma base mais je réçois une page avec une ligne vide. ma base contient une seule ligne. pourtant j'ai fai très simple. merci voici mon code
====
<?php
$host="localhost";
$username="root";
$password="";
$db_name="test";
$tbl_name="members";
mysql_pconnect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");
$sql="SELECT * FROM $tbl_name" or die(mysql_error());
$result=mysql_query($sql) or die(mysql_error());
while($rows=mysql_fetch_array($result)){
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Document sans titre</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style></head>
<body>
<table width="100%" border="1">
<tr>
<th scope="col"><? echo $rows['id']; ?></th>
<th scope="col"><? echo $rows['username']; ?></th>
<th scope="col"><? echo $rows['password']; ?></th>
</tr>
</table>
<?php
}
//mysql_close();
?>
</body>
</html>
===============
les colones de ma base id, username et password. merci j'utilise dreamweaver, wamp. Merci à tous