存在行我想PHP頁面上顯示不同的信息的基礎上,在MySQL錶行檢查在MYSQL
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
需要在這些情況下寫SQL幫助值。
由於提前,
你發佈的SQL有什麼問題?它看起來像會工作。 – ceejayoz
@ceejayoz,它不,只有100%正確的語法工作。這是74.3%正確的:-)。 – Johan