in reply to if statement problem using mysql
while (@option - $sth1 ->fetchrow_array()){ ^ [download]
Is this a typo?
Dear Eliya, No it wasn't a typo. I don't know why but I thought it was the correct form. I changed the '-' to '=' and worked as intended. Thank you very much for scanning my code and finding out the error. You guys here in perlmonks are lifesavers!