setDefaults not working

From: Date: Thu, 07 Dec 2006 17:15:28 +0000
Subject: setDefaults not working
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26010@lists.php.net to get a copy of this message
This code is my update page which gets an id from the main page. The form validates and if it fails then I run this function: function loadskill($id) { global $mdb2; global $form; $statement=$mdb2->prepare('SELECT * FROM Skills WHERE Skillid = ?', array('integer'), array('integer','text','text')); $result=$statement->execute($id['skillid']); $skillinfo=$result->fetchRow(MDB2_FETCHMODE_ASSOC); $form->setDefaults($skillinfo); $form->display(); var_dump($skillinfo); } So in other words I get the $id and load the correct row using setDefaults... For some reason the first [visible] field 'text' loads but description wont. Here are the contents of var_dump: array(3) { ["skillid"]=> int(2) ["skillname"]=> string(5) "test2" ["description"]=> string(13) "another test!" } Why is it not loading fully? www.bitesoftware.com - software for a better lifestyle _________________________________________________________________ Windows Live™ Messenger has arrived. Click here to download it for free! http://imagine-msn.com/messenger/launch80/?locale=en-gb

« previous php.pear.general (#26010) next »