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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T09:16:43+00:00 2026-05-19T09:16:43+00:00

I needed to know how one would go about setting up a default avatar

  • 0

I needed to know how one would go about setting up a default avatar image for a user upon registration and allow the user to upload one of their own later. Like in facebook.

My user table fields(shortened):

user_id, first_name, last_name, username, tel_no etc.

My pictures table:

Pic_id, pic_large_url, pic_thumb_url, user_id, avatar, timestamp

I need to know what kind of php code I need to be able to accomplish this. Do I put my default_avatar.png image in a folder and reference it in the pictures table and where do I go from there?
I wanted to use an avatar (bit) field 1 if it is a user’s avatar, 0 if it is not.

I also have an updates table that allows users to upload text and images in their updates or just text only as follows:

avatar pic – update text – update image(if image)

avatar pic – update text – default image(if update image not uploaded)

default avatar pic – update text – default image(if update image not uploaded)

I guessing if i find out how to put a default avatar, ill find out how to do the above.

I will appreciate any help out there.

  • 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-19T09:16:43+00:00Added an answer on May 19, 2026 at 9:16 am

    In your avatar database field, either setup the default to point towards your default avatar, or you can check if its null.

    If it is null, render the default avatar image 🙂

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

Sidebar

Related Questions

I would like to know how can I tell what percent does one image's
I would like to know how do you determine the hardware needed for a
I don't know if I have all the information needed to phrase this question
Is there a way to know and output the stack size needed by a
I needed to convert a Java 1.5se app to C# 2.0. Does anyone know
I needed to re-install my computer but I didn't think about exporting the data
I needed to make a simple browser user agent parser in Perl. I have
I needed some simple string encryption, so I wrote the following code (with a
We needed to monitor all processes Registry calls/File Sytem calls/Process creations in the system
I needed to find all the files that contained a specific string pattern. The

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.