Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/23/2021 in all areas

  1. Welcome aboard, You are never too old to learn and do something that you like doing. I'm 57 years old and teaching myself Django as I am like Python3 for the simplicity of coding. Uselessness is something that isn't in a coder's vocabulary.
    1 point
  2. I have come to the conclusion, he wants us to run his code, test it and debug it. The language barrier is also probably contributing to it. I looked at the code, which is pretty simple. It might actually work, if the database is available. Probably there is a database connection problem, and OP is just not seeing the error messages as gw1500se suggested helpfully in an earlier post, might be remedied with error_reporting and possibly turning the errors on during development.
    1 point
  3. Your first attempt at using PDO with named parms was better. What you left out was the array of those parms being assigned to real values. Instead of using the ? marks, get used to using the :name like you did the first time. Then assign an array like this: $parms = array( 'name'=>$name, 'id'=>$id, ... ... ); $stmt->execute($parms); Much easier to read later on when you are doing maintenance as well as now when you are debugging.
    1 point
  4. $stmt = $db->execute( ... ) should be $stmt->execute( ... )
    1 point
This leaderboard is set to New York/GMT-04:00
×
×
  • 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.