Page 1 of 1

More Problems

Posted: Wed Dec 22, 2004 7:58 am
by Trinity
More troubles, this code here works:

[code]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]

This code doesn't:

[code]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);
 }[/code]

I don't get any errors, it just goes straight to the showCat function without changing the database at all <img src=\'http://www.killanet.net/forum3/public/s ... #>/cry.gif\' class=\'bbc_emoticon\' alt=\':(\' />

More Problems

Posted: Wed Dec 22, 2004 2:04 pm
by Scott
If its showing the cats then the code is right, must be db problem of some sort.