![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
11/05/2010, 07:34
|
| | Fecha de Ingreso: septiembre-2002
Mensajes: 153
Antigüedad: 22 años, 5 meses Puntos: 1 | |
Respuesta: Coger un trozo de texto Yo uso este código:
<?php
//CONECTANDO CON LA BASE DE DATOS
require_once("../incluye/config_invitado.php");
require_once("../incluye/funciones.php");
//CONECTANDO A MYSQL
$cnx = conectar();
//CONSULTA
$sql = "SELECT textobercle FROM bercle ORDER BY bercleid ASC";
$res= mysql_query($sql) or die (mysql_error());
if( mysql_num_rows($res) >0){
//IMPRESION DE LOS DATOS
while (list($textobercle) = mysql_fetch_array($res)) {
echo "$textobercle\n ...<BR>
<a href='#' onclick=javascript:nvent('textobercle.php?bercleid =$bercleid')><img src='../imagenes/pagina/masinfo.png' hspace='5' border='0' align='right'></a>";
}
}else{
echo "NO HAY RESULTADOS PARA MOSTRAR";
}
mysql_close($cnx);
?>
Entonces, y mirando tu código, no sé donde debería de colocarlo.
Gracias por todo |