Results 1 to 2 of 2

Thread: How do i use mysql_num_rows

  1. #1
    chetansharma05 is offline Sugar Community Member
    Join Date
    May 2008
    Posts
    25

    Default How do i use mysql_num_rows

    Hi all, how can i use mysql_num_rows function in sugarcrm

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: How do i use mysql_num_rows

    Hi chetansharma05

    The database object in Sugar, accessible in a module as $this->db has the method getRowCount.
    You can use this way:

    $num_row = $this->db->getRowCount($result);

    Cheers.
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •