si este:
Código PHP:
<?
}
$sql_video = mysql_query("SELECT * FROM videos WHERE nombre='$_desline_video'");
$sql_video = mysql_fetch_array($sql_video);
$sql_video = $sql_video['id'];
//Sentencia sql (sin limit)
$_pagi_sql = "SELECT * FROM videos_comentarios WHERE id_video='$sql_video' ORDER BY id DESC";
//cantidad de resultados por página (opcional, por defecto 20)
$_pagi_cuantos = 5;
//Incluimos el script de paginación. Éste ya ejecuta la consulta automáticamente
include("inc/paginatorcomentarios.inc.php");
//Leemos y escribimos los registros de la página actual
while($data = mysql_fetch_array($_pagi_result)){
?>
<table width="42%" border="0" cellpadding="3">
<tr>
<td height="26" bgcolor="#FF6600">nombre:
<?=$data['nombre'];?></td>
</tr>
<tr>
<td><?=$data['comentarios'];?></td>
</tr>
</table>
<?
}
?>
<?
//Incluimos la barra de navegación
echo"<p>".$_pagi_navegacion."</p>";
?>
<?
@session_start();
if(isset($_POST[enviar])){
if( $_SESSION['security_code'] == $_POST['security_code'] && !empty($_SESSION['security_code'] ) ) {
mysql_query("INSERT INTO videos_comentarios (id_video,nombre,comentarios) VALUES ('$sql_video','$_POST[nombre]','$_POST[comentarios]')");
echo '<font face="Verdana"><strong>It has added your comentarios successful, you need to see your comentarios refresh the video.</strong></font>';
unset($_SESSION['security_code']);
} else {
// Insert your code for showing an error message here
echo '<font face="Verdana"><strong>Sorry, entered as the Code Security incorrect.</strong></font>';
}
} else {
}
?>
el buscador es en javascript o ajax