Ver Mensaje Individual
  #4 (permalink)  
Antiguo 09/04/2008, 15:24
Avatar de pato12
pato12
 
Fecha de Ingreso: septiembre-2007
Ubicación: Salta
Mensajes: 1.620
Antigüedad: 16 años, 7 meses
Puntos: 101
Re: PHP MySQL iespana

Prueba haci:
Código PHP:
codigo del procesadordm.php: (que no recibe post)
<html>
<body BGCOLOR="#00FF00">

<?php
//process form
if($_POST){
echo 
"Post si existe";
}
else
{
echo 
"Post no existe";
}

$link mysql_connect("imysql04""i5420553""lxxxxxxxx") or die(mysql_error());
mysql_select_db("i5420553"$link)or die(mysql_error());

if (!(
strlen($fechain)==0))
{
$sql "INSERT INTO monitorespc (fechain,lote,marca,anio,serie,destino,comentario, rtecnico) VALUES ('$fechain', '$lote', '$marca', '$anio','$serie', '$destino', '$comentario','$rtecnico')";
$result mysql_query($sql)or die(mysql_error());
echo 
"Se han ingresado los datos con exito... <br>";
echo 
"<form method='POST' action='vermon.php'>";
echo 
"<input type='submit' value='Aceptar'>";
echo 
"</form>";
}
else
{
echo 
"NO se han ingrasado datos al sistema !";
echo 
"<form method='POST' action='vermon.php'>";
echo 
"<input type='submit' value='Aceptar'>";
echo 
"</form>";
}
?>
</body>
</html>



codigo del vermon.php (que si funciona)


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="estilo.css" rel="stylesheet" type="text/css">
</head>
<body background="a.jpg">
<br>
<p><strong>BASE DE DATOS de VIDEO & SONIDO ELECTRONICO SRL</strong></p>
<br>

<font size="1">
<?php
$link 
mysql_connect('imysql04''i5420553''lxxxxxxxx')or die(mysql_error());
mysql_select_db("i5420553"$link)or die(mysql_error());
$result mysql_query("SELECT * FROM monitorespc ORDER BY id")or die(mysql_error());
echo 
"<table border = '1'>";
$contador=0;
echo 
"<tr bgcolor='#33CCFF'><td>conteo</td><td>ID Registro</td><td>Fecha ingreso</td><td>Lote proveniente</td><td>Marca/Modelo</td><td>Año de fabrica</td><td>N° de serie</td><td>Destino de bien</td><td>Comentario</td><td>Resultado/Tecnico</td></tr>";
while (
$row mysql_fetch_row($result)){
$contador++;
echo 
"<tr bgcolor='#FFCC66'><td>".$contador."</td><td><form method='post' action='modificar.php'><input type='submit' name='id' value=".$row[0]."></form> </td><td>".$row[1]."</td><td>".$row[2]."</td><td>".$row[3]."</td><td>".$row[4]."</td><td>".$row[5]."</td><td>".$row[6]."</td><td>".$row[7]."</td><td>".$row[8]."</td></tr>";
}
echo 
"</table>";
?>
</font>
</body>
</html>
No me parese que imysql04 sea el host, puede ser localhost.
Suerte
Salu2
__________________
Half Music - www.halfmusic.com