diff options
author | habeascodice <habeascodice@users.noreply.github.com> | 2015-03-08 16:51:42 -0700 |
---|---|---|
committer | habeascodice <habeascodice@users.noreply.github.com> | 2015-03-08 16:51:42 -0700 |
commit | f7d1fb9c5a9f34b27f362b34782671cedb048649 (patch) | |
tree | 8058603591120745fc957f1b6149f0d70553199b /doc | |
parent | b0f8d7f0db4fff8b6853c923189cb33f8ce5b645 (diff) | |
parent | c6d45858bb73c0f3765fcc7257ed1347d6de1577 (diff) | |
download | volse-hubzilla-f7d1fb9c5a9f34b27f362b34782671cedb048649.tar.gz volse-hubzilla-f7d1fb9c5a9f34b27f362b34782671cedb048649.tar.bz2 volse-hubzilla-f7d1fb9c5a9f34b27f362b34782671cedb048649.zip |
Merge pull request #920 from dawnbreak/master
Add alert to admin page about old PHP version. Fixing (un)blocking accounts in admin.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/sql_conventions.bb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/sql_conventions.bb b/doc/sql_conventions.bb index 2deb3cff6..f6a4e251f 100644 --- a/doc/sql_conventions.bb +++ b/doc/sql_conventions.bb @@ -56,7 +56,11 @@ $r = q("SELECT * FROM mail WHERE uid=%d AND $sql_extra ORDER BY created DESC LIM [b]NULL dates[/b] [li]To be written -[code]Example[/code][/li] +[code]// Example +$r = q("DELETE FROM mail WHERE expires != '%s' AND expires < %s ", + dbesc(NULL_DATE), + db_utcnow() +);[/code][/li] [b]Storing binary data[/b] [li]To be written |