Jump to content

chhorn

Members
  • Posts

    115
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by chhorn

  1. If you get the error "call to a member function xy on bool" in context of database queries you can (mostly) think of an error within your sql statement. On your development machine you should always enable throwing errors:

    $pdo = new PDO('mysql:host=localhost;dbname=someTable', 'username', 'password', [
      PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION
    ]);

  2. Your statement is incomplete for the lack of all those variables and the missing database abstraction layer, also you're just "select *"-ing without any reference to your table layout - so how do you expect someone to reproduce your problem?

    Just make an encapsulated mockup with sqlite in memory (<- searchterm) that holds a complete example. You can output any data with `var_dump()` to see which column of the result you must refer to.

  3. This looks totally mixed up

    Quote

    Hi this is not a PHP problem

    right

    Quote

    it is a unix/linux problem

    not really, this is just a guess from you

    Quote

    I have been going through my banking website

    what "banking website"? As you don't seem to be firm with the technology, i would think it's not YOUR website, more like the website of the bank you are customer at.

    and the website is accessed via URL - that has plain nothing to to with any "folder" as i think you mean from a filesystem - except that there's a common fallback.

    Quote

    and found a folder /#/login

    And the syntax for a URL is documented:

    https://en.wikipedia.org/wiki/URL#Syntax

    • Like 1
  4. just follow up the code:

    as this

    The Following Fields are Missing

    is caused by tis

    $runRestofForm == false

    this assignment must hit

    $runRestofForm = false

    because of this condition

    if (is_null($_POST[$requiredFields[$i]]) || $_POST[$requiredFields[$i]] == "")

    so you can have a look at

    var_dump($_POST);

    and see what is missing.

  5. Storing personalized info could lead to a way more complex system as he's in need of authentication, authorization and other security related stuff and legal issues - i don't see that this infrastructure already exists anywhere. A plain encode/decode tool is much simpler, and it's just glueing some libraries together.

  6. And what happens if you try editing your posts? At least you can see that posting screenshots is nearly unusable for any development tasks like debugging.

    You already said you get an error message: "fields are not filled in", so search for it in your files to get the related code part.

×
×
  • 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.