Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6252133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:44:33+00:00 2026-05-24T13:44:33+00:00

I have had this problem for a while, Let say we have a movies

  • 0

I have had this problem for a while,

Let say we have a movies website

And we have a movie named Test-movies123! in the database,

now what I would do is make a URL watch/test-movie123-{$id}/ and then query DB with the ID,

Now the issue with this is that the ID shouldn’t be there, how can I go around this ?
if I get the test-movie123 from url and search it, I wont find it because it has no ! unless I use LIKE but thats not very trusty…

Anyone could suggest anything ? Would be much appreciated

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T13:44:35+00:00Added an answer on May 24, 2026 at 1:44 pm

    Well, you could create a rule for taking the movie title and turning it into a slug. So, you’d know that you always lowercased the title, removed anything other than letters, numbers and dashes, and converted whitespace into a single dash.

    Then store that in another column in your database, and be sure you are forcing uniqueness. Take the URL and search that column from that.

    From that point you just have to deal with what happens if you have a second video uploaded that produces the exact same slug. There are a number of options for this … append a random number slug, increment a number and append it, etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have had this problem w/ two seperate WYSWYG editors in my rails application
Ok I have this problem that I've never had before, it's really bugging me.
(I have a problem that I illustrated in this question but had no correct
The responses I've got to this question have solved the problem I had in
I have had a few problems getting this right, so I wanted to ask
I would love to get some tips from other people that have had this
I am having trouble with the following SQL statement. I have had this issue
I have had to do this several times, usually when trying to find in
I'm very much a vb person, but have had to use this id number
I have had no luck with this task so far so grateful for any

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.