Managing Guest Users and registered Users

I am developing a website for online food order and i want to manage two type of users 1.registered users those who can subscribe for monthly packages and plans 2.guest users those who can visit and order food for that particular time without registering i want to know how can i manage this in my database and in php.