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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:11:29+00:00 2026-06-14T11:11:29+00:00

if ($resultdetails == FALSE) { $querynewid = select * from customer_det order by ID

  • 0
if ($resultdetails == FALSE) {
    $querynewid = "select * from customer_det order by ID desc limit 1";
    $resultnewid = mysql_query($querynewid);
    while ($row=mysql_fetch_row($resultnewid)) {
        $uid = $row['id'];
        echo $uid;
    }
}

Is this a valid nested statement to make? It won’t echo $uid for some reason?

  • 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-14T11:11:30+00:00Added an answer on June 14, 2026 at 11:11 am

    You should use mysql_fetch_assoc instead of mysql_fetch_row. The last one returns a numerical indexed-array, so id is not a key in that result set. mysql_fetch_assoc returns an associative array, so the field name is also the name of the key. By the look of your code, that is what you want.

    See the difference here and here.

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

Sidebar

Related Questions

I would like my app to start with a ProgressDialog while it connects to
I'd like to return the below xml: <ResultDetails> <Node1>hello</Node1> <Sites> <Site><SiteId>1</SiteId></Site> <Site><SiteId>2</SiteId></Site> </Sites> </ResultDetails>
How can I return the 1 or 0 as true and false for my
I'm using the following code to populate a UITableViewController - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath
I've got an MVC web application with associated controller tests that run under a
I want to submit search term ( e.g what does foo means) into form
A little humour : Nerds always have problem getting phone number :(. I am
I'm gonna try to explain at my best. I use Play Framework 2, and
Look at this complex type, which is basically a DTO that wraps some entities.
I am able to easily get book info: http://isbndb.com/api/books.xml?access_key=THEKEY&results=details&index1=isbn&value1=9781849152990 And I can easily look

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.