Greetings,
I am getting a call to undefined function on this function
function panel_links($acqui = 'acquidata.php', $pa1a1 = 'pana1a1.php', $pa1a2 = 'pana1a2.php', $pa1a3 = 'pana1a3.php', $pa2b1 = 'pana2b1.php' $pa2b2 = 'pana2b2.php', $pa2b3 = 'pana2b3.php')
{
switch ($Recordset1->Fields('dev_name')
{
case 'AcquiSuite 8811-1': $acqui; break;
case 'Panel A2 B1': printf("<a href=\"%s\">Panel A2 B1</a>", $pa2b1); break;
case 'Panel A2 B2': printf("<a href=\"%s\">Panel A2 B2</a>", $pa2b2); break;
case 'Panel A2 B3': printf("<a href=\"%s\">Panel A2 B3</a>", $pa2b3); break;
case 'Panel A1 A1': printf("<a href=\"%s\">Panel A1 A1</a>", $pa1a1); break;
case 'Panel A1 A2': printf("<a href=\"%s\">Panel A1 A2</a>", $pa1a2); break;
case 'Panel A1 A3': printf("<a href=\"%s\">Panel A1 A3</a>", $pa1a3); break;
}
}
this is where the function is being executed from within a table
<?php
while (!$Recordset1->EOF) {
alternate_rows();
?>
<td width="130" nowrap> <div align="center"><font color="#000000"><?php panel_links($Recordset1->Fields('dev_name')); ?></font></div></td>
<td width="50" nowrap>
<div align="center"><?php echo $Recordset1->Fields('dev'); ?></div></td>
<td width="40" nowrap>
<div align="center"><?php echo $Recordset1->Fields('sn'); ?></div></td>
<td width="400" nowrap>
<div align="center"><?php echo $Recordset1->Fields('dev_type'); ?></div></td>
<td width="80" nowrap>
<div align="center"><?php echo $Recordset1->Fields('dev_class'); ?></div></td>
</tr>
<?php
$Recordset1->MoveNext();
}
?>
does anyone have any idea why this is happening? or do u have any other suggestions as to how to write a function like i did here to be able to plug in a link according to the value of the field in the first column. it does not seem to work.
Thanks,
Cameron Seader