<?php
if (isset($_POST["AddTaskButton"]) || isset($_POST["AddTaskButton_x"])) {
$InsertQuery = new WA_MySQLi_Query($Old4thDB_i);
$InsertQuery->Action = "insert";
$InsertQuery->Table = "tasks";
$InsertQuery->bindColumn("tasksName", "s", "".((isset($_POST["addTaskName"]))?$_POST["addTaskName"]:"") ."", "WA_DEFAULT");
$InsertQuery->bindColumn("tasksDescription", "s", "".((isset($_POST["addTaskInformation"]))?$_POST["addTaskInformation"]:"") ."", "WA_DEFAULT");
$InsertQuery->saveInSession("");
$InsertQuery->execute();
$NewRecordID = ""; //Possible add variable for mysqli
// ERROR LINE
$InsertGoTo = "portalindex.php?loc=tasks&id=tasks_details&recordID=" . mysql_insert_id() . "";
//
if (function_exists("rel2abs")) $InsertGoTo = $InsertGoTo?rel2abs($InsertGoTo,dirname(__FILE__)):"";
$InsertQuery->redirect($InsertGoTo);
}
?>