/    Sign up×
Community /Pin to ProfileBookmark

help with php forum

Hi, I have 2 website up and running with (virtual host) apache2.2, php5.3.2 and mysql5.1.4 , and I added a php mysql forum to one of the website from simpleforum ([url]http://www.gerd-tentler.de/tools/forum/index.php[/url]) check demo ([url]http://www.gerd-tentler.de/tools/forum/demo/forum.php[/url]). When I installed it and run the forum.php, its works, but when i post new threads it did not show up on the main page as in the demo. Only the very last post show up. I check the database using phpmyadmin, I noticed that all new thread that I added did gets inserted into the database but the integer under thread column show 1 for all threads. If I change it to any other number than that thread will show up on the main forum.php page. At first i though its something wrong with the code. So I installed it on my local testing computer running wamp5, and it work prefectly, just like the demo. Do I need to set anything on php.ini or apache config file. Because it seems like new thread didn’t get past thought all the cycles or something. Help needed please (don’t want to pull my hair out).

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@chris22Sep 02.2010 — Hi, maybe your thread id columns is not set to AUTO INCREMENT on your production server? And it is AUTO INCREMENT on your local testing computer?

More on AUTO INCREMENT can be found at:

http://dev.mysql.com/doc/refman/5.0/en/example-auto-increment.html
Copy linkTweet thisAlerts:
@ychan623authorSep 03.2010 — thanks for reply chris22. the forum table is automatically create by the forum.php the first time i run it. I did double check, both the production server and the local testing computer has the id field in auto increment and gets incremented. the thread field on the testing computer increment with each new post, the production server did not ?
×

Success!

Help @ychan623 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...