Jump to content

javiqq

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

javiqq's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? I am having a really annoying issue with MRBS(room booking PHP application that works with MySQL). I was able to set the application up on the server and create databases/tables for it in MySQL successfully and the application is connecting to the database server (MySQL) successfully. However, I want to use the authentication feature it has called 'db' but it's not recognizing the user I created. When I click on "User List" from the application itself it allows me to enter the very first user, which from my understanding has to be a username defined as an administrator with-in MRBS. SOooo that's what I do and right after it says: "You do not have access rights to modify this item". Then when I try to log in as the user (administrator) that I created, it tells me the same thing!!!! But when I check the MySQL database, it created the table with-in the database successfully AND it created user "administrator" successfully. I don't get it!! I've been trying to figure this out all week and today. So please, if anyone understands what steps I need to take to make this work properly, help me. These are the instructions provided with the application: DB Authentication ------------------- Authentication method, usable on the Internet. Works only with Mysql, will be implemented for Postgresql in an upcoming release. It works by storing the list of users in a new table called mrbs_users in the mrbs database. The authentication is done by the new module auth_db.inc. Enable it by setting $auth["type"]="db" in config.inc.php. Note: The names of administrators are still defined as usual by the $auth["admin"][] list in config.inc.php. The list of users is displayed by clicking on the new "User list" link in the logon box in the top banner. This list is managed by module edit_users.php. Administrators have the right to edit every entry, and add or remove users. Simple users only have the right to edit their own entry. The first time it is accessed, the mrbs_users table is automatically created. *** WARNING *** Whoever is doing the initial edition is assumed to have administrator rights AND MRBS USE "administrator" username. BE CAREFUL TO HAVE THIS ADMINISTRATOR DEFINED IN CONFIG.INC.PHP, OTHERWISE YOU WON'T BE ALLOWED TO ENTER THE FIRST ADMINISTRATOR BELOW. After this step, you can remove the 'administrator' in config.inc.php. *** END OF WARNING *** The first user he creates MUST be an administrator, already defined in config.inc.php. Note: There are two predefined ones, called "administrator" and "127.0.0.1". Once this initial user/administrator is defined, it's necessary to log on using its name to create more users. Also available @: http://mrbs.sourceforge.net/AUTHENTICATION.html If anyone can help, I would appreciate it very much.
  2. Someone in the school will be incharge of deleting some, if not all, students that graduated highschool. The sql query and php script is bringing up the list of those graduates fine, however the list is way to long. To be efficient I'm trying to make that list populate inside a textarea field instead. Also the person incharge should have the ability to select from the list inside the textarea the student(s) they want to delete.
  3. Solon don't worry about the delay. I appreciate the time you're taking to help me. Thank you very much. Unfortunately the code you posted didn't work. I tried the following but it didn't work either: :-\ <?php $query = "SELECT re_first_name, re_last_name FROM rebels WHERE re_status_id_fk =3"; $result = mysql_query($query); if($list=1){ while($row = mysql_fetch_assoc($result)) { echo " ".$row[re_first_name]." ". $row[re_last_name]." "; } }else{ echo "The script isn't working properly"; } ?> <form action="delete_selected_user.php" method="post" enctype="multipart/form-data"> <textarea cols="80" rows="7" name="list_rebels" wrap="virtual"><?php print $row[re_first_name]; print $row[re_last_name];?></textarea> <input type="submit" value="Delete selected users"> </form>
  4. Hey Solon, that worked nicely. Thanks! But after the list came up I noticed its too long. Is there a way I can have the names show up within a textarea field?
  5. I'm newbie to PHP and trying my best to learn on my own and take some courses online but currently I'm working on a website that stores information about students and their status. I need to create a link that goes to a PHP page with a script that generate the list of students with the ability to delete them if necessary. I've been trying to achieve this all morning by trying to first get the list generated but with no positive results. ??? ??? ???can anyone help?? This is the code I currently have (I don't even know if it's really doing what I'm aiming for): <?php $query = "SELECT re_first_name, re_last_name FROM rebels WHERE re_status_id_fk =3"; $result = mysql_query($query); if($_POST['list=1']){ while($re_first_name, $re_last_name) = $row = mysql_fetch_assoc($result) { echo "Name: ".$re_first_name, $re_last_name; } }else{ echo "The script isn't working properly"; } ?> The link to the page with the code above looks like this: a href="delete_graduate_students.php?list=1" Can anyone help please??? ??? ??? ???
×
×
  • 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.