na tabela user tenho as colunas foto e nome q queria exibir assim
Total de Registros Encontrados: 61 - Exibindo Registros de 41 a 60
Páginas: Primeiro Anteriores 1 2 3 4 Próximas Último
===============================
foto foto foto foto
==============================
nome nome nome nome
===============================
foto foto foto foto
==============================
nome nome nome nome
===============================
estou tentando fazer o seguinte mas não esta exibindo as fotos nem o nomes
<HTML>
<HEAD>
<TITLE>Documento PHP</TITLE>
</HEAD>
<BODY>
<style type="text/css">
.container
{
width: 400px;
}
.div_imagem
{
float: left;
width: 100px;
}
</style>
<table width="800">
<tr>
<?php
mysql_connect("localhost", "root", "");
mysql_select_db("db");
$contadvd = mysql_query("SELECT * FROM tabela ") or print (mysql_error());
$resultadodvd = mysql_num_rows($contadvd);
while ($linha=mysql_fetch_array($contadvd)){
$i = $linha['foto'];
$i2 = $linha['nome'];
$cont = 1;
for($i = 1; $i <= 100; $i++)
{
if($cont == 1)
{
print("<tr>");
}
?>
<td width="100"><img width="75" height="75" src="<? print ($i); ?>" ></td>
<?
if($cont == 5)
{
print("</tr>");
$cont = 1;
} else
{
$cont++;
}
}
{
if($cont == 1)
{
print("<tr>");
}
?>
<td width="100"><img width="75" height="20" src="<? print ($i2); ?>" ></td>
<?
if($cont == 5)
{
print("</tr>");
$cont = 1;
} else
{
$cont++;
}
}
?>
</tr>
</table>
</BODY>
</HTML>
e não esta com a paginação alguem por favor me ajudem
Edição feita por: windpanda, 01/10/2006, 03:27.