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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:51:02+00:00 2026-05-22T19:51:02+00:00

$name = mysql_num_rows($result); $i = 0; while($i < $name){ $nameAll = mysql_result($result, $i); $i++;

  • 0
$name = mysql_num_rows($result);
$i = 0;
while($i < $name){  
    $nameAll = mysql_result($result, $i);           
    $i++;   
}
  • 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-22T19:51:03+00:00Added an answer on May 22, 2026 at 7:51 pm

    you can use code from the first example here.

    $sql = "SELECT id as userid, fullname, userstatus 
            FROM   sometable
            WHERE  userstatus = 1";
    
        $result = mysql_query($sql);
    
        // While a row of data exists, put that row in $row as an associative array
        // Note: If you're expecting just one row, no need to use a loop
        // Note: If you put extract($row); inside the following loop, you'll
        //       then create $userid, $fullname, and $userstatus
        $values = array(); 
        while ($row = mysql_fetch_assoc($result)) {
    
            $values[] = $row["fullname"];
    
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table in mysql like this Name Result T1_09_03_2010 fail T2_09_03_2010 pass
$qPhysician = mysql_query(SELECT * FROM physicians); $num = mysql_num_rows($qPhysician); $i=0; while($i < $num) {
Mysql: Table_A ------------ id name 1 Name1 2 Name2 Table_B ------------ a_id type value
In mysql database i have this column called: Name: Date Type: datetime I have
Using MySQL, I have three tables: projects : ID name 1 birthday party 2
I usually put MAMP MySQL /db/db-site-name folder under SVN. When MAMP starts, it gives
In my mysql database I have the following information in a page name field.
I have two tables in a MySql DB: items id (char) name (varchar) description
I have a table in MySQL of contact information ; first name , last
mysql_select_db($database_test2, $test2); $query_Recordset1 = Select color.name As color, item.name As Item, typ.name As Typ,

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.