hi everyone,
i am working on forums and i found something very useful to those who develop forums
i attached files and may it will help somebody. i included one style sheet which is in txt format change that into .css
thanku

Dani AI

Generated

Praveen uploaded forum files and a SQL dump, and other members (notably and ) raised the usual follow‑ups: missing tables, how to wire the dump into the PHP code, and import problems. The attachments will work only after the dump is imported into MySQL and the application’s DB settings match the dump (table names/prefixes, character set, and database name). Before importing, confirm the dump contains all expected CREATE TABLE statements (the missing tbl_categories was the root of one report in this thread).

Quick checklist before import: 1) open the .sql in a text editor and search for CREATE TABLE lines to verify the full schema; 2) note any CREATE DATABASE or USE lines (they determine the target DB name); 3) confirm table prefixes in the dump match what the PHP files expect; 4) make a backup of any existing database you will overwrite; 5) confirm the MySQL user has CREATE/INSERT privileges.

Two practical import options: use phpMyAdmin’s Import tab (select or create the target database, choose the .sql file, pick the appropriate character set, then import) or import from the server shell. A common shell command is:

mysql -u username -p database_name < database_backup.sql

If phpMyAdmin hits an upload-size limit, the shell method or splitting/compressing the dump usually solves it.

Troubleshooting and best practices: check import error messages for missing DEFINER/permission problems, fix mismatched charsets (utf8 vs utf8mb4), and recreate any missing lookup tables (like tblcategories) if they weren’t included. Store DB credentials in one central config file placed outside the web root (so all pages use the same settings) and, for long‑term safety, update legacy mysql* code to mysqli or PDO and use prepared statements to prevent injection.

Recommended Answers

All 11 Replies

hi everyone,
i am working on forums and i found something very useful to those who develop forums
i attached files and may it will help somebody. i included one style sheet which is in txt format change that into .css
thanku

Hi Praveen,

Is it possible to provide the database also.
Thanks in advance.

yeh, sure my friend

yeh, sure my friend

Thanks

Okay, assuming I call this database table file databse_backup.sql, how then can I reference it in those PHP files?

yeh, sure my friend

hi mexabet,
you need to import that file into your database

Please, tell me the detailed steps to achieve this. Should the database login be inside conn.php?

hi mexabet,
you need to import that file into your database

hi mexabet,
you will have import option in your database and in conn.php

<?
mysql_connect("localhost","username","password");
mysql_select_db("databasename");
?>

and u need to include conn.php in every page where u use sql quieries

Hi.
I think you posted one of the dumped table of the MySQL, where are the other tables like tbl_categories.

thanks

yeh my fault sorry, actually i was working on that forums and made some modifications according to my requirements.now, the database file i have attached will work with files i attached now if any doubts u can ask me.

Thanks very much, now it is working well

Thanks praveen_dusari.

hi mexabet,
you will have import option in your database and in conn.php

<?
mysql_connect("localhost","username","password");
mysql_select_db("databasename");
?>

and u need to include conn.php in every page where u use sql quieries

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.