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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:10:09+00:00 2026-05-13T12:10:09+00:00

I have ten fields in my table in database..And two columns out of them

  • 0

I have ten fields in my table in database..And two columns out of them are of

  1. User_Id (auto_increment I need it
    for uploading pics.)
  2. Username (I want it as primary key
    so that no other user can get the
    same username)

I am not able to do both these things together. If I make user_id auto_increment then I am not able to assign primary key to Username. How I can overcome from this problem ?

2.

How to allow only doc (msword) files for uploading….

i tired ($_FILES[“file”][“type”]==”application/msword”)
But this i snot working…I tried same code for pdf files that is working
working code ($_FILES[“file”][“type”]==”application/pdf”)

3.
First i upload files from an application form into a folder and stores its name and size into database.Then i deleted files from that folder and also deleted entry in database manuly…means now in my employee table there is no entry in database ..

But when i upload a file which has already been uploaded into database in past(to particular folder but i have deleted that file from folder and database) now if i apply file_exist condition it say that file already exists ..Why so..Is there is any tempory folder which is invisible from us..which contain this entry..???????

  • 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-13T12:10:10+00:00Added an answer on May 13, 2026 at 12:10 pm

    1: Let user_id be autoincremented and set username to UNIQUE

    2: Are you sure this (“application/msword”) is the right and only MIME-Type for word-documents?

    3: Are you sure the file is getting deleted? You should double-check that. Sounds like file permission issues to me.

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

Sidebar

Related Questions

i have table with ten field . i need search query in LINQ that
H I need to customize two datepickers. First shold have: minDate: last ten days
I have ten master tables and one Transaction table. In my transaction table (it
Suppose I have ten cron jobs running in parallel which fetch entries from database
I have two database tables, subscription and transaction , where one subscription can have
i have a table with the fields : [VARIABLE_CODE],[VARIABLE_NAME],[CAS_NO],[USER_VAR_GROUP_NAME] and what i want to
I have a query $sqlStr4 that selects these fields from a MySQL database: loginid
We have ten user-names for the software and due to licensing issues, we need
I have ten checkboxes and Enum. I want to bind this checkboxes to Enum.
I have ten or more(i don't know) tables that have a column named foo

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.