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 3396868
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:27:33+00:00 2026-05-18T04:27:33+00:00

I want to create an application using php and mysql. Assume i am making

  • 0

I want to create an application using php and mysql.

Assume i am making api call and getting a list of urls.
I want to store those urls and each url should have one uniqe id( ie. number) so that i can pass that id to some page and I can get url from my db.

Assume i made a api call got five urls for keyword “xyz”
and i got following urls and respective titles

google.com/abc1.html title1
google.com/abc2.html title2
google.com/abc3.html title3
google.com/abc4.html title4

so i want to generate a unique id of each url
like

id1 google.com/abc1.html title1
id2 google.com/abc2.html title2
id3 google.com/abc3.html title3
id4 google.com/abc4.html title4

constraints is url should be unique

database can hold around 12Lacs urls.

can you please guide me how to implement that?
also give some optimization guide lines

Thanks

  • 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-18T04:27:33+00:00Added an answer on May 18, 2026 at 4:27 am

    12Lacs = 1.2 million, right?

    For that you can use a regular unsigned integer with auto increment;

    create table urls (
        id int unsigned not null auto_increment,
        url varchar(255) not null unique,
        title varchar(255) not null,
        primary key(id)
    );
    

    An unsigned integer can hold a value up to 4 294 967 295.

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

Sidebar

Related Questions

I am making a PHP web Application in which i am using MySQL as
I want to create a contact importer application.How to Import facebook contact using php
I want to create a new business application using the Django framework. Any suggestions
I want to create a Java application bundle for Mac without using Mac. According
How to create a windows registry watcher application using .Net, I want this application
We have an PHP/MySQL application where the users can create their own databases, which
I want to create a desktop application using Java, but I'm new to desktop
I've created many websites using PHP,XHTML, CSS and MySQL, and everytime I want to
Hi I want to create a simple jquery carousel for my php web application.
I have developed an application in PHP + JavaScript. I'm using MySQL as database

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.