export table from oracle to my sql-my pr

wxdqz

New Member
Hay can someone look at my progrem and tell me what is wrong
im trying to export data from oracle to mysql.
thank u.

<body>
<?php
$file=array();
$ft=fopen("dalit.txt","r");
$i=0;
$link=mysql_connect("a","b","b")or die("did not connect");
mysql_select_db("c") or die("did not select database");

while (!feof($ft))
{
$file = fgets($ft,4960);
$query = "
INSERT INTO forums
(FORUM_RAZ,FORUM_NAME,LAST_UPDATE,HEADER_RAZ,DESCRIPTION,FORUM_TIZER,FORUM_TYPE
,IMG_SORCE,FORUM_GIF,STATUS_IN_OP)
values($file)";

print "$query\n";
$query_result= mysql_query($query)or die("check your query,didnotpars");
}

//$query_result= mysql_query($query)or die("check your query,did not pars");
mysql_close($link);

?>
</body>
 
Back
Top