[PHP-DB] newby question

2003-06-20 Thread Alvaro Rosales R.
Hi guys is there a function or a command in php to load an external 
html or a php page.
Sorryb for the stupid question

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



[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