Fork me on GitHub

Getting "number of stories"  Bottom

  • Hello,

    I am trying to get the total number of stories in the database. I guess I could use an SQL query but first I can't really do SQL good, secondly that would probably be slow, right ?

    Is there an API function or another way of getting this number ?

    Thanks in advance,

    MDE
  • You'll have to query the database. Something like

    Code

    SELECT count(*) FROM $pntables['news'];


    --
    itbegins.co.uk - Zikula Consulting

    birtwistle.me.uk - Personal Blog


    Please read the Support Guide

This list is based on users active over the last 60 minutes.