Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Everything posted by chhorn

  1. Espacially this: https://phpdelusions.net/pdo#fetch as it looks like you have mostly anything else. Also have a look at print_r(), var_dump(), htmlspecialchars(), Template Engines and XSS (cross site scripting).
  2. I don't see anything that is related to image manipulation in your code. You may want to read this: https://www.daveperrett.com/articles/2012/07/28/exif-orientation-handling-is-a-ghetto/
  3. More important: What did you try to solve it?
  4. Store the session somewhere you have exclusive control of. Solutions are alreaday mentioned here.
  5. If you want some lightwight and simple to get started, you could even have a look at Notepad++
  6. 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 ]);
  7. $sql is just the string, within the code you are not even running the SQL statement with query().
  8. The data in the script-tag won't update every second, you have to call the PHP-script every second.
  9. You find 500 errors in the error.log on the webserver's machine.
  10. Oh yeah, your database will be deleted then. Hint: Use Prepared Statements.
  11. Nothing will happen as you do not use any variable - except for $row what will raise an undefined variable/undefined index error. didn't you even try this yourself?
  12. 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.
  13. And what's the problem then? You use template variables that are different from what the template expects, so you have to change your variable names according to the template - like the ones you commented out - or you change the template.
  14. What does HTML/JS have to do with composer? what is "connecting" to an application? What should "but cannot get composer to do it." mean?
  15. and what type is parameter 1? Check with var_dump().
  16. chhorn

    Using # on Unix

    This looks totally mixed up right not really, this is just a guess from you 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. And the syntax for a URL is documented: https://en.wikipedia.org/wiki/URL#Syntax
  17. better for what? what are the specific features you need and what did you find out by comparing them to both applications?
  18. I don't understand what you want, post a reproducible example.
  19. You have to read the data before encoding it.
  20. 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.
  21. 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.
  22. 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.
  23. And if someone wants to read the ongoing discussion: https://www.phphelp.com/t/register-form-won-t-work/29551/13 I don't see how you expect people to help without code, or code that does not include the error message.
  • 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.