Coder Social home page Coder Social logo

martinontcode / membership-system Goto Github PK

View Code? Open in Web Editor NEW
42.0 42.0 20.0 322 KB

Membership system written in PHP, includes registration form, login form.

License: MIT License

PHP 87.89% CSS 10.75% JavaScript 1.36%
e-mail form login membership php registration

membership-system's Issues

Registration only working for one time

Hi There,

I tested on my local server and found that the registration is only happening single time. The data is not getting inserted for more than 1 user.

Users Folder

I realize this has not been updated in 2 years and I was hoping you could still help. I am new to doing this and I am using this to create a website login. I like it and it works as is on my system but I would like to clean it up so that everything related to login and users be put on a Users folder in the root directory. So what I have done is changed the views directory to users directory. I have created a projects, reports, and schedule directories. I added this to the loginTrue.php now in the users directory.

        <a href="projects/projects.php">Projects</a><br>
        <!-- Schedule link -->
        <a href="schedules/schedule.php">Schedule</a><br>
        <!-- Reports link -->
        <a href="reports/reports.php">Reports</a><br>
        <!-- Users link -->
        <a href="users/users.php">Users</a><br>
        <!-- Profile link -->
        <a href="profile.php">Account settings</a><br>

So each folder has a new php file named after the folder. Users.php has this code.....

New
query($sql);
if ($result->num_rows > 0) {
    echo "<table style=width:80% align=center border=thick><tr><th>First Name</th><th>Last Name</th><th>Company</th><th>Email</th><th>Username</th></tr>";
    // output data of each row
    while($row = $result->fetch_assoc()) {
        echo "<tr><td>".$row["first_name"]."</td><td>".$row["last_name"]."</td><td>".$row["company"]."</td><td>".$row["email"]."</td><td>".$row["username"]."</td></tr><br>";
    }
} else {
    echo "0 results";
}
?>
</div>
Back to main

The problem is right here on the last line. When clicking the link it does go back to loginTrue.php but I lose all of the css in the header. The header is there but the formatting is off.

I understand if you are not around anymore or if you don't want to help. Again, your code works its just my understanding of how it works that is flawed :P

Thanks in advanced if you do try to help

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.