Domain Empire

Connect to a mssql database using php

Spaceship
Watch
Impact
20
quite simple really

same as mysql

PHP:
 <? 
    $conn=mssql_connect("MYSQLSERVER","sa",'password'); 
        if ($conn) { 
        echo "Yeah i'm the best ;)"; 
    } 
    else { 
        echo "Woops ! ".mssql_get_last_message(); 
    } 

?>


seems a bit tempremental, on my set up i get call to undefined function so may be it wil lwork for others
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
<img src="images/smilies/wink.gif" border="0" alt="">

Can we have that image? lol
 
0
•••
lol
i didnt prog that code, cant remember wherei got it from but remember spent a while tryin to find out how to do it so posted it here
 
0
•••
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back