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
how to prepare?
#3
Thanks!

I just went with query() eventually which worked.

The abovePasted code worked just fine until I tried to use the usespice db instance. Doing it the way you showed is probably a good idea. I was using bindParam hoping to conveniently change vars and write multiple rows to my database. Something like.


$fff = 1;
$query->execute();
$fff = 2;
$query->execute();
$fff = 3;
$query->execute();
etc

From what I understand (which isn't much) you get to bind a value only one time then are stuck with it.

Going to give your suggestion a try when I have time.
  Reply


Messages In This Thread
how to prepare? - by gaby de wilde - 04-01-2017, 10:24 AM
how to prepare? - by karsen - 04-04-2017, 11:24 PM
how to prepare? - by gaby de wilde - 04-06-2017, 09:35 PM
how to prepare? - by mudmin - 04-07-2017, 11:03 AM
how to prepare? - by Brandin - 04-08-2017, 01:53 PM

Forum Jump:


Users browsing this thread: 4 Guest(s)