Day: 15 May 2013
-
At finde seneste autoincrement
Kanbanens logfil skal gemme nummeret pÃ¥ sidste autoincrement i en anden tabel. Men hvordan finder man det? Løsning (inspired by this blogpost): // looking for the number of the last id increment $last = $wpdb->get_row("SHOW TABLE STATUS LIKE 'kbnQotes'"); $lastid = $last->Auto_increment -1; // adding the entry to the log $title = date('Y-m-d G:i:s') .…