Skip to main content
added 56 characters in body
Source Link
MARS
  • 5.2k
  • 3
  • 14
  • 23

db.execute always returns an array, you can always print to the console to see its content, if your intention is to debug. If what you want is to warn the user, simply check that result is not null and return the warning:

if not result:
    return apology("You have not......")

for example in the case where apology.html exists.

db.execute always returns an array, you can always print to the console to see its content, if your intention is to debug. If what you want is to warn the user, simply check that result is not null and return the warning:

if not result:
    return apology("You have not......")

db.execute always returns an array, you can always print to the console to see its content, if your intention is to debug. If what you want is to warn the user, simply check that result is not null and return the warning:

if not result:
    return apology("You have not......")

for example in the case where apology.html exists.

Source Link
MARS
  • 5.2k
  • 3
  • 14
  • 23

db.execute always returns an array, you can always print to the console to see its content, if your intention is to debug. If what you want is to warn the user, simply check that result is not null and return the warning:

if not result:
    return apology("You have not......")