SELECT * FROM users WHERE username='Name' LIKE %password%
<?php
$db = mysql_connect("localhost","root","");
mysql_select_db("dbname",$db);
?>
<?php
include 'config.php';
?>
<table>
<thead>
<tr>
<th>Значение1</th>
<th>Значение2</th>
</tr>
</thead>
<tbody>
<?php
$q = mysql_query("SELECT * FROM tablename");
while($res = mysql_fetch_array($q))
{
echo "<tr>
<td>$res[name1]</td>
<td>$res[name2]</td>
</tr>";
}
?>
</tbody>
</table>