Skip to main content

Nice Thought

  1. Never expect things to happen. struggle and make them happen. Never expect yourself to be given a good valuecreate a value of your own
  2. If a drop of water falls in lake there is no identity.But if it falls on a leaf of lotus it shine like a pearl.so choose the best place where you would shine
  3. Falling down is not defeat...Defeat is when your refuse to get up
  4. Ship is always safe at shore...But is is not built for it
  5. When your successful your well wishers know who you are when you are unsuccessful you know who your well wishers are
  6. It is great confidence in a friend to tell him your faults; greater to tell him/her
  7. To the world you might be one person, but to one person you just might be the world
  8. Even the word 'IMPOSSIBLE' says 'I M POSSIBLE'
  9. Always Aim high for the best, but also be prepared for the worst
  10. Effort is important, but knowing where to make an effort in your life makes all the difference

Comments

Popular posts from this blog

Set Multisite in drupal

For Linux 9.10 Please Follow the steps : 1) Extract the drupal in public html folder or any other folder.(say exampleDrupal). 2) Add below lines to exampleDrupal/sites/sites.php     $sites['site1.test'] = 'site1.test';     $sites['site2.test'] = 'site2.test'; 3)  Create two folders in exampleDrupal/sites/ folder.       as site1.test & site2.test.      OR      Using terminal run following commands :      i)  cd example.com/sites      ii) mkdir site1.test/ site2.test/ 4) Copy the default.settings.php file from  exampleDrupal/sites/default to site1.test &  site2.test folder.     OR      Using terminal run following commands :       i) cp default/default.settings.php site1.test/settings.php       ii) cp default/default.settings.php si...

To get pager on page

Use of pager query :   Drupal 4.6 - 6 :  pager_query($query, $limit = 10, $element = 0, $count_query = NULL) Perform a paged database query. Use this function when doing select queries you wish to be able to page. The pager uses LIMIT-based queries to fetch only the records required to render a certain page. However, it has to learn the total number of records returned by the query to compute the number of pages (the number of records / records per page). This is done by inserting "COUNT(*)" in the original query. For example, the query "SELECT nid, type FROM node WHERE status = '1' ORDER BY sticky DESC, created DESC" would be rewritten to read "SELECT COUNT(*) FROM node WHERE status = '1' ORDER BY sticky DESC, created DESC". Rewriting the query is accomplished using a regular expression.  $output1 .= theme('pager',null, $count, 0); This is used to get the number. We can use this pager query in "Custom Search...