ok I went into myPHPadmin and created the table from there. Seems to all work except I get this error now.
Quote:
Warning: Missing argument 16 for setstatus() in /modules/class_recruit.php on line 45
|
That error message appears right above the edit display on the frontpage of cmps.
Here is the code for class_recruit.php that I am using.
PHP Code:
<?php
/*======================================================================*\
class_recruit.php
------------------------------------------------------------------
* Dark Portal Syndicate http://www.darkportals.com
* Copyright 2002-2007
* ------------------
* class_recruit.php
* Began: 6/27/05
* Last Modified 3/18/2007
* Authors: Delinah Howard, Jessica Zakhar. <site-admins@darkportals.com>
------------------------------------------------------------------
\*=======================================================================*/
class recruit {
var $result_rows = array();
var $vbObj;
function recruit()
{
global $vbulletin;
$this->vbObj =& $vbulletin;
}
function setStatus( $druid,
$warrior,
$paladin,
$dreadknight,
$ranger,
$rogue,
$monk,
$bard,
$cleric,
$shaman,
$desciple,
$bloodmage,
$sorcerer,
$druid,
$psionicist,
$necromancer )
{
$classes = array(
'Warrior' => $this->vbObj->db->escape_string( strip_tags( $warrior, '<b>' ) ),
'Paladin' => $this->vbObj->db->escape_string( strip_tags( $paladin, '<b>' ) ),
'DreadKnight' => $this->vbObj->db->escape_string( strip_tags( $dreadknight, '<b>' ) ),
'Ranger' => $this->vbObj->db->escape_string( strip_tags( $ranger, '<b>' ) ),
'Rogue' => $this->vbObj->db->escape_string( strip_tags( $rogue, '<b>' ) ),
'Monk' => $this->vbObj->db->escape_string( strip_tags( $monk, '<b>') ),
'Bard' => $this->vbObj->db->escape_string( strip_tags( $bard, '<b>' ) ),
'Cleric' => $this->vbObj->db->escape_string( strip_tags( $cleric, '<b>' ) ),
'Desciple' => $this->vbObj->db->escape_string( strip_tags( $desciple, '<b>' ) ),
'Bloodmage' => $this->vbObj->db->escape_string( strip_tags( $bloodmage, '<b>' ) ),
'Sorcerer' => $this->vbObj->db->escape_string( strip_tags( $sorcerer, '<b>' ) ),
'Druid' => $this->vbObj->db->escape_string( strip_tags( $druid, '<b>' ) ),
'Psionicist' => $this->vbObj->db->escape_string( strip_tags( $psionicist, '<b>' ) ),
'Necromancer' => $this->vbObj->db->escape_string( strip_tags( $necromancer, '<b>' ) )
);
foreach( $classes AS $key => $value )
{
$query = ( "UPDATE recruitment SET status='$value' WHERE class='$key'" );
$this->vbObj->db->query( $query );
}
}
Line 45 of that is
So what happens now is that when I fill out the edit fields and hit save I get that error and Dread Knight and Necromancer show no values. If I hit the refresh button on the page then certain class values get changed.
Any ideas?