Foros del Web » Programando para Internet » PHP »

Fatal error: Call to undefined function formatdate()

Estas en el tema de Fatal error: Call to undefined function formatdate() en el foro de PHP en Foros del Web. como estan. una consulta, ya que soy novato en .php y necesito habilitar un modulo de noticias. cuando quiero verlas, me marca este errror: Fatal ...
  #1 (permalink)  
Antiguo 10/07/2009, 17:12
 
Fecha de Ingreso: abril-2009
Mensajes: 43
Antigüedad: 15 años
Puntos: 1
Fatal error: Call to undefined function formatdate()

como estan.
una consulta, ya que soy novato en .php y necesito habilitar un modulo de noticias.

cuando quiero verlas, me marca este errror:

Fatal error: Call to undefined function formatdate() in /home/geonova/public_html/infraeco.cl/index_view.php on line 28

esta es la linea 28:

<font size="-1"><b><? echo $row->headling; ?></b> <i><? echo formatDate($row->timestamp); ?></i></font>
  #2 (permalink)  
Antiguo 10/07/2009, 17:13
 
Fecha de Ingreso: abril-2009
Mensajes: 43
Antigüedad: 15 años
Puntos: 1
Respuesta: Fatal error: Call to undefined function formatdate()

y este es el codigo .php


Código PHP:
<html>
<head>
<title>View News</title>
<meta http-equiv="Content-Type" content="text/html; charset="iso"-8859-1">
</head> 
<body>
<?
$link 
= @mysql_connect(localhostgeonova_victorp, ------);
if(!
$link){
   echo(
'Error connecting to the database: ' mysql_error());
   exit();
}
$db = @mysql_selectdb('geonova_mydatabase');
if(!
$db){
   echo(
'Error selecting database: ' mysql_error());
   exit();
}
$query "SELECT id, headline, timestamp FROM news ORDER BY timestamp DESC";
$result = @mysql_query($query);
if(!
$result){
   echo(
'Error selecting news: ' mysql_error());
   exit();
}
if (
mysql_num_rows($result) > 0){
    while(
$row mysql_fetch_object($result))
    {
    
?>
   <font size="-1"><b><? echo $row->headling?></b> <i><? echo formatDate($row->timestamp); ?></i></font>
    <?
    
}
}else{
   
?>
   <font size="-2">No news in the database</font>
<? }
   
mysql_close($link); ?>
</body>
</html>
  #3 (permalink)  
Antiguo 11/07/2009, 07:35
Avatar de minkweb  
Fecha de Ingreso: septiembre-2005
Mensajes: 443
Antigüedad: 18 años, 7 meses
Puntos: 14
Respuesta: Fatal error: Call to undefined function formatdate()

Pues no veo por ningun lado esa funcion, si te dice eso es por que no la estas definiendo o no esta presente
__________________
Juegos
Juegos iphone
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 21:54.