17
Please ... I need advice, I know it seems a trivial matter, but I have an unexpected result.
This is the code:
for($i=0; $i<$nb_champs; $i++)
{
$structure_champs = explode(":", $champs[$i]);
if($i<$nb_champs)
$text .= '\' '.$structure_champs[0].'\' => $'.$structure_champs[0].', ';
elseif($i>$nb_champs)
$text .= '\' '.$structure_champs[0].'\' => $'.$structure_champs[0].'));';
}
This is the result:
$xoopsTpl->append('feeds', array('count' => $count,
'feed_id' => $feed_id,
'feed_name' => $feed_name,
'feed_image' => $feed_image,
'feed_url' => $feed_url,
'feed_description' => $feed_description,
'feed_submitter' => $feed_submitter,
'feed_date_created' => $feed_date_created,
'feed_online' => $feed_online,
These are the fields:
`feed_id` int (8) unsigned NOT NULL auto_increment,
`feed_name` varchar (155) NOT NULL ,
`feed_image` varchar (255) NOT NULL ,
`feed_url` varchar (255) NOT NULL ,
`feed_description` text NOT NULL ,
`feed_submitter` int (10) NOT NULL default '0',
`feed_date_created` int (10) NOT NULL default '0',
`feed_online` tinyint (1) NOT NULL default '0',