Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/11/2016, 15:35
Avatar de fmb1982
fmb1982
 
Fecha de Ingreso: junio-2007
Mensajes: 128
Antigüedad: 17 años, 9 meses
Puntos: 0
Pregunta PHP mal - funcionamiento en apache de linux

alguien sabe por que en linux no funciona mi codigo de php, ya probe un hola mundo y un phpinfo y funciona bien pero hago lo siguiente y no hace absolutamente nada, no redirige ni nada...

Código HTML:
<script type="text/javascript">
 {
 if(history.forward(1))
 location.replace(history.forward(1))
 }
</script>

<?php
error_reporting(0);
include('dba.php');
$query = mysql_query("select * from tb_usr_ where logi_='".$_POST['Login']."' and pass_='".$_POST['Password']."'");
$result= mysql_num_rows($query);
     for ($punt=0;$punt<$result;$punt++)
     {
      $resultd=mysql_fetch_array($query);
	   echo $t1=$resultd['logi_'];
	   echo $t2=$resultd['pass_'];
	   echo $t3=$resultd['priv_'];
	   echo $t4=$resultd['nom_'];
	  
     } 
if ($result!=0){
session_start();
$_SESSION['usr1']=$t1;
$_SESSION['pas1']=$t2;
$_SESSION['per1']=$t3;
$_SESSION['nom1']=$t4;
$_SESSION['autent']= "True";
$_SESSION['ultimoAcceso']= date('Y-n-j H:i:s');  
header ('Location: main.php');
}
else
{
$_SESSION['autent']= "False";
header('Location: index.php');
mysql_close($conexion);
}
?> 
__________________
Fidel Medina Bravo
TodocabeN150charsabiendoloacomodar...
http://about.me/fidelMB