Bless you brother,, thanks so much for the work you put out. Is there anywhere you post more detailed content or some resources that can help me learn to build from start to finish ? i would really appreciate that . I stole the link for your Christian music by the way ....lol
Thanks! This video is actually part of my playlist for building the site from scratch -> ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-AjqxP67qoFU.html
hi Justin, I have a question: in your table you're adding 0 and 1 manually , by hand. Is there a way to add them programmatically, when you're filling out the form?
Hello, I see you wrote 'user_info' in one of the $_SESSION however, where is user_info in the database? I see 'user_level', but not 'user_info'. I ask because I need assistance with writing admin privileges for certain users. If you are able to help I would appreciate it
Yeah, my Easy, Code Is playlist contains tutorials for everything I have coded on easycodeis.com. Here is the playlist ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-AjqxP67qoFU.html
at 4:57, you put $_SESSION['user_info']['user_level'] ... is there another way to write this? I keep getting a fatal error, I've looked into it a bit and it seems like the issue is stemming from the PHP version.
Hey, I have a problem it says ' Warning: Illegal string offset 'user_level' what could this mean? ``` define('USER_LEVEL_ADMIN', '1'); function isAdmin() { if (isset($_SESSION['usersUserId']) && $_SESSION['usersUserId'] && USER_LEVEL_ADMIN == $_SESSION['usersUserId']['user_level']) { return true; } else { return false; } } ```
Your "$_SESSION['usersUserId']['user_level']" is not being set. The only reason for this is probably because you don't have that column in your database.
currently having a problem with isset if ( !isset($_POST['username'], $_POST['password']) ) { // Could not get the data that should have been sent. exit('Something Went Wrong!'); } this causes my problem and idk how to fix it pls help