php, js - echoing a number based on how many children there are?

Posted by benbyford on Stack Overflow See other posts from Stack Overflow or by benbyford
Published on 2010-05-29T18:01:03Z Indexed on 2010/05/29 18:02 UTC
Read the original article Hit count: 162

Filed under:
|
|

Creating a site in with FrogCMS and using alot of jquery to create an all in one screen site.

having trouble in php echoing a number for the number of children for a subject in the database which i can then use as a var in js.

some things ive tried, but im not really a developer so having issues

here is some code frog supplies to show to utilise articles for example, and articles then has childen in the database.

find('/articles/'); ?> children(array('limit' => 1, 'order' => 'page.created_on DESC')); ?>

but im not sure how to create a discrete number to use with the jquery concerning the number of children??

thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about jQuery