Recent content by activeradio

  1. A

    PHP Updating Users

    It's another PDO question. It grabs all the details from the previous page, but it cannot update the fields. Without debugging with print_r, I get the following array. Below is the code, and the table on the previous page. print_r($username); print_r($password); print_r($email)...
  2. A

    Vending Machine (Game)

    You get a wave from the four seas I insert nothing
  3. A

    PHP Table

    There must be a reason as to why this isn't working. In case you were confused earlier, it worked when I echoed the rows into a query. When I use input boxes in a table, it doesn't.. Now this shouldn't be a problem because it's pretty much the same table, only with a different query.
  4. A

    PHP Table

    The code you gave me worked. In terms of the table, this is essentially what I have, but the input boxes are not displaying.
  5. A

    PHP Table

    It says this: session variable is: chris
  6. A

    PHP Table

    Going back to the tables, I couldn't get much when debugging this problem. I changed the prepare statement to this: $memberQuery = $db->prepare("SELECT * FROM members WHERE username=:username"); $memberQuery->execute(array(':username' => $_SESSION['username'])); $result =...
  7. A

    PHP inserting

    Sorry, I forgot to post the var dump. var_dump($memberQuery); var_dump($memberQuery1); var_dump($_POST['username']); $memberQuery and $memberQuery1 are not the same statement. The first query checks the username in the session, and the second query checks the username written on the previous...
  8. A

    PHP inserting

    I am having more problems with my Admin CP. There is a form on the previous page that sends the data here. I can't figure out why it won't add users into the database. <?php session_start(); if(!isset($_SESSION['username'])){ header("location:index.php"); } $host = 'localhost'; $database...
  9. A

    PHP Table

    I basically have a table in my Admin CP, which is suppose to display the contents from all my columns, but of course it doesn't provide me with any errors. When I implement debugging, it says: This is what I have in the first part of my code: $memberQuery1 = $db->prepare("SELECT * FROM...
  10. A

    PHP Login

    I managed to get the login working, but I have a problem with my other page. Should I just create a new thread?
  11. A

    PHP Login

    One moment
  12. A

    PHP Login

    Descalzo, so this is what happens when I use your script. I am not sure what I did, but everything is working now except for... $database = 'stencil_access'; $db_username = 'stencil_admin'; $db_password = '<censored>'; This, but I will look over what Misson said, and edit my post in a few...
  13. A

    PHP Login

    I just talked to someone about the error, and it appears that it's a connection problem. I am not sure what to do now.
  14. A

    PHP Login

    Eselllar, even if I put $DSN outside of the try block, it still results in the same errors. I did fix the database error: changed members to stencil_access. I got the same errors there as well.
  15. A

    PHP Login

    This is the problem that I am frustrated with. Condenzationator, that is exactly what I had before... After changing it to what MaestroFX1 said, similar errors. People who didn't know PDO tired to help me, but only to take me back to mySQL.
Top