mssql with php record count problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mageswar005
    New Member
    • Mar 2008
    • 72

    mssql with php record count problem

    hi,
    currently i worked with php and mssql,i need to count the records from mssql server.but the total count values are not worked.

    1) mssql_num_rows -> not worked
    2) Select count(*) as cnt from table name -> not worked

    any one help me how to count the records from table

    regards
    mageswaran
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    Originally posted by mageswar005
    hi,
    currently i worked with php and mssql,i need to count the records from mssql server.but the total count values are not worked.

    1) mssql_num_rows -> not worked
    2) Select count(*) as cnt from table name -> not worked

    any one help me how to count the records from table

    regards
    mageswaran
    How about showing us the code you used?

    Use code tags (refer to forum guidelines on how to do this).

    Comment

    • ronverdonk
      Recognized Expert Specialist
      • Jul 2006
      • 4259

      #3
      Originally posted by mageswar005
      hi,
      currently i worked with php and mssql,i need to count the records from mssql server.but the total count values are not worked.

      1) mssql_num_rows -> not worked
      2) Select count(*) as cnt from table name -> not worked

      any one help me how to count the records from table

      regards
      mageswaran
      I just do not believe you! Commands like that are used a zillion times a day and it doesn't work for you? There must be definitely wrong with your code. So show it here and do not forget, like markusn00b already pointed out, to use the appropriate code tags!

      Ronald

      Comment

      Working...