I have this code:
$result = mysql_query("SELECT * FROM textos");
$row = mysql_fetch_assoc($result);
while($row = mysql_fetch_assoc($result)){
echo "<b>ID:</b> ".$row['id'].", <b>Titulo:</b>".$row['titulo'].", <b>Texto:</b>".$row['texto'].", <b>Presentes:</b>".$row['presentes']."<br/>";
}
But when I run it, only from the second id on that are echoed. How can I fix this?
Fetches the first row:
Starts fetching from the second row:
Get rid of the first call to
mysql_fetch_assoc.