Jump to content

SprigusK

New Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by SprigusK

  1. I actually started to use laravel in like 2016 when I attempted to build a Virtual Pet site, and I loved it. I had a programmer help setup a github and he helped setup some program that pushed the project live with SSH? or Something I forget. I designed the site locally and pushed it live. I have no clue how to do any of that stuff, I'm pretty much new to a lot of things and was told learning PHP purely first was a better choice then start with a framework. Do you think someone who doesn't really understand php enough should start with a framework? I'm sort of building a site similar to a Pet site now but not really. I haven't gotten too far in my development to change the setup yet, but pure php would help with structure learning and things.
  2. Thanks very much. I'll give this a shot.
  3. If I am reading that line right, you are saying the 2nd table should be ID and Perm only. And every new Perm the user gets will show as: ID Perm 1 isStaff 1 isAdmin 2 isStaff 2 isMod 1 editNews User 1 is a Staff, Admin, and has ability to Edit News. User 2 is Staff and is a Mod. is that correct? Any sorry ahead of time if I misunderstood. Im very new to database tables. Also, do you know how to link the 2 tables? Do i just create a relationship between Primary u.id and foreign key p.id?
  4. Hi, so I have a database with 2 Tables. 1 table is called Users and 2nd is called Perms. Inside table 1, I have ID, Username, Email, Password etc etc. Inside table 2, I have isStaff, isAdmin, isMod, etc etc. Im trying to connect the user in table 1 to the permissions they have in table 2. ID 1 of Users table Should connect to ID 1 of Perms table. How do I do this in phpmyadmin? After that is done, how would I check if the user has a permission. My Idea is to place on the page a if statement that does something like check if the user viewing the page has permission and if true echo the page, and if not, redirect them to another page.
  5. Hello everyone! I'm not sure how active this site is, but I was told I can get a lot of help here from expert PHP people. My name is SprigusK, but you may call me Sprig. I have been interested in coding since my days back when I used myspace. All the layouts and things you could do blew my mind. I started my coding life by getting a free website from a website that allowed me to downgrade from their template service to raw coding. Anyways, i continued to learn how to make awesome webpages using Html/CSS. I could make any page/site look totally awesome, but that Login button wasnt going to ever work. I went on a real life hiatis for many years and I'm trying to get myself back into coding and learning much more Back end then Front. I am currently working on a New Website using: Html/Css/Js/and Php. I'm hoping to find some helpful people here to help guide me in the right direction. For the sake of trying to know my knowledge. Let's pretend I NEVER seen a php code in my life. Now this isn't true as I've built a registration system on my site using a tutorial and it works great, but it is more likely because i followed the Tutorial rather then knowing why it works. I can sort of Read what is happening in the code but not sure i understand why. Anyways, I look forward in finding new friends and helpful mentors in my journey to master coding. +1 if you took time to actually read that.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.