Note that there are some explanatory texts on larger screens.

plurals
  1. POcreate mention like twitter or convore with php
    primarykey
    data
    text
    <p>hello im just curious. about how they do stuff. what i assume they do something like this</p> <pre><code>@someone1 im stacking on stackoverflow RT @someone2 : hello guys what are you doing? </code></pre> <p>before i do it in my way i want to tell you about my database scheme</p> <pre><code>// CID = COMMENT ID, BID = BLOG ID, UID = USER ID CID BID UID COMMENT 1 1 1 @someone1 im stacking on stackoverflow RT @someone2 : .... 2 1 4 @someone1 im stacking on stackoverflow RT @someone2 : .... 3 1 12 @someone1 im stacking on stackoverflow RT @someone2 : .... </code></pre> <ol> <li><p>they use regex to do like this to take the @someones name</p> <pre><code>preg_match_all("/@[a-zA-Z0-9_]+/", $text, $matches); </code></pre></li> <li><p>then they get the @ off each name</p> <pre><code>foreach ($matches as $value) { foreach ($value as $value) { $usernames[] = substr($value, 1); } } </code></pre></li> <li><p>then they get the UID from the database from doing something like this</p> <pre><code>foreach ($username as $value) { # insert database one by one ? so it will be like the example above } </code></pre></li> </ol> <p>then we can just output the comment buy geting the UID.</p> <p>then somhow we can get all the comments in the blog. ( without a same comment ) <code>where blog buid = 1</code> and give them an notification on every user by <code>where uid = :uid</code>.</p> <p><strong>is there any better way doing this ? something like twitter or convore ?</strong></p> <p>Thanks for looking in</p> <p>Adam Ramadhan</p>
    singulars
    1. This table or related slice is empty.
    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.
    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