www.webdeveloper.com
Results 1 to 2 of 2

Thread: Display database GUID/Unique Identifier in PHP

  1. #1
    Join Date
    Nov 2007
    Posts
    13

    Display database GUID/Unique Identifier in PHP

    I am trying to print/echo/display a unique ID for a row in a MSSQL database which is auto-assigned by the database but all that is returned/displayed is an assortment of symbols instead of an alphanumberic string with hyphens at various intervals, such as this: 12h45j5fds-9ei58lg-k0d9bmc9 (just an example!).

    Any ideas why I'm getting strange symbols instead of the alphanumeric string?

    Regards,

    P.

  2. #2
    Join Date
    Aug 2006
    Location
    Michigan
    Posts
    1,046
    Code/Query would help, maybe even some of the database table structure.

    I know MySQL has a UUID()

    Code:
    SELECT UUID();
    But it sounds like your trying to return the primary key that's usually auto-generated?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles