|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
forums
im making a forum script and when someone creates a new topic i dont know how to have the topic id equal to the id =[ any suggestions
|
|
#2
|
|||
|
|||
|
ehh? I am thinking you may need to clarify your question just a bit.
__________________
-- Jason |
|
#3
|
|||
|
|||
|
there is one table that holds both the topics and the posts...when the user makes a post the topicID has to equal to the id in order for the post to display...i cannot seem to get the topicID to be equal to the id of that row =] hope that clears things up
|
|
#4
|
|||
|
|||
|
hmm,....
I would not do it this way,....here is why. you can store topics and posts in 1 table, however you will have columns with a NULL value. this will be your topic entry's. what I would do is make a table for topics only. Then when a user makes a post, the topic_id of the post will be auto_increment ID from the topics table. make sense? |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > forums |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|