include("connection/conn.php");
$query = 'SELECT * FROM textos GROUP BY titulo HAVING autor="' . $autor . '" ORDER BY titulo';
$result = mysql_query($query);
$total_registros = mysql_num_rows($result);
$n=0;
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
$n=$n+1;
?>
if ($n<$total_registros) {?>
I
};
};
?>
$query = 'SELECT * FROM textos WHERE autor="' . $autor . '" ORDER BY titulo';
$result = mysql_query($query);
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
?>