hello every one
i want to creat a forum that some one can contribute an article and others can reply its.
please help me
Thanks in advance.e

Dani AI

Generated

Short expert note: followed the tutorial suggested by , created the database and edited the connection file, and can see the index under XAMPP while "home", "make category" and "create topic" fail. Below are focused, practical checks and fixes that match the usual causes for that exact symptom.

  1. Enable PHP errors first and read the logs (PHP and Apache).
  2. Verify the active DB connection from each page (sometimes the index uses a different include path). Test queries in phpMyAdmin.
  3. Confirm table names and any prefix used by the code match the actual tables. A single typo or prefix mismatch will show the front page but break posting actions.
  4. Check session/permission logic: pages that let you create categories/topics often require an "admin" flag or a logged-in session. Make sure session_start() runs before any permission checks.
  5. Look for .htaccess/mod_rewrite dependencies (friendly URLs will fail if mod_rewrite is off).
  6. Check encoding and PHP tags: files must be UTF-8 without BOM and use <?php (not short tags) unless short_open_tag is enabled.
  7. If running a modern PHP version, legacy mysql_* calls will fail—migrate to mysqli or PDO.

Common quick fixes: manually set an admin flag in the users table if category creation is hidden behind permissions; correct any include/require paths that differ when pages are loaded from subfolders; enable mod_rewrite in Apache if the tutorial used pretty URLs.

Quick test snippet to drop in as a one-off file (do not leave in production):

<?php
ini_set('display_errors',1);
error_reporting(E_ALL);

$mysqli = new mysqli('localhost','db_user','db_pass','db_name');
if ($mysqli->connect_error) { die('DB connect error: '.$mysqli->connect_error); }
echo "DB OK";
?>

Note: turn off display_errors on a public server and remove test files after debugging. As observed, debugging takes time; methodical checks above usually find the culprit.

Recommended Answers

All 6 Replies

Click Me

The concept of a discussion forum is actually pretty simple, and a bare bones forum system is equally simple. Adding in other features, scalability, compatibility, and security are what take up the lion's share of effort.

If you have any specific questions about how Daniweb in particular works (and vBulletin to a lesser extent), I can answer those.

i see your suggested site and i make a data base with all of it's table that its needed.and i edit the file that was named connect with the names of my host and user and password and database.and run it in xampp.
i can see the first page ,it run.but the home page,make category and creat a topic dosent work!!!

is there any one that can help me!!!

Member Avatar for Member #120589

How about you have a try with coding some stuff yourself first? You seem to want answers to things to quickly. Programming takes time - a lot of time. There aren't any real shortcuts. Perhaps come back in a day after you've had some time to mess around with the code, rather than an hour. Sorry if this sounds dismissive, it's not meant to be.

So you installed vBulletin or are you referring to trouble on this site?

oh no.sorry.you are wrong.i dont want answers to things to quickly.i know that programming takes time .
i just want help me to run a program that have to be run.its not like a program that have a problem in running.it will be run quickly.and i do it and say you its trouble.
thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.