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.

    Thanks,
    Omar

  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)

    ——-
    Thanks

Leave a Reply to robee Cancel reply

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