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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:06:44+00:00 2026-05-25T00:06:44+00:00

The Typo3 DB LIB has a method called exec_SELECTcountRows . The implementation looks like

  • 0

The Typo3 DB LIB has a method called exec_SELECTcountRows. The implementation looks like this:

/**
 * Counts the number of rows in a table.
 *
 * @param   string      $field: Name of the field to use in the 
                        COUNT() expression (e.g. '*')
 * @param   string      $table: Name of the table to count rows for
 * @param   string      $where: (optional) WHERE statement of the query
 * @return  mixed       Number of rows counter (integer) or 
                        false if something went wrong (boolean)
 */

public function exec_SELECTcountRows($field, $table, $where = '') {
    $count = FALSE;
    $resultSet = $this->exec_SELECTquery('COUNT(' . $field . ')', $table, $where);
    if ($resultSet !== FALSE) {
        list($count) = $this->sql_fetch_row($resultSet);
        $this->sql_free_result($resultSet);
    }
    return $count;
}

Question:

Is the return type of exec_SELECTcountRows truly an integer or rather a string containing one?

  • 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-25T00:06:45+00:00Added an answer on May 25, 2026 at 12:06 am

    Actually you’re right. The PHPdoc differs from the behavior (as mysql functions return the value as string).

    I filed a bug report, as I think this should be changed to return a true integer.

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

Sidebar

Related Questions

So lets say I have a table that looks something like this: ItemName ProductType
I'm a total beginner with TYPO3 and would like to show a RSS feed
I'm working recently on many TYPO3 Projects and I'd like to have a good
I have this structure of my files: lib/css/... contains my styles divided into single
I'm currently writing a TYPO3 extension which is configured with a list of tt_content
PROBLEM SOLVED! STUPID TYPO IN MY CODE! That's my method of my UIScrollView delegate:
I am a bit stuck with this. I have to interface with an api
I have a TYPO3 site with Indexed Search Engine extension... The problem is that
we are running a TYPO3 host with realurl and TYPO3 version 4.4.0 - now
I'm searching for a PHP/MySQL based CMS with some basics like Register/Login. It shouldn't

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.