i would like to display different messages on php page, based on value in mysql table row
if (Select * from subscription_details where student id=session id of student) count = 0
message: Please sign-up for a subscription package
else if
(select * from subscription_details where ((student id = session_id of student) count > 0) AND ((status=active) count < 1)
message: Your subscription has expired, please renew subscription
need help with writing the SQL in these scenarios.
Thanks in advance,