HEX
Server: Apache
System: Linux iad1-shared-e1-19 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User: austral3d (14892361)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: /home/austral3d/fourdplan.com/php/bucle.php
<?PHP
mysql_connect("localhost","root","")or die("Problemas al conectar con el servidor");
mysql_select_db("prueba1")or die("Problemas al conectar con la base de datos");




$id =59;
$parte = 88;
$viga="VIGA";
$resu=("$viga$parte");

while($parte <= 135){
	//$consulta = "INSERT INTO parte VALUES('".$id."','".$resu."','workpackage_id(2)','".date("2016-04-13")."','".date("2016-04-13")."','".date("2016-04-13")."','".date("2016-04-13")."','".date("2016-04-13")."','".date("2016-04-13")."','".date("2016-04-13")."')";
	
	echo $id . " " . $resu=("$viga$parte")."</br>";
	//mysql_query('INSERT INTO Parte (id, nombre, workpackage_id, planificacion, preparacion_material, armado_y_soldado, granullado, pintura, liberacion, despacho) VALUES('.$id .' , '.$resu.', 2 ,2016-04-13, 2016-04-13 , 2016-04-13 ,  2016-04-13 , 2016-04-13 , 2016-04-13 ,  2016-04-13')OR DIE(mysql_error ());
	$parte++;
	$id++;
	
}





?>