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
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.