I'm trying to display more than one bit of information in a dropdown box though all my efforts ends up with a blank
Here's the code:
What i want is more details, i've tried the following:
['CompName'] "&" ['Model']
['CompName'] '&' ['Model']
['CompName' . 'Model']
['CompName' '.' 'Model']
I'm no doubt halfway down the wrong road. Anyone point me back on track?
Here's the code:
Code:
<?php
while ($componentdetail = mysql_fetch_array($Cpus)){
$Compid= $CoName['id'];
$Model = htmlspecialchars($componentdetail['CompName']);
echo "<option value='$Model'>$Model</option>\n";
}
?>
What i want is more details, i've tried the following:
['CompName'] "&" ['Model']
['CompName'] '&' ['Model']
['CompName' . 'Model']
['CompName' '.' 'Model']
I'm no doubt halfway down the wrong road. Anyone point me back on track?