Ver Mensaje Individual
  #5 (permalink)  
Antiguo 01/09/2006, 12:27
Avatar de kennyhp
kennyhp
 
Fecha de Ingreso: julio-2006
Mensajes: 370
Antigüedad: 17 años, 9 meses
Puntos: 5
Holas, los parentesis es porque antes lo habia puesto con in if(!)y se me habian quedado al quitar el if ;) lo he quitado pero hace lo mismo.
pongo el codigo entero para que lo veais:

index.php

desde dd envio el post:

<td><form action="articulos.php?accion=ver" method="post" name="buscar" id="buscar">
<input name="palabra" type="text" id="palabra">
<input type="submit" name="Submit" value="Buscar!">
</form></td>

y articulos.php

include 'conexion.php';

$accion_realizar = $_GET['accion'];

if ($accion_realizar=ver)
{
$palabra=trim($_POST['palabra']);
$res=mysql_query("SELECT * FROM wiki WHERE titulo=$palabra");
$row = mysql_fetch_array($res);

//if($row==NULL) echo "Ningún resultado";
//else
//{
$titulo=$row['titulo'];
$articulo=$row['articulo'];

echo "titulo:<strong> $titulo</strong>";
echo "<br>Articulo: $articulo";
//}


}

?>