e
    

   
Computer / Software (My Software Links) 
How to Create a PHP/MySQL Powered Forum From Scratch (PHP7, HTML5) :  UPDATED!
 @userAlexVL TID_00000000000041680
09 March 2022 14:10 EST
Originally created and published by Evert Padje for Nettuts+ ( https://code.tutsplus.com/tutorials/how-to-create-a-phpmysql-powered-forum-from-scratch--net-10188 ).
How to Create a PHP/MySQL Powered Forum From Scratch (PHP7, HTML5)





Hello, 
Before you proceed to setup, you should read the original article at Nettuts+ (17 Mar 2010). NOT all the information is up to date.
The version that I uploaded is PHP7 ready and tested by me !

If you consider to create the database manually, proceed to the following (NOT like written in the article) in phpMyAdmin:
1. Create a databse.
2. Go to SQL and create "Users" table -


3. Go to SQL and create "Categories" table -


4. Go to SQL and create "Topics" table -


5. Go to SQL and create "Posts" table -


NOTE 1: After you create a user to be administrator, you will need to change in "Users" table the "user_level" from 0 to 1 for this user !
NOTE 2: Open the file "connect.php" in text editor and setup the database connection parameters !
  
 @userAlexVL 25 March 2024 19:06 EDT PID_00000003_00000707  UPDATED!
 
 
NOTE: 
If you read this post and DO NOT have the archives from earlier times and as a result, not in a position of using them (download links expired), please, check the new post with
all updates and fixes included -

☛ OPEN




#Update 1 - For those who would like to update this forum to a wide version, the recommended settings are here:

1a. Update inside style.css file -
change from:

to:


1b. Update header.php file -
change from:

to:


2. Update inside create_cat.php file -
change from:

to:


3. Update inside create_topic.php file -
change from:

to:


4. Update inside topic.php file -
change from:

to:






#Update 2 - Additional visual upgrade:

Update inside style.css file -
change from:

to:

and then add:


Note: If there is no change, clear the history of the browser! 





#Update 3 - Adding an icon to the browser tab:

Update inside header.php file - 
add the following:

after:


Download the icons from here (add both of them):

DOWNLOAD ⇩





#Update 4 - Adding a pagination to "Topics":

1. Update inside index.php file -
change from:

to:


2. Update inside category.php file -
add this:

after this:


3. Update inside category.php file -
add this:

after this:


4. Update inside category.php file -
change from:

to:






#Update 5 - Official HTML5 declaration for client:

Update inside header.php file -
change from:


to:






#Bug fix 1 - Not a fully correct phrase regarding home page:

1. Update inside index.php file -
change from:

to:






#Bug fix 2 - Doesn't display HTML tags properly:

1. Update inside index.php file -
change from:

to:


2. Update inside topic.php file -
change from:

to:


3. Update inside category.php file -
change from:

to:

NOTE: Category title still cannot display HTML tags properly!





#Bug fix 3 - wrap="hard" doesn't work properly in texterea tags:

1. Update inside create_cat.php file -
change from:

to:


2. Update inside create_topic.php file -
change from:

to:


3. Update inside topic.php file -
change from:

to:
 
  








Gen4.00 build 4307.12 MTZ      ||  Online community. © 2025 Product of virtual-haus.com. || Location: EDT
virtual-haus.com 2015-2025.