[PHP-DB] problem witd freetds

2003-06-17 Thread Alvaro Rosales R.
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: $numerobr\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: $c2br\n); 
} 

$result=mssql_query(INSERT into customers 
values('ko','ook'),$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



RE: [PHP-DB] problem witd freetds

2003-06-17 Thread Jennifer Goodie
 Parse error: parse error in /usr/local/www/data.default/test.php ]

The parser is complaining about this line
 $numero= mssql_connect(130.102.1.88 sa ,   ); 

Try putting a comma between your arguments
$numero= mssql_connect(130.102.1.88, sa,   ); 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php