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

  • Home
  • SEARCH
  • 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 9118495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:10:04+00:00 2026-06-17T05:10:04+00:00

i was running into a problem while creating a simple database and i hope

  • 0

i was running into a problem while creating a simple database and i hope you can provide me with some help ;).

The problem :

I need to create a database which contains offers (for example for hotels, holidays etc) thats no problem at all. What we want to do is to make each entry customizable with a single url that can be chosen by the author itself. For example we’ve got an overview page (overview.php) where all the offers are listed. Now i want to click on the first offer “Mallorca” for example which inherits the id 50. The dynamic URL would be something like “detail.php?id=50 for example, but i want to rewrite them from a individual field in my database that the author specified while creating the entry which looks as following :

Offer Name
Offer Date
Offer Price
URL (which can be anything, also blabla.htm)

The URL field should then be used to create a custom individual url for each offer – for example detail.php?id=50 would become mydomain.com/offers/mallorca.htm

I know that mod_rewrite can be consulted but i haven’t figured out how to combine it to use fields from my database.

Any advice?

  • 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-06-17T05:10:05+00:00Added an answer on June 17, 2026 at 5:10 am

    Just ideas for You to think of or bounce off:

    1. if You left a free hand to the author to enter the URL of their own, You would have to implement a controll for the URL uniqueness, while not letting the user to save the data until the URL part for the concrete offer is really unique
    2. easier way is to only have the URLs like mydomain.com/offers/50/ – it still looks better while the implementation tooks less time
    3. at the end, You would have to write a rewrite rule to Your .htaccess, while the result depends on what way You would go (from point 1 or point 2):
      • 1: RewriteRule ^/offers/(.*)$ detail.php?url=$1 [L, QSA]
      • 2: RewriteRule ^/offers/(.*)/$ detail.php?id=$1 [L, QSA]

    If You’d go with the first option (the one You desired), You would also have to look up the offer by the URL part provided, in the second option You look up by the ID.

    Hope this helps.

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

Sidebar

Related Questions

Problem Definiton:- I need to insert some values into Database as soon as all
I'm running into a problem when trying to create an ArrayList in Java, but
Okay, so here's a problem I'm running into. I have some classes in my
So I'm running into what is probably a pretty common problem when creating dynamic
I've been running into a problem while trying to delete uploaded images. The error
I'm running into a problem I haven't encountered before and am baffled... for some
I seem to be running into an interesting problem while saving a Sprite to
I'm running into a problem while trying to compile my code: D:\workspace>javac DbConnect.class javac:
I'm running into a problem while running both a Flash socket and using Ajax
I've just started doing some PowerShell scripting, and I'm running into a problem testing

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.