The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/printthread.php(287) : eval()'d code 2 errorHandler->error
/printthread.php 287 eval
/printthread.php 117 printthread_multipage



UserSpice
Error reporting for DB queries - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Miscellaneous (https://userspice.com/forums/forumdisplay.php?fid=28)
+--- Forum: Off-topic Discussions (https://userspice.com/forums/forumdisplay.php?fid=10)
+--- Thread: Error reporting for DB queries (/showthread.php?tid=231)

Pages: 1 2 3


Error reporting for DB queries - Katronix - 09-03-2017

$pos1 = Input::get('pos1');
$pox1 = array('posname',$pos1);
p1 = $db->insert('position',$pox1);


Error reporting for DB queries - mudmin - 09-03-2017

That array needs to be formatted like this

Code:
$pox1 = array(
Code:
'thisIsTheColumnNameInTheDatabase' => $pos1
Code:
);

Code:
$db->insert('position',$pox1);