Ver Mensaje Individual
  #3 (permalink)  
Antiguo 23/10/2007, 15:38
matedo84
 
Fecha de Ingreso: octubre-2007
Mensajes: 5
Antigüedad: 17 años, 5 meses
Puntos: 0
Re: Problemas con PHP Version 5.2.1

asi lo tengo, pero no funciona y la conexion esta bien

<?php

$id = $_GET['id'];

mysql_select_db($database_localhost, $localhost);
$query_noticias = "SELECT * FROM noticias WHERE id = '$id'";
$noticias = mysql_query($query_noticias, $localhost) or die(mysql_error());
$row_noticias = mysql_fetch_assoc($noticias);
$totalRows_noticias = mysql_num_rows($noticias);
?>

saludos