Re: MSSQL again
| From: | toby z | Date: | Sat, 10 May 2003 10:54:38 +0000 |
| Subject: | Re: MSSQL again | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-19849@lists.php.net to get a copy of this message | ||
heres how i connect :
<?php
mysql_connect ('localhost', 'MY-user-name', 'my-user-password')
or die ('da bd cudn b connected 2 .... ');
mysql_select_db ('my-database-name')
or die ('cudn find da god dammed db :P ');
?>
hope this helps
good luck
toby
--- Peter Misun <misun@microstep-mis.sk> wrote: >
> on page:
> http://www.php.net/manual/en/function.mssql-connect.php
> is written:
>
> int mssql_connect ( [string servername [, string username [,
> string password]]])
> ...
> The servername argument has to be a valid servername that is
> defined in the 'interfaces' file.
>
> what is 'interfaces' file ? ( I'm using windows2000)
> how to set it?
>
> 5o
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________________________
Yahoo! Plus
For a better Internet experience
http://www.yahoo.co.uk/btoffer