Inserting username password to database n validating them in php
This is all working perfectly, however, I now need to add a delete button so that they can delete specific items.I have loosely followed this tutorial here to get the table to display as I want it (amongst a few other things, such as the user logins) added the delete button in the PHP loop for each row, I just can't figure out how to delete the specific row when clicked.However in the registration the user enters info such as their phone and email.How can I access these two fields of info from the user who is currently logged in.Hi Guys, I am fairly new to my SQL/PHP and I have an issue.I have a login/registration system for a website and it works.I'm a PHP/My SQL beginner and I really need some help.
I am quite sure there is a simple solution that is escaping me. I'm a newbie so sorry if this isn't the best forum to post my problem. I will use fictional fields for my database table called meal_info: username date Started Diet number Meals Per Day cost Per Meal Problem: Select user-specific data from the My SQL database, using Session username to select only the current user's data, then display it and do some calculations. I also have a form that users provide information and it is successfully inserting data into a table in my database. I also have a form that users provide information and it is successfully inserting data into a table in my database.Code: [Select] $link = mysqli_connect('#####', '########', '########'); $user = $_SESSION['username']; $email = mysqli_query($link,"select email from members where username='$user'"); echo $email; Specifically, I am trying to get the email address stored for the user specified by the session, and display that address.However, I do not get any output with the current code, and am not sure what to try next. I don't know how to do this and I tried but there were no satisfied results..