first | ';
if ($cur_page > 1)
echo ' previa | ';
else
echo 'prev | ';
if ($cur_page < $pages)
echo ' siguiente | ';
else
echo 'next | ';
if ($pages > 1 && $cur_page < $pages)
echo ' ultima
'."\n";
else
echo 'last'."\n";
echo '
';
// Lets organize them shall we
$req = 'SELECT ID, name, datetime, comment, id2 FROM comments where id2='.$_GET['id'].' ORDER BY ID desc limit ' .(($cur_page-1)*$per_page) . ", $per_page ";
$result = mysql_query ($req,$db);
while($row = mysql_fetch_assoc($result)) {
mysql_real_escape_string($name = stripslashes(htmlentities($row['name'])));
mysql_real_escape_string($comment = stripslashes(htmlentities($row['comment'])));
$datetime = date("M-jS-o", $row['datetime']);
echo '
'."\n";
echo '
'."\n";
echo ' ';
// Url detection for future version
if ($url && preg_match("/(www\.)", "/(http:\.)", $url)) {
echo ''.$name.'';
}
else {
echo "$name";
}
// time to get the time working
echo ' Enviado: '.$datetime.'
'."\n";
echo '
'."\n\n";
// How about the comment?
echo '
'."\n";
echo '
'.(nl2br($comment)).'
'."\n";
echo '
'."\n\n";
echo '
'."\n\n";
}
?>
Comentarios
';
echo ' Please enter your name!';
echo '';
}
if (!empty($_GET['errorm'])) {
echo '
'."\n"; echo ' '; // Url detection for future version if ($url && preg_match("/(www\.)", "/(http:\.)", $url)) { echo ''.$name.''; } else { echo "$name"; } // time to get the time working echo ' Enviado: '.$datetime.'
'."\n"; echo ''.(nl2br($comment)).'
'."\n"; echo '