Citation :
$link1 = mysql_pconnect("localhost", "root","" );
$link2 = mysql_pconnect("sql.xxxxxxxx.xx", "logininternet","passinternet" );
mysql_select_db($db1 , $link1);
mysql_select_db($db2, $link2); $result1= mysql_query($query1, $link1); $result2= mysql_query($query2, $link2);
$result1 = mysql_query("SELECT * FROM moteur'" );
$num_rows = mysql_num_rows($result1);
if($result1) {
while($row = mysql_fetch_array($result1)) {
$categorie = $row["categorie"];
$match = $row["match"];
echo $row["url"];
print("<br>" );
$result2 = mysql_query("INSERT INTO `transfert` (`categorie`) VALUES ('$categorie')" );
}
}
mysql_close($link1);
mysql_close($link2);
|