Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: mssql_connect() - Urgent


Message #1 by "vidya" <vidya_kgg@y...> on Fri, 14 Dec 2001 16:13:47
hu vidya !

what is the server you are using ? your own pc ? any webhost ?
if webhost they can provide u details...

have u tried using "localhost" instead of that IP number ?

lemme know

thankx
--- vidya <vidya_kgg@y...> wrote:
> Hai
> 
>   I need a help. I need to connect to MSSQL using PHP.
> 
>   While i am connect the following error message is displaying
> 
>   can any one help me in this.
> 
>  
>  Fatal error: Call to undefined function: mssql_connect()
> 
>  Code i have written to connect MSSQL.
> 
> <html>
> <body>
> 
> <?php
> 
> $HOST = "192.168.0.5"; 
> $USER = "sa"; 
> $PSW = ""; 
> $DB = "Jvccons"; 
> if (mssql_connect($HOST, $USER, $PSW)) 
> { 
> mssql_select_db($DB); 
> echo mssql_result( mssql_query("SELECT * from Countries"), 0,
> 0); 
> } 
> if (!mssql_close()) 
> echo "No lo pudo cerrar"; 
> 
> ?>
> <body>
> </html>
> 
> 
> 
$subst('Email.Unsub').


__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

  Return to Index