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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:42:08+00:00 2026-05-20T05:42:08+00:00

$sql_2 = ‘SELECT id, firstname, lastname, birthday, location, occupation, telephone, email, picture FROM pinkmoon_pending

  • 0
$sql_2 = 'SELECT id, firstname, lastname, birthday, location, occupation, telephone, email, picture FROM pinkmoon_pending ORDER BY `id` DESC LIMIT 1';
$result_2 = mysql_query($sql_2);

while ($row = mysql_fetch_row($result_2)
{
   $firstname = row['firstname'];
   $lastname  = row['lastname'];
   $birthday  = row['birthday'];
   $location  = row['location'];
   $occupation= row['occupation'];
   $telephone = row['telephone'];
   $email     = row['email'];
   $picture   = row['picture'];
}
mysql_free_result($result_2);

This is what I’ve tried to show me rows after SELECT-ing them with PHP.

This doesn’t seem to work – Can anyone help me out please? 🙂

  • 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-20T05:42:08+00:00Added an answer on May 20, 2026 at 5:42 am

    Try changing mysql_fetch_row to mysql_fetch_assoc. The former only indexes the results by number, not by field name.

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

Sidebar

Related Questions

Here's what I've got so far- $awards_sql_1 = mysql_query('SELECT * FROM categories WHERE section_id
Here's what I got- $awards_sql_1 = mysql_query('SELECT * FROM categories WHERE section_id = 1')
SQL 1: select * from t1 join t2 on t1.f1 = t2.f2 SQL 2:
SQL 1 SELECT ( COUNT(contract.contract_notesid) + (SELECT COUNT(contract_notesid) FROM quotation WHERE quotation.contract_notesid = contract.contract_notesid)
Basically I have 2 SQL queries from 2 different databases and I am trying
I would like to build the where clase of a sql statement dynamically from
I want to add the value of the latest insert from TABLE1 to a
I want to run some code before an object is removed from a has_many
How to exclude the files from the loop -> if the file name in
I use the following crontab record in order to daily backup my DB: 0

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.