SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Wizard
    Join Date
    Apr 2004
    Location
    dublin
    Posts
    2,036
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    MSSQL vs MySQL - Syntax

    Hi all,

    What is the proper way of using the below query for MSSQL Server?

    $result = mysql_query($query) or die(mysql_error());

    Thanks.

    Kevin.

    Can someone please move this thread to PHP forum.
    Thanks.
    Last edited by obrienkev; Jan 27, 2006 at 11:18. Reason: Move to PHP Please

  2. #2
    reads the ********* Crier silver trophybronze trophy longneck's Avatar
    Join Date
    Feb 2004
    Location
    Tampa, FL (US)
    Posts
    9,854
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    you'll probably get a better answer in the PHP forum.

  3. #3
    SitePoint Zealot
    Join Date
    Apr 2005
    Posts
    139
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think:
    $result = mssql_query($query) or die(mssql_error());

    Nicolas

  4. #4
    SitePoint Wizard
    Join Date
    Apr 2004
    Location
    dublin
    Posts
    2,036
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    mssql_error() isn't listed on PHP.net as an SQL Server function.

  5. #5
    SitePoint Zealot
    Join Date
    Apr 2005
    Posts
    139
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Right, i didn't see it listed in php.net, but i did see it in some of the User Contributed Notes of php.net.
    mssql_query() is listed though.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •