Category: even semester
Database || Old paper solution 2016
16. a) insert into users(‘Ram’, ‘12345’, ‘[email protected]’, ‘2002-01-01’, ‘m’, curdate()); b)SELECT * from users where dateOfBirth < ‘2000-01-01’; c) select categoryName from categories where categoryID not in (select categoryID from expenses)); d)select username from users where in(select userID from expenses where amount < (select amount from expenses where userID = 405)));
Continue ReadingUnit 8: Remembering Users with Cookies and Sessions
Sessions and cookies are the global storages used to store data to be persistently available all over the site. These globals can be accessed from anywhere. In PHP, there are predefined global array variables $_SESSION and $_COOKIES to contain session and cookies data, respectively. Sessions are stored in the server and the cookies are preserved […]
Continue Reading