Note that there are some explanatory texts on larger screens.

plurals
  1. POCoding structure for an activitylist
    primarykey
    data
    text
    <p>Following from <a href="https://stackoverflow.com/questions/6892613/php-way-coding-method-to-do-activitylist-log">Way/coding method to do activitylist/log</a> </p> <p>I worked with the accepted answer on above question, by having two tables one for the descriptions of the activities, and other for the activities themselves..</p> <pre><code>table: activitylist Columns: id, description, date table: activities Column: id, aID, uID, date </code></pre> <p>aID is activity id, uID is user id. activity id is the id in table ´activitylist´</p> <p>I can now output:</p> <pre><code>person ate another persons apple </code></pre> <p>As this text is non-personal and can be used to all..</p> <p>What if i would like to output:</p> <pre><code>Michael ate Peters apple </code></pre> <p>(example)</p> <p>That will require to split up in the description/text? </p> <p>I thought of that you would need to include the uIDs of Michael and Peter somewhere, but where? And how should i work with that splitted description?</p> <p>I mean i cant make a row in table activitylist with description: "Michael ate Peters apple" as im trying to make these descriptions universal so it could be Adam and Julia instaed of michael and peter..</p> <p>Hope you understand, please comment if questions..</p> <p>Update: Conclusion:</p> <p><strong>Theres a activity list that shows all activities done on the page, that all users can see. Then i wish to show an activity as "Mike has commented on Peters photo". How can i make an activity description when it includes users (this case: Mike, peter)</strong></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload