problem witd freetds

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



HI guys I have installed freetds and compiles php4 withmssql support. But when I ty 
to make a query from a web page it doest work , freetds is working fine cbecause I 
have tested it with tsql. 
My page looks like this: 

<?php 
putenv("SYBASE=/usr/local/freetds"); 
putenv("TDSVER=70"); 
$numero= mssql_connect("130.102.1.88" "sa" , " " ); 
echo ("ConnectID: $numero<br>\n"); 
$numero2= mssql_select_db ( northwind ,northwind) 

$result=mssql_query("select * from customers",$numero ); 
while ($row=mssql_fetch_array($result)) { 
$counter++; 
$c1=$row["colonna1"]; 
$c2=$row["colonna2"]; 
echo ("$counter c1: $c1 c2: $c2<br>\n"); 
} 

$result=mssql_query("INSERT into customers 
values('kooooo','ooooook')",$numero); 

mssql_close($numero); 

?> 

and I get this error 
Parse error: parse error in /usr/local/www/data.default/test.php on line 4. 

Any hints would be appreciated


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux