title: How can I get first 5 and last 1 records from table mysql?
body: <p>I'm working on php small project, here I need first 5 records from beginning of records and last record 1 from end of the table's record. I don't know how to write a single mysqli query.
  Any help will be appreciated. Thanks in advance.</p>