<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: Display record number / counter in the page</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Display record number / counter in the page</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 02:05:11 +0000</pubDate>

<item>
<title>cyberjorge on "Display record number / counter in the page"</title>
<link>https://www.machform.com/forums/topic/display-record-number-counter-in-the-page#post-5632</link>
<pubDate>Mon, 27 Apr 2009 15:23:33 +0000</pubDate>
<dc:creator>cyberjorge</dc:creator>
<guid isPermaLink="false">5632@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thank you very much!&#60;/p&#62;
&#60;p&#62;That solved it!
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Display record number / counter in the page"</title>
<link>https://www.machform.com/forums/topic/display-record-number-counter-in-the-page#post-5631</link>
<pubDate>Mon, 27 Apr 2009 15:05:41 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">5631@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;You can try my code to show form entries count. Try to follow these steps :&#60;/p&#62;
&#60;p&#62;1. Edit view-functions.php file and go to around line 1823 ~ 1824. You will see this :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//If you would like to remove the &#38;quot;Powered by MachForm&#38;quot; link..
$form_markup = &#38;lt;&#38;lt;&#38;lt;EOT&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;add these code exactly above that line&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$query = &#38;#39;select count(1) total_entry from ap_form_&#38;#39; . $form_id;
$result = do_query($query);
$row = do_fetch_result($result);

$total_entry = $row[&#38;#39;total_entry&#38;#39;];
$total_message = &#38;#39;&#38;lt;div id=&#38;quot;total_message&#38;quot;&#38;gt;You have &#38;#39; . $total_entry . &#38;#39; entries for this form&#38;lt;/div&#38;gt;&#38;#39;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;2. Go to line 1844, you will see this :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;h1&#38;gt;&#38;lt;a&#38;gt;{$form-&#38;gt;name}&#38;lt;/a&#38;gt;&#38;lt;/h1&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;put the code bellow that line &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;{$total_message}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;It will show your form entries on your form
&#60;/p&#62;</description>
</item>
<item>
<title>cyberjorge on "Display record number / counter in the page"</title>
<link>https://www.machform.com/forums/topic/display-record-number-counter-in-the-page#post-5630</link>
<pubDate>Mon, 27 Apr 2009 14:05:59 +0000</pubDate>
<dc:creator>cyberjorge</dc:creator>
<guid isPermaLink="false">5630@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I tried borrowing a code from manage_form.php by using the ff. code on top of the view-functions.php:&#60;/p&#62;
&#60;p&#62;&#60;code&#62; foreach ($form_list as $data){ &#60;/p&#62;
&#60;p&#62;		 if(!empty($data['form_active'])){&#60;br /&#62;
		 	$form_status 	 = 'Accepting Entries';&#60;br /&#62;
		 	$image_status 	 = 'checkbox.gif';&#60;br /&#62;
		 	$activation_text = 'Disable this form';&#60;br /&#62;
		 	$activation_link = 'disable_form';&#60;br /&#62;
		 }else{&#60;br /&#62;
		 	$form_status 	 = 'Inactive';&#60;br /&#62;
		 	$image_status 	 = 'disabled.gif';&#60;br /&#62;
		 	$activation_text = 'Enable this form';&#60;br /&#62;
		 	$activation_link = 'enable_form';&#60;br /&#62;
		 }; &#60;/p&#62;
&#60;p&#62; 	//get total entries for each form&#60;br /&#62;
	foreach ($form_id_array as $form_id){&#60;br /&#62;
		//get all time entries&#60;br /&#62;
		$query = &#34;select count(*) total_entry from &#60;code&#62;ap_form_{$form_id}&#60;br /&#62;
`&#60;br /&#62;
&#34;;&#60;br /&#62;
		$result = do_query($query);&#60;br /&#62;
		$row = do_fetch_result($result);&#60;br /&#62;
		$entries[$form_id]['total'] = $row['total_entry']; &#60;/code&#62;&#60;/p&#62;
&#60;p&#62;and&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;?php echo $entries[$data[&#38;#39;form_id&#38;#39;]][&#38;#39;total&#38;#39;]; ?&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;inside the html tag. But now I get the following error:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;Parse error: syntax error, unexpected &#38;#39;[&#38;#39;, expecting &#38;#39;]&#38;#39; in /wamp/public_html/form/includes/view-functions.php on line 1875&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Any idea? Thanks a lot in advance!
&#60;/p&#62;</description>
</item>
<item>
<title>cyberjorge on "Display record number / counter in the page"</title>
<link>https://www.machform.com/forums/topic/display-record-number-counter-in-the-page#post-5629</link>
<pubDate>Mon, 27 Apr 2009 11:05:16 +0000</pubDate>
<dc:creator>cyberjorge</dc:creator>
<guid isPermaLink="false">5629@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Anyone please? &#60;/p&#62;
&#60;p&#62;Is it possible to display the Entry Number on the form page?&#60;br /&#62;
I want other visitors to see the current number of persons who filled up the form before they fill up.&#60;/p&#62;
&#60;p&#62;Thanks in advance.
&#60;/p&#62;</description>
</item>
<item>
<title>cyberjorge on "Display record number / counter in the page"</title>
<link>https://www.machform.com/forums/topic/display-record-number-counter-in-the-page#post-5627</link>
<pubDate>Mon, 27 Apr 2009 08:47:41 +0000</pubDate>
<dc:creator>cyberjorge</dc:creator>
<guid isPermaLink="false">5627@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I want the visitors to see the total # of records in the form, like seeing the total sign-up's.&#60;/p&#62;
&#60;p&#62;Is this possible? How to accomplish this?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
