Follow me on Twitter @ http://twitter.com/tktutorials Check out my website @ http://www.timkipptutorials.com This is part two of this tutorial series. In part two we …
Original source
Follow me on Twitter @ http://twitter.com/tktutorials Check out my website @ http://www.timkipptutorials.com This is part two of this tutorial series. In part two we …
Original source
36 responses to “PHP Series – Building A PHP MySQL Forum Tutorial Series Part 2 – Displaying Forum Categories”
Even after 6 years and that mysql is deprecated it is still the best forum tut far and wide. Thx for that. BTW, your website seems down to me. Are you at GitHub by chance?
This is a really good tutorial!
It says "Warning : mysql_query() expects parameter 1 to be string, object given in C:xampphtdocsForumindex.php on line 33
Notice: Array to string conversion on line 38 where i try to echo the category title and description
hi only one category shows up even though i already made 2 categories
Hi, it says 'no database selected' when i load the page?? ive checked the code over and over i dont think its wrong
This tutorial is really excellent and helpful ,your teaching in the video is really clear. Thank you !
Hi, when the categories are displayed for me, they seem to appear twice…
In my webpage I am getting the error message – Can't connect to MySQL server on 'localhost' (10061). Why is this? Any advice would be appreciated, thanks!
Cool. I totally looked over that line. You set a limit to only retrieve a certain number of rows from a database table. That way if you had 1000s of rows you could limit to only showing 10 or whatever at a time.
The problem is how you are using MySQLi. Read the PHP documentation about how to properly use MySQLi. If you want a quick fix, you can use MySQL instead by just removing the "i" from MySQLi and removing $con, from you queries.
Hey thanks very much! I completely looked over the .= to append. Thank you very much this tut was the best thing I've found so far and exactly what I needed for my project!
Without seeing the code my guess is that either you have a LIMIT on your query or within your loop you forgot to use ".=" instead of just "=" to add each value to display.
Hey man great vid!
I am having a problem, after I made the two different forums by inserting them manually it will only show me the last one added. I have tried changing the sort but to no avail. What am I doing wrong?
WOO!! 🙂
thank you for the input. I will try and explain more in upcoming tutorials.
I am intending to do more updated tutorials in the near future that maybe have that feature.
Thank you!
Thanks!
Thank you for your support!
Tim, your awesome!! … good talk.
I like these tutorials. They are very clear and concise – straight to the point.
thanks, you should have add parents for the catagories. first of al that would complete the tutorial. and i need that, but i can probaly figure that out my self.
After I add the reply to a topic, I get this "This topic does not exist.". Also how do you update the reply after adding a reply to the topic? Thanks
Never mind I missed the period in front of the equal sign on line 40
I only get one category entry and I have the same exact code, what could be the problem?
Thanks very very much for this, you are my hero.
Woooooord! Very clean code.
Hello.Very good totorial. But there is a problem. Forums do not count many replies it is. Maybe in topics table should be (topic replies)? I do not know. Can you help me Timki?
I see that you have posted a topic in the forums. I will provide more help there. Please post your code there though so we can see where the problem is. Thanks.
@humanoPR There might be a problem in your sql statement.
I have a problem to is that I get only the last category and added
@jago125 I'm glad you found this tutorial helpful. If you have any questions or everything, feel free to check out my site
@dhrjani2 Thanks!
@frisksten Thanks! I'm glad they are helping you out.
awesome work man …