First of all, i know this code is vulnerable to SQLi.
I have a database like this:
sid name summary details ----------------------------------