Updates from October, 2016 Toggle Comment Threads | Keyboard Shortcuts

  • yalamber 3:15 pm on October 18, 2016 Permalink | Reply
    Tags:   

    import dump form one db to another.

    mysqldump --opt --user=<user> --password=<password> <original database> | mysql --user=<user> --password=<password> <new database>
     
  • yalamber 8:47 pm on October 16, 2016 Permalink | Reply
    Tags:   

    $i=0;
    $wrap_count = 4; // you can change this no of divs to wrap
    foreach ($categories as $category) 
    { 
        $i+=1;
        if($i%$wrap_count==1)
        {
            echo '<div class="row">';
        }
    ?>
        <div class="col-lg-3 col-md-3">.....</div>
    <?php 
        if($i%$wrap_count==0)
        {
            echo '</div>';
        }
    } 
    
    if($i%$wrap_count!=0)
    {
        echo '</div>';
    }
    
     
c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel