ananaz Posted December 27, 2010 Share Posted December 27, 2010 Hello i want to create a comment function to my website, but im not sure which way to do it. The thing is that i have post.php script that insert a new row in my table "content" and i want 1 separate comment function for each row (that symbols a link on my website). I was thinking that i could add a new table each time a new row(link) is created on my website just by modifying post.php to create new table. But will this be the most officiant way of making a comment function or will it burden my server and slow'en it? Quote Link to comment https://forums.phpfreaks.com/topic/222720-mysql-help-in-php/ Share on other sites More sharing options...
revraz Posted December 27, 2010 Share Posted December 27, 2010 If you are looking for just a comment Column and already have an existing database, you can add just the new column if the comment pertains to a certain row already. If you are looking for just comments, like a News display, then you just need 1 table. Quote Link to comment https://forums.phpfreaks.com/topic/222720-mysql-help-in-php/#findComment-1151749 Share on other sites More sharing options...
ananaz Posted December 27, 2010 Author Share Posted December 27, 2010 Ok then i will need a table but how should i write in php to create a new table and name it after for example $name? Quote Link to comment https://forums.phpfreaks.com/topic/222720-mysql-help-in-php/#findComment-1151758 Share on other sites More sharing options...
revraz Posted December 27, 2010 Share Posted December 27, 2010 You only want one table, so just create it in phpmyadmin. Quote Link to comment https://forums.phpfreaks.com/topic/222720-mysql-help-in-php/#findComment-1151762 Share on other sites More sharing options...
ananaz Posted December 27, 2010 Author Share Posted December 27, 2010 I want separate tables (1 table for each comment function) and i want a new table to be created when a new row is created through my post.php script. For example: Link one - bla bla bla >click for comments< (comment table 1 data viewable after this link) Link two - more bla bla bla >click for comments< (comment table 2 data viewable after this link) Link three - extreme bla bla bla >click for comments< (comment table 2 data viewable after this link) post.php will add a new link and a button to a other php that should retrieve the data from the newly created table Quote Link to comment https://forums.phpfreaks.com/topic/222720-mysql-help-in-php/#findComment-1151770 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.