Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Format 10 digit phone number from MySQL query

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #269237
    bhardison
    Participant

    I am pulling an unformatted 10 digit phone number from a MySQL database. Is there a good way to change xxxxxxxxxx to xxx-xxx-xxxx?

    #269240
    Beverleyh
    Participant

    You couldn’t modify the format using CSS (assuming this is what you were asking given that you’ve posted in the CSS category).

    Have a look into string manipulation with either JavaScript or whatever serverside language you’re using to communicate with your database – PHP?

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.