Como puedo utilizarlo cuando haces la consulta?
Código PHP:
<?php
include("conex.php");
$link=Conectarse();
$resultado=mysql_query("select * from contenidos where contenido like '%q%'",$link);
if ($row = mysql_fetch_array($resultado)){
mysql_field_seek($resultado,0);
$id = $row['id'];
}
?>
<?=$row['texto']?>