More Problems
Posted: Tue Dec 21, 2004 11:58 pm
More troubles, this code here works:
This code doesn't:
I don't get any errors, it just goes straight to the showCat function without changing the database at all /cry.gif' class='bbc_emoticon' alt=':(' />
Code: Select all
function addTutCat($title, $desc) {
$sql = "INSERT INTO tutorial_cat (`name`,`desc`) VALUES ('".$title."','".$desc."')";
$result = $this->_dbCon->doQuery($sql);
if ($result != true) {
echo $result;
}
$this->showAdminRoot();
}Code: Select all
function submitTut($title, $desc, $cat, $uID, $author, $tutorial) {
$sql = "INSERT INTO tutorials (`name, `desc`, `cat`, `userid`, `author`, `tutorial, `active`)".
"VALUES ('".$title."', '".$desc."', '".$cat."', '".$uID."', '".$author."', '".$tutorial."', '0')";
$result = $this->_dbCon->doQuery($sql);
if ($result != true) {
echo $result;
}
$this->showCat($cat);
}