Ok I have done that, it still didn't change the values in my database. here is what i got.
this is all of the stuff in "RUN:"
C:\xampp\php\php.exe C:\xampp\htdocs\kryppienation\admin\changemotivation.php
it opens the php.exe CLI but it's not reading the file... i also tried:
C:\xampp\php\php.exe changemotivation.php
when i did this i made sure that the changemotivation.php and the included db.php were in the c:\xampp\php folder.
didn't work either
Thanks.
here is the code in the php file.
Code: Select all
<?php
include_once('../includes/db.php');
$setmotivation = 'update knusers set motivation = "200"';
DB::connect($DB_database);
DB::query($setmotivation, "Name of query for error handling");
DB::close();
?>