Add Smilies into your Guestbook/Blog Script Part 1
26092Add Smilies into your Guestbook/Blog Script Part 1http://auroranet.fre3.com/tutorial.php?id=6Wonder how smiley faces are automatically added your guestbook or blog script whenever you type :) in your form's textarea ? This tutorial will guide you thru on how to write a simple script to added smiley to your script.PHP > Tips and Tutorials > Discussion BoardsOct 15, 2006
There was a time a while ago, around the time of these (BBcode editor & BBcode 'parser') two articles, when I thought processing BBcode submitted by a websites users was a complex matter. I thought it required complex regular expressions and even then my solution was far from complete. In truth, as complex as I thought the problem was, in reality it was probably more complex still.
Many Web sites offer message and discussion boards to attract and retain visitors. Boards have been used for everything from dating services to stock advice. They often play an important part in marketing strategies because they provide answers to pre- and post-sale questions. They are also popular on company intranets. Web developers have responded to the popularity of discussion boards, and they labor at designing their own boards from scratch.
Learn how to make a comment/discussion board like those on this site using PHP and mySQL. there are three files: comments.php, which displays the comments, commentadd.php, which processes the comment, and commentform.html which is simply a form that can be placed in any page manually or per SSI (server side includes). I realize that it is possible to have all three components in one file, but we are using this multifile method for tutorial functionality.
There are 2 commonly used data management system.
a) Using a Database System ( Oracle 9i, mysql, MsAssess postsql etc )
b) Using a flat file (text file)
This tutorial will guide you through the process of building a comments script with PHP. The comments script will use a mySQL database to store and retrieve information. Its not too advanced, but additional features can easily be added, such as a delete feature and implementing usernames. If a user is logged in, display their username- if not, display "Guest" or something along those lines. Well discuss that more in detail later. So lets get started.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.