
04/11/2010, 12:51
|
 | | | Fecha de Ingreso: enero-2010
Mensajes: 595
Antigüedad: 15 años Puntos: 14 | |
Respuesta: Pasando datos de un base a otras Conseguido:
//CONECTAMOS A LA BASES DE DATOS 1
include('conexion.php');
//Copiamos el procedimiento 1 entero
$sql="SELECT * FROM proyectougr.p101p" or die(mysql_error());
$result=mysql_query($sql) or die(mysql_error());
$row= mysql_fetch_array($result);
//CONECTAMOS A LA BASES DE DATOS 2 E INSERTAMOS LOS DATOS
include('conexion2.php');
$sql="INSERT INTO proyectougrold.p101p (i1evidencia) VALUES ('".$row['i1evidencia']."')" or die(mysql_error());
$result=mysql_query($sql) or die(mysql_error()); |