Good afternoon. How can I make a query in MS Sql and insert the values into a My Sql table through PHP?
Looking at this data, can you do this insertion?
#--> conexao mysql
require_once("mysql.php");
#--> conexao mssql
require_once("mssql.php");
#--> consulta sql server
$sqlserver= "select * from sql_server_table";
$sqlserverResult = odbc_exec($conMsSql, $sqlserver);
#--> insere no MySql
mysql_query("insert into mysql_table (col1, col2, col3) values ($sqlserverResult)";