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?
#2
It sounds like you are getting an error from your query, and since it is printing out the error text before your HTML it is throwing off your page. Your current query is binding the parameters before you set the variables, so if you move your variables up before the binding it should work.

https://pastebin.com/rDt9MQ8C

I also included an example of using the Input class to grab your variable out of $_POST. It sanitizes it so it's safe to display, insert into database, etc.

Test this out and let me know how it goes!
  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: 3 Guest(s)