Please forgive me, but my PHP coding skills are rudimentary at best.
Please bear with me!
My ChronoForm collects 2 user inputs, the date and the number of steps the person walked that day. Results are stored in a table called jos_chronoforms_walkform.
Field names are:
stepsdate
numofsteps
I managed to create a CC that displays a list of data based on user ID. I accomplished this using the WHERE clause
and using the appropriate {fieldname} tags in the body settomgs.
In the footer I want to display the sum of numofsteps for the logged in user. I've tried several variations of the code I've found in other posts, but while I don't get a sql error, nothing displays.
Can someone please help? Thank you!
Please bear with me!
My ChronoForm collects 2 user inputs, the date and the number of steps the person walked that day. Results are stored in a table called jos_chronoforms_walkform.
Field names are:
stepsdate
numofsteps
I managed to create a CC that displays a list of data based on user ID. I accomplished this using the WHERE clause
<?php
$user =& JFactory::getUser();
?>
WHERE `cf_user_id` = '<?php echo $user->id; ?>'
and using the appropriate {fieldname} tags in the body settomgs.
In the footer I want to display the sum of numofsteps for the logged in user. I've tried several variations of the code I've found in other posts, but while I don't get a sql error, nothing displays.
Can someone please help? Thank you!