Wednesday, 30 November 2016

php - Option Value when selected

I'm trying to get my dropdown box to set the selected option as the option value.




$category = $pdo->query('SELECT jobCategory FROM Category');

foreach ($category as $row) {
echo "";
}


Currently, it sets the jobCate to "owner1".

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...