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

Guests: 14

142.0.x.x forum
157.55.x.x forum
175.42.x.x forum
175.44.x.x forum
176.9.x.x software_l..
178.255.x.x forum
192.151.x.x forum
192.80.x.x forum
220.181.x.x forum
27.153.x.x news
5.63.x.x news
50.19.x.x forum
58.22.x.x forum
66.249.x.x dilbertplus

Last Seen

Mikro Sat 02:39
dsvfdbvfddsvfdb Fri 22:39
Sqtwe3LEu6 Fri 22:21
xMin Fri 17:48
Wussie Fri 17:36

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