connector function where you have to input your username
34185connector function where you have to input your usernamehttp://www.chipmunk-scripts.com/board/index.php?forumID=43&ID=9268Simple, a simple connector function where you have to input your username, password, and database name to connect. Not that the function below starting at
if(!get_magic_quotes_gpc()) is not actually part of the connector function, it is simply to parse out mySQL injections and may not be needed. If your php to mysql extenson classes are not updated, mysql_escape_string may not work and you will have to take the parser lines out.PHP > Tips and Tutorials > Discussion BoardsDec 15, 2006Yinan Chensend email to Yinan Chen
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.
Simple, a simple connector function where you have to input your username, password, and database name to connect. Not that the function below starting at
if(!get_magic_quotes_gpc()) is not actually part of the connector function, it is simply to parse out mySQL injections and may not be needed. If your php to mysql extenson classes are not updated, mysql_escape_string may not work and you will have to take the parser lines out.
In this tutorial, I will show you how to make your whole site more dynamic, by including the PHPbb login to work all all the pages of your site. This tutorial will hopefully help increase your knowledge of PHP, and mySQL. With some very simple, and easy modifications, which I include here, you can easily add Birthday Announcements, Users Online, Private Messages, and Recent Discussion to any page of your site. You can also use the PHPbb login information with other custom DB forms on your site. Expanding your site into an extremely dynamic community.
This tutorial will use many hacks from http://www.phpbbhacks.com/, some were greatly changed by me, and others. I will try my best to give credit to those who wrote the code, or came up with the idea
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.