Username:    Password:        Click Here To Signup     Forgotten Password
Main Menu
Online
Members: 0

Guests: 11

107.20.x.x forum
112.111.x.x forum
120.36.x.x forum
175.42.x.x forum
175.44.x.x forum
175.44.x.x forum
199.180.x.x forum
213.164.x.x news
220.181.x.x forum
66.249.x.x download
66.249.x.x dilbertplus

Last Seen

Zipps Wed 10:16
lycanwrath Wed 09:03
Dodgeitorelse Wed 06:46
ODDBALL118 Tue 22:37
EFiNST0RM Tue 20:40

Newest Members

Forums
Guestbook
Shelley
Fri Mar 23 2007, 11:05AM
Guest Hi,
Is there a way to display the number of entries in the guestbook?

This is how we are using it - Food Producers Pledge

I'd like to show people at a glance how many have signed it.

thanks

Shelley

Rich
Fri Mar 23 2007, 11:26AM
Posts: 1700
Joined: Wed Nov 26 2003, 04:30PM

Very cool adaptation of the Guestbook

The answer is yes you can, and a total count already exists in the code since its needed for the paging at the bottom.


$guestbook_total = $sql -> db_Count("guestbook", "(*)");


However this is quite low down in the code and you may want to put the number of entries up top.

If so just copy/cut and paste it higher up the code, and then you can add to the form, say above the sign button

$text .= "There are $guestbook_total pledges - ".GB_LAN_SIGN." etc etc


Hope this makes sense, if not let me know
Website
Shelley
Fri Mar 23 2007, 11:30AM
Guest Ok thanks for that, I'll give it a go.
 

Jump:     Back to top


You are not logged in - Click Here To Signup

Username:    Password:   

Mini Buttons

.... © GreyCube.com - Richard Perry - Powered by e107.org