while ($row = sqlite_fetch_array($result))
{
$category = $row[0];
echo "<option value=". $category .">". $category ."</option>\n";
}
Ok so basically, $category is a string like : Java Network Programming, and in the ‘VALUE’ part it only passes through “Java”, where as in the second part, it passes through the whole string?
Any reason why, as this is kind of crucial. I have tried :
<option value=$category>
And still no luck, I just don’t see why it works with one variable and not the other?
It looks like a missing quotes issue to me: