Ver Mensaje Individual
  #7 (permalink)  
Antiguo 25/06/2009, 09:24
Avatar de gjx2
gjx2
 
Fecha de Ingreso: agosto-2008
Ubicación: R.D
Mensajes: 1.153
Antigüedad: 16 años, 5 meses
Puntos: 139
Respuesta: Mensaje de error

Código PHP:
<?php
if(!isset($result)){
$result " ";
}  

if(!
$_POST['action']){
//We are redirecting people to our shoutbox page if they try to enter in our shoutbox.php
header ("Location: index.html"); 
}
else{
$link connect(HOSTUSER);
switch(
$_POST['action']){
case 
"update":
$res getContent($link20);
while(
$row mysql_fetch_array($res)){
$result "<li><strong>".$row['user']."</strong><img src=\"css/images/bullet.gif\" alt=\"-\" />".$row['message']." <span>".$row['date']."</span></li>";
}
echo 
$result;
break;
case 
"insert":
echo 
insertMessage($_POST['nick'], $_POST['message']);
break;
}
mysql_close($link);
}


?>