The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DB.php edits by Faguss
#1
EDIT: I've changed this topic to be a list of things I've added instead of just about one function.

====

https://pastebin.com/Jp2EbDTw
Based on the version by @plb . My changes to his code are listed there.

30 - charset=utf8 added because of this issue

50 - results are cleaned before every query

195 - delete() won't work if argument is empty

204-221 - insert() can add multiple records

202, 223-232 - added optional argument for insert() so that it can update records on duplicate id

238 - column names are wrapped in grave accents in update()

239-252 - optionally condition array may be passed to update() instead of record id

265 - added optional argument for first() which works in the same way as for results() (aka returns array instead of an object). Also if there are no results the function will return empty array.

300-309 - added cell() for getting single field out of first record
  Reply


Messages In This Thread
DB.php edits by Faguss - by faguss - 06-06-2017, 01:31 PM
DB.php edits by Faguss - by mudmin - 06-06-2017, 07:08 PM
DB.php edits by Faguss - by faguss - 06-22-2017, 05:27 PM
DB.php edits by Faguss - by faguss - 07-14-2017, 11:13 AM
DB.php edits by Faguss - by picassoo - 07-16-2017, 06:58 AM
DB.php edits by Faguss - by faguss - 07-16-2017, 07:29 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)