| | |
new to php, need help adding a forum
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Oct 2004
Posts: 15
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by 12345letsgo
i know no php, but amexcellentwith javascript, html, and css. I need help adding a forum to my site. Would apprciate any help
hotscripts.com
both of these websites have plenty of php scripts. Or just use google and search for php forum scripts. If you understand html then you should be able to adapt to php quite easily. Use you css file to position your forum results with the same stlye, text etc as the rest pf your pages, and then just use html tags to present you info into the webpage.
Another thing, are you using a mysql databse or a flat data file to store the enterdata in your forum?
•
•
•
•
Originally Posted by Hjcooke
Needscripts.com
hotscripts.com
both of these websites have plenty of php scripts. Or just use google and search for php forum scripts. If you understand html then you should be able to adapt to php quite easily. Use you css file to position your forum results with the same stlye, text etc as the rest pf your pages, and then just use html tags to present you info into the webpage.
Another thing, are you using a mysql databse or a flat data file to store the enterdata in your forum?
•
•
Join Date: Oct 2004
Posts: 15
Reputation:
Solved Threads: 0
Your proposed forum needs a database program, in this instance your using mysql. You need to have mysql on the same machine which is hosting your website. ( i think). If your putting yor website on your server then just install mysql on it as well.
To add it to your site you need to have mysql and a recnt version pf php installed and runing on your server.
"my little forum" should have hopefully quite a standard database connection and display of database contents code already writen in a test page, or something similar.
You need to use that same code to contact your database through your webpages. The php needs to be inside the your html tags.
But remenber you must save your php files as .php or you will just gat pages of sql comands.
To add it to your site you need to have mysql and a recnt version pf php installed and runing on your server.
"my little forum" should have hopefully quite a standard database connection and display of database contents code already writen in a test page, or something similar.
You need to use that same code to contact your database through your webpages. The php needs to be inside the your html tags.
But remenber you must save your php files as .php or you will just gat pages of sql comands.
•
•
•
•
Originally Posted by Hjcooke
Your proposed forum needs a database program, in this instance your using mysql. You need to have mysql on the same machine which is hosting your website. ( i think). If your putting yor website on your server then just install mysql on it as well.
To add it to your site you need to have mysql and a recnt version pf php installed and runing on your server.
"my little forum" should have hopefully quite a standard database connection and display of database contents code already writen in a test page, or something similar.
You need to use that same code to contact your database through your webpages. The php needs to be inside the your html tags.
But remenber you must save your php files as .php or you will just gat pages of sql comands.
what do i fill in for thesefields(where do i find this info?)
database host
host name, probably "localhost"
Database name
Name of the database
Database user
Username to access the database
Database password
Password to access the database
Settings table
Table in which the settings are saved
Forum table
Table in which the messages are saved
Category table
Table in which the categories are saved
Userdata table
Tabelle, in which the userdata is saved
User-online table
Table in which the users are counted who are online at the same time
database host
host name, probably "localhost"
Database name
Name of the database
Database user
Username to access the database
Database password
Password to access the database
Settings table
Table in which the settings are saved
Forum table
Table in which the messages are saved
Category table
Table in which the categories are saved
Userdata table
Tabelle, in which the userdata is saved
User-online table
Table in which the users are counted who are online at the same time
•
•
Join Date: Oct 2004
Posts: 15
Reputation:
Solved Threads: 0
Local host is the ip for machine hosting the forum.
You need to create a database in mysql through a admin program, and put that name of the databse into your php code, as well as your users name and password. Many php and mysql setups come with passwords and user names, you need to have a look in the read me files for these.
it looks like some of the lower statements you state your self, such as the table, you need to name it. Not sure what user table is, i feel its the same as other tables.
How good is your html skills? If you continue to have problems i have a php code that allows you to display the contents of a databse and add a new record. All you need to do is change the html tags from a standard 3 field by 3 column table that displays the data.
You need to create a database in mysql through a admin program, and put that name of the databse into your php code, as well as your users name and password. Many php and mysql setups come with passwords and user names, you need to have a look in the read me files for these.
it looks like some of the lower statements you state your self, such as the table, you need to name it. Not sure what user table is, i feel its the same as other tables.
How good is your html skills? If you continue to have problems i have a php code that allows you to display the contents of a databse and add a new record. All you need to do is change the html tags from a standard 3 field by 3 column table that displays the data.
![]() |
Similar Threads
- PHP and adding Forum (PHP)
- help on a php built forum (PHP)
Other Threads in the PHP Forum
- Previous Thread: php rewrite question
- Next Thread: Time and Date / Date Format
| Thread Tools | Search this Thread |
ajax apache api array beginner beneath binary broadband broken button cakephp checkbox class cms code countingeverycharactersfromastring crack cron curl database date decode display dynamic echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla limit link login loop mail match md5 menu mlm multiple mysql mysql_real_escape_string oop paypal pdf php problem protocol query radio random recursion regex remote script search server session sessions sms smtp soap source space sql strip_tags survey syntax system table tutorial undefined update upload url validator variable video virus votedown web window.onbeforeunload=closeme; xml youtube





