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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:16:03+00:00 2026-06-15T08:16:03+00:00

Okay What im looking to do return all the data a user has already

  • 0

Okay What im looking to do return all the data a user has already submitted on one page. So basicly they are already loged in so I should know there email address and I just want to pull all the mysql data and display all the data under that email address

So basicly mysql has email as first colum and then and bunch of junk and I want to display all the junk if the email colume equals the same email that they are loged in as

here is my code im on the right track but not quite there

 <?php
    session_start();
    include 'config.php';
    $_SESSION['Email']=$Email;

    mysql_select_db("DATABASEJUNK") or die ("Couldn't find database.");

    $query = mysql_query("SELECT * FROM DATABASELIST WHERE Email='$Email'");

    $numrows = mysql_num_rows($query);

    while ($row = mysql_fetch_assoc($query))
      echo $row['Url'];

 ?>
  • 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-15T08:16:04+00:00Added an answer on June 15, 2026 at 8:16 am

    i think what you need is something like that

    while ($row = mysql_fetch_assoc($query)){
      foreach($row as $value){
         echo $value;
      }
    }
    

    if course you need to put this at the correct part of your script. or save the output of $value to an array

    $allUsers = new Array();
    while ($row = mysql_fetch_assoc($query)){
      $user = new Array();
      foreach($row as $key => $value){
         $user[$key] = $value;
      }
      $allUsers[] = $user;
    }
    

    this gives you an array with all users … and each user has its own data as key! if you want just 1 user forget about the $allUser arrays and keep just the rest (if mysql_num_rows() == 1)

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

Sidebar

Related Questions

Okay, I've been looking all over the web to find a solution but I
I'm looking into situations in database-oriented web applications when one should rely on client
Okay, we all know what the valid left-hand-side expressions are. Kind of.* But, looking
Okay I'm looking for some input, I'm pretty sure this is not currently supported
I'm looking for a variant of the STL (it's okay if it doesn't have
Okay this question is very simple: I have a facebook page, and a website.
Okay, so I have my post.php page. If you are not logged in, you'll
Okay - I have a dilemma. So far my script converts page titles into
Okay, I'm trying to be clear on this one... I have some insliding boxes,
Okay, so here is what I'm trying to do. The user inputs a number.

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.