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
problem with update function
#7
You are the man, I'm totally fine with using the query now that I understand mysql queries a little better. I have read you shouldn't pass values straight to queries, is there a benefit from using the update function over the query other than time saved?

When I say it fails I mean that there are no change to the current field! No errors though.

On the dump and die topic, I've noticed that if I create a new variable like:

Code:
$league = $db->get('leagues',array('leagueID', '=',$leagueKey));

and then immediately another

Code:
$player = $db->get('player',array('id', '=',$playKey));

I can't access the $league unless I repeat the $db->get.

Would dnd allow me to retain the information from my get?

I have managed to get all my scripts to work with query command, however I'm using alpha 3 (because I can't get alpha 4 to work) and I just realized the registration system isn't working so that's my next step.

You guys have created a great system and if I can figure out these minor problems(other than the join.php, thats really putting me through a loop. Should have tested it before I started doing everything else...) I'm confident I can use this script for my website. Once my websites done, I plan to write some tutorials for people who are less familar with php but want to use your system! So thank you again!
  Reply


Messages In This Thread
problem with update function - by lefox - 05-22-2016, 05:55 AM
problem with update function - by mudmin - 05-22-2016, 04:02 PM
problem with update function - by lefox - 05-22-2016, 04:40 PM
problem with update function - by mudmin - 05-22-2016, 04:42 PM
problem with update function - by lefox - 05-22-2016, 05:26 PM
problem with update function - by mudmin - 05-22-2016, 05:37 PM
problem with update function - by lefox - 05-22-2016, 05:58 PM
problem with update function - by lefox - 05-22-2016, 05:59 PM
problem with update function - by mudmin - 05-22-2016, 06:54 PM
problem with update function - by lefox - 05-22-2016, 07:28 PM
problem with update function - by mudmin - 05-22-2016, 07:43 PM
problem with update function - by lefox - 05-22-2016, 08:22 PM
problem with update function - by lefox - 05-22-2016, 08:29 PM
problem with update function - by mudmin - 05-22-2016, 08:34 PM
problem with update function - by lefox - 05-22-2016, 09:06 PM
problem with update function - by mudmin - 05-22-2016, 09:34 PM
problem with update function - by mudmin - 05-22-2016, 09:45 PM
problem with update function - by mudmin - 05-22-2016, 10:23 PM
problem with update function - by mudmin - 05-22-2016, 11:01 PM
problem with update function - by lefox - 05-23-2016, 06:42 PM
problem with update function - by mudmin - 05-23-2016, 07:02 PM
problem with update function - by lefox - 05-23-2016, 07:17 PM
problem with update function - by mudmin - 05-23-2016, 07:42 PM
problem with update function - by brian - 05-23-2016, 08:04 PM
problem with update function - by mudmin - 05-27-2016, 01:33 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)