PHP-MySql: Select previous row and next row from current ID

Published by Miaz Akemapa

Book minded!!!

Reader Comments

  1. Hi,

    I’m kind of new with the SQL queries and your post really helped me. It was exactly what I was looking for.


  2. Hi,
    how can i perform this operation on 3 columns in php ?

    Sr A B C

    1 200 100 1000
    2 300 0 700

    C2 = C1 – (A2 + B2)


Leave a Reply

Your email address will not be published. Required fields are marked *