Dang PHP



  • ok I'm going mad soon, grrrrrr. I have a database

    id, username, password, chief_id, date etc

    in dashboard, i am trying to print "chief's name" to the page but I can't. How can I define chief_id into a variable? so i can make another SQL query and get chief's username by his/her id.

    Another way is make another field and store chief's name as well. But in that way I stucked on registration form, because I used while loop to select/option dropdown menu, so it picks only id number as value.

    It has been one and half hour since I start to solve this problem, blahhhh



  • nvm i solved 🙂