Quote:
Originally Posted by rogem002
try:
PHP Code:
<? if (functions->assignProject($_GET['allocate'], $_GET['ID']) == true) { header("Location: index.php"); } else { echo "SOMETHING_WRONG"; } ?>
|
There is no fault in this part of the problem. Because I can get the function to echo back $ID and $allocate with the correct values.
Problem seems to be when its actually trying to update the database. Its not actually updating it.
Still does the same thing, takes me to index.php but doesnt actually update the database.
This is ment to give someone a project from a list of ones that havent been allocated. So when it assigns it it takes it from the unallocated projects and adds it to the persons list.
Thats whats getting changed in the database. TABLES['projects']." SET assigned = '".$allocate."' well, its ment to.
I cant see anything wrong with the update sql line.
Its coming back true, but it isnt working.
Is there a way to test to see if it comes back false?
__________________
Websites Created;
warscope.com
ratepayers.org.nz
Last edited by lothop; 10-26-2008 at 09:41 PM..
|