Jump to content
php.lv forumi

nodzest pedejo punktu!


strong-storm

Recommended Posts

$result = mysql_query("SELECT * FROM `book` ORDER BY `date` DESC");

$cik = mysql_num_rows($result);

$p = 0;

while ($row = mysql_fetch_array($result)) {

$p++;

echo $id = $row["id"];

if ($cik != $p) echo ".";

}

Link to comment
Share on other sites

×
×
  • Create New...