HI Both , Thanks alot.. It's work.. My stupidity that thought the function is working in this way. But now i got another problem. which i dont know what's went wrong. this is my code. [code]include 'sqlconnect.php'; $data = file("conv1.csv"); $result = count($data); for ($i=0;$i<=$result-1;$i++){ while (list($k,$v)=each($data)) { $data[$k] = explode(',', $v); echo $insert="insert into queenie.test (dataSource,dataSourceRef,multiplierUrn,prefix,firstName,middleName,lastName,address1,address2,address3 ,town,county,postcode,country,email,emailDPflag,sponsorFlag,paymentRefNo,fundraisingCode,recordType, transQuantity,transCurrency,transAmount,transDate,giftAidFlag,giftAidAmount) values ("; for ($i=0; $i<= count($data[$k])-1; $i++) { echo $d="'".trim($data[$k][$i])."',"; } echo "'');"; $sqlquery=odbc_prepare($conn,$insert); $process=odbc_execute($sqlquery) or die; } }[/code] and the output is this :- [quote] insert into queenie.test (dataSource,dataSourceRef,multiplierUrn,prefix,firstName,middleName,lastName,address1,address2,address3,town,county,postcode,country,email,emailDPflag,sponsorFlag,paymentRefNo,fundraisingCode,recordType,transQuantity,transCurrency,transAmount,transDate,giftAidFlag,giftAidAmount) values ('WORLDPAY','182005289','8005220','Ms','Queenie','Low','Low','London','0','0','London','0','NW6 4NA','GB','queenie.low@gmail.com','1','0','182005289','87','1109','1','GBP','1','04/07/2006 09:11:28','1',''); [color=red][font=Verdana]Warning: odbc_execute() [function.odbc-execute]: SQL error: [Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near '('., SQL state 37000 in SQLExecute in C:\wamp\www\CR_www\sql-format.php on line 18[/font][/color] [/quote] Please help me, Thanks alot guys