mssql_connect no error given

Discussion in 'HTML / PHP / JavaScript / CSS' started by polyvectorn, May 22, 2005.

  1. I am having an issue connecting to mssql. I am not sure what is going on because it is not throwing an error. It is like it is just freezing. I use this code below (I took the html and other non-related things):
    print(' testing </b>');
    if ($link = @mssql_connect('mssql06.discountasp.net','*****','****'))
    {
    print('Yes');
    }
    else
    {
    print('Error');
    }
    print('done');

    I get this as a result:
    testing

    When I view page source I get:
    <html>

    testing

    It seems like it hangs up after the if statement. I am sure the username and pass are correct.
     
  2. Bruce

    Bruce DiscountASP.NET Staff

Share This Page