| Welcome to zetaNetwork. We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as viewing zetaNetwork exclusive tutorials and articles, and access to our code snippets section. Registration is simple, fast, and completely free. Click Here To Register If you're already a member please log in to your account to access all of our features: |
| FORUM SOFTWARE TUTORIAL | |
|---|---|
| Tweet Topic Started: May 20 2011, 12:16 PM (7,148 Views) | |
| Connor | May 20 2011, 12:16 PM Post #1 |
Newbie
|
Making a forum software Difficulty: Medium Time: 45 minutes - 1 hour hi there! I may not be the best with php but I generally know my way around using it. I started off with php wanting to make my own forum software. I am sure there are others around here who wish to do the same. So my ultimate thoughts were to try to help you all out. Start off by creating your database file in order to connect to the mysql server
What the above code does is connect you to your database. If your settings are wrong it will display "Could not connect to MySQL", if they are right but there is no database in your account, you will see, "Database cannot be found." and it will kill the connection. Next create your MySQL database tables. My settings are below.
That is simply a database query. You may be able to use these settings to create an install file if needed. I will make an install file tutorial later on. Next you will start your coding. I will not go very far in depth or even show you my entire code. Just the PHP/SQL parts. The html, you can do on your own.
Explanation: What this code is doing is connecting to the database and retrieving the information we specified and placing it into an html table.
This connects to your dbconnect file and then retrieves everything (*) from the cat table and order's them by the categories id (cid) in ascending order.
This does a very similar thing. The main difference is, it checks the forum.pid (parent id) field and displays any that have the same pid as any of the categories (cid) therefor simply connection the child (forum) with it's parent (category). That was a simple php forum software tutorial. I may go a bit more in depth later on but hopefully this helps a few people out. Enjoy! Styled Demo: http://ideadome.ulmb.com/yo.php Edited by Connor, May 20 2011, 12:17 PM.
|
Alban is dah man
| |
| Offline Profile | Quote ^ |
| Pro | May 20 2011, 01:58 PM Post #2 |
|
Underground Coding
![]()
|
Nice start on this. Looking forward to an update or expansion ![]() This tutorial has been found to be about PHP and has been moved to the PHP section. Pro | zetaNetwork Staff |
|
Pro | zetaNetwork Instructor & Admin I Coded Most Of The Smexy Stuff You See ![]() PM Me Any Questions Need live support? Click here. | |
| Offline Profile | Quote ^ |
| Connor | May 24 2011, 10:59 AM Post #3 |
Newbie
|
Thanks
|
Alban is dah man
| |
| Offline Profile | Quote ^ |
| VoidPC | Jun 3 2011, 01:38 AM Post #4 |
Getting Into The Groove
|
Questions: 1. Is it okay tu make a variable without using (`) ? 2. I don't understand the part in yellow color except the semi-colon. >.< |
| Offline Profile | Quote ^ |
| Tajio | Jun 4 2011, 06:34 AM Post #5 |
Newbie
|
Fabolous, I always wanted to play about with a custom forum software
|
| Offline Profile | Quote ^ |
| Connor | Jun 11 2011, 09:10 PM Post #6 |
Newbie
|
I believe that making a variable without the (') would be okay, but I make the tables and fields from scratch rather than running the query I posted so I am not entirely sure. The charset is what determines what encoding is used. So certain characters won't be displayed I think... And the Engine is which engine is used. I think there is MySQL, MySQL Li, etc. but I am not entirely sure about that either. And thanks everyone for the feedback
|
Alban is dah man
| |
| Offline Profile | Quote ^ |
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Tutorials · Next Topic » |














2:34 PM Jul 11