in need of a simple guest book

This is a discussion on "in need of a simple guest book" within the PHP Forum section. This forum, and the thread "in need of a simple guest book are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 24th, 2006, 13:34
Up'n'Coming Member
Join Date: Jul 2006
Location: poole
Age: 26
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
in need of a simple guest book

on a site i am currently doing, there is a page where i need 2 columns.
on the left is the list of past messages, and on the right a form to add a new one (name and comment.)

i have tried several online tutorials, and none of them have worked. i think this may possibly be because the server i am using only has php4.

i am not very savvy with php but do know a little, and am pretty sure it's not my own stupidity that has prevented the previous attempts from working!

so, if anybody knows of a tutorial for a simple guest book that will definitely work on older version of php, please let me know.

many thanks.
Reply With Quote

  #2 (permalink)  
Old Aug 24th, 2006, 14:00
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,762
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: in need of a simple guest book

You could build one very quickly in Dreamweaver.
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #3 (permalink)  
Old Aug 24th, 2006, 14:20
Up'n'Coming Member
Join Date: Jul 2006
Location: poole
Age: 26
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Re: in need of a simple guest book

any clue as to how?
Reply With Quote
  #4 (permalink)  
Old Aug 24th, 2006, 20:30
vbw vbw is offline
New Member
Join Date: Aug 2006
Location: America
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: in need of a simple guest book

You will need to use some type of scripting language, cgi,pl,php to either store the data in a flat text file or maybe a mysql db. Do you have anything in the works yet...
Reply With Quote
  #5 (permalink)  
Old Aug 24th, 2006, 22:34
Up'n'Coming Member
Join Date: Jul 2006
Location: poole
Age: 26
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Re: in need of a simple guest book

the server the site is hosted on has php 4 and mysql. i prefer the idea of a database to storing the messages in a txt file.

i have got as far as creating a database, putting in the necessary tables/fields, and uploading the php files. but it hasn't worked yet, despite trying 3 different ways of doing it.

i'm thinking either the tutorials i've been following have been for php5, or i'm making a mistake with the database somewhere.

if anybody knows of a php4< tutorial, i would like to give that a try first.
Reply With Quote
  #6 (permalink)  
Old Aug 24th, 2006, 22:51
vbw vbw is offline
New Member
Join Date: Aug 2006
Location: America
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: in need of a simple guest book

Quote:
but it hasn't worked yet, despite trying 3 different ways of doing it.
What is not working? What error messages do you receive if any?

Can you post your form code that submits the data so we can have a look...
Reply With Quote
  #7 (permalink)  
Old Aug 24th, 2006, 23:50
New Member
Join Date: Aug 2006
Location: UK
Age: 20
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Re: in need of a simple guest book

Are you sure the database host/username/pass is filled in correctly?

If you can, post a link to where its hosted.
Reply With Quote
  #8 (permalink)  
Old Aug 25th, 2006, 04:14
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Cool Re: in need of a simple guest book

Post a link to where the guestbook is at and we will take a look and let you know what to fix. That is if you haven’t deleted it off of your server yet.
Reply With Quote
  #9 (permalink)  
Old Aug 25th, 2006, 21:39
Up'n'Coming Member
Join Date: Jul 2006
Location: poole
Age: 26
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Re: in need of a simple guest book

unfortunately i have deleted the files, however here is the first tutorial i tried and had most success with:

http://chipmunk-scripts.com/board/in...mID=43&ID=7519

interestingly, if you look at the comments at the bottom of this tutorial, i got exactly the same error as he did:

Code: Select all
Parse error: syntax error, unexpected T_STRING in c:\wamp\www\MyGB\action.php on line 19
it seems he found out why, but did not care to elaborate. any ideas would be great!
Reply With Quote
  #10 (permalink)  
Old Aug 25th, 2006, 23:12
Reputable Member
Join Date: Jul 2005
Location: Melksham, Wilts, UK
Posts: 293
Thanks: 0
Thanked 0 Times in 0 Posts
Re: in need of a simple guest book

mysql_query($insert) or die("Could not insert comment);

should read

mysql_query($insert) or die("Could not insert comment");
Reply With Quote
  #11 (permalink)  
Old Aug 26th, 2006, 08:09
Up'n'Coming Member
Join Date: Jul 2006
Location: poole
Age: 26
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Re: in need of a simple guest book

excellent, thanks so much for you help. all is working now.
there is also another mistake in the code, the display.php file has a redundant <hr> tag at the bottom.

you'd think he would test it before posting the tutorial!

cheers guys.
Reply With Quote
Reply

Tags
simple, guest, book

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Guest Book in FrontPage autoIT Scripts and Online Services 4 May 21st, 2007 11:29
Guest Welcome Message... LearningToProgram Webforumz Suggestions and Feedback 8 Dec 30th, 2006 12:45
Guest Book Suggestions? sing2trees Web Page Design 3 Apr 29th, 2006 19:13
how do i make a guest book ? bruno89 Web Page Design 4 Feb 25th, 2006 00:13


All times are GMT. The time now is 12:04.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43