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
/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 TO MULTIPLE DB
#4
What is and is not working? Your insert query to table 1 is put your query to table 2 isn't? Is it just missing some of the columns? You could set all of your columns to default of NULL so the insert won't fail and you can find out possibly where the query is going wrong.

If your table 2 query is not working, I am wondering if this is the issue: $pro_id = Input::get('newProId');

You've already defined a variable as newProId, and then you are doing it again, personally I would bypass this as you are just making more work for your script.

And updating - is this separate page, same? Is everything going to be inserted already? If so - check out the DB Class documentation in the update section:
https://userspice.com/documentation-db-class/

Best of luck and let me know if you need anything else, I will do the best I can to help!
  Reply


Messages In This Thread
INSERT TO MULTIPLE DB - by picassoo - 06-12-2017, 05:27 AM
INSERT TO MULTIPLE DB - by firestorm - 06-12-2017, 07:46 AM
INSERT TO MULTIPLE DB - by picassoo - 06-12-2017, 05:46 PM
INSERT TO MULTIPLE DB - by Brandin - 06-13-2017, 12:42 PM
INSERT TO MULTIPLE DB - by picassoo - 06-13-2017, 05:50 PM
INSERT TO MULTIPLE DB - by Brandin - 06-13-2017, 07:13 PM
INSERT TO MULTIPLE DB - by picassoo - 06-14-2017, 01:45 AM
INSERT TO MULTIPLE DB - by Brandin - 06-14-2017, 01:50 AM
INSERT TO MULTIPLE DB - by picassoo - 06-14-2017, 02:02 AM
INSERT TO MULTIPLE DB - by Brandin - 06-14-2017, 12:46 PM
INSERT TO MULTIPLE DB - by picassoo - 06-14-2017, 04:52 PM
INSERT TO MULTIPLE DB - by Brandin - 06-14-2017, 06:43 PM
INSERT TO MULTIPLE DB - by picassoo - 06-16-2017, 02:36 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)