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.
|
|
|
|
|
![]() |
||
in need of a simple guest book
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
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. |
|
|
|
#2
|
|||
|
|||
|
Re: in need of a simple guest book
You could build one very quickly in Dreamweaver.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#3
|
|||
|
|||
|
Re: in need of a simple guest book
any clue as to how?
|
|
#4
|
|||
|
|||
|
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...
|
|
#5
|
|||
|
|||
|
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. |
|
#6
|
|||
|
|||
|
Re: in need of a simple guest book
Quote:
Can you post your form code that submits the data so we can have a look... |
|
#7
|
|||
|
|||
|
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. |
|
#8
|
|||
|
|||
|
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.
|
|
#9
|
|||
|
|||
|
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:
|
|
#10
|
|||
|
|||
|
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"); |
|
#11
|
|||
|
|||
|
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. |
![]() |
| Tags |
| simple, guest, book |
| Thread Tools | |
|
|
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 |