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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:15:56+00:00 2026-06-03T14:15:56+00:00

Is there a function equivalent to mysql_num_rows to count the number of columns in

  • 0

Is there a function equivalent to mysql_num_rows to count the number of columns in a PHP mysql recordset?

If not, rather than just saying so can you please advise me of the best way to make a function that does this.

I have already looked at: http://www.daniweb.com/web-development/php/threads/277417/to-find-the-number-of-columns-in-a-table-using-mysql-query and http://www.ozzu.com/programming-forum/mysql-number-columns-table-t67489.html but neither of these solutions seem particularly elegant.

  • 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-03T14:15:57+00:00Added an answer on June 3, 2026 at 2:15 pm

    http://php.net/manual/en/function.mysql-num-fields.php
    mysql_num_fields();

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

Sidebar

Related Questions

Is there any equivalent function that returns the character at position X in PHP?
Is there any equivalent function of memset for vectors in C++ ? (Not clear()
My question is simple. Is there a PHP's preg_match() function equivalent in the C++
I'm wondering if there is an equivalent function to PHP's call_user_func() in ASP.NET application.
Is there an equivalent to Perl's format function in PHP? I have a client
Is there a function in php wherein you can convert the number 12 to
Is there a equivalent function in Sybase ASE to the group_concat of MYSQL?
Is there any equivalent 'LIKE' function(like in MySQL) for lists. for example; This is
Maybe I'm just missing it, but isn't there a function equivalent to fprintf for
Is there a way to call a MySQL stored function (not procedure) in Zend

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.