Jump to content

Mysql help in php


ananaz

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/222720-mysql-help-in-php/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/222720-mysql-help-in-php/#findComment-1151749
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/222720-mysql-help-in-php/#findComment-1151770
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.