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
INSERT variabile
#5
Ok. So help me figure out where you are stuck. Obviously without your database, I can't see everything, but I can tell you how I would start to solve it.

1. Double check that all your database columns have the right format. If one field is formatted improperly, the insert will fail.

The thing that sticks out to me is that you are dealing with dates. So, if your database is listed as datetime, look at how it is formatted. Is it something like this 2016-09-30 10:00:00 in the database if you add it manually? After you look at it, add
dnd($post_time);
right after the line...
$post_time = Input::get('post_time');
to make sure the time you're posting is in the right format. Otherwise, you need to do some date and time conversions.

2. I see you are doing multiple inserts. Are any of them working? Which one are you getting stuck on?

3. Also, feel free to comment out all your validation. I almost never add the form validation until I'm sure that the entire query works.

4. I use dnd() and die() a lot to figure out how far I made it through the process. So after an insert, I'll do die("Made it to step 3"); to figure out where things went wrong.

  Reply


Messages In This Thread
INSERT variabile - by picassoo - 11-27-2016, 07:08 PM
INSERT variabile - by mudmin - 11-27-2016, 08:06 PM
INSERT variabile - by picassoo - 11-29-2016, 08:56 PM
INSERT variabile - by picassoo - 11-29-2016, 08:58 PM
INSERT variabile - by mudmin - 11-30-2016, 01:58 AM
INSERT variabile - by picassoo - 11-30-2016, 10:13 AM
INSERT variabile - by picassoo - 11-30-2016, 12:07 PM
INSERT variabile - by mudmin - 12-01-2016, 01:07 AM
INSERT variabile - by picassoo - 12-01-2016, 09:04 PM
INSERT variabile - by mudmin - 12-01-2016, 09:10 PM
INSERT variabile - by picassoo - 12-02-2016, 04:55 PM
INSERT variabile - by dan - 12-02-2016, 05:05 PM
INSERT variabile - by picassoo - 12-02-2016, 05:32 PM
INSERT variabile - by dan - 12-02-2016, 05:34 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)