In the edit post page, I show the category post for any post I have 3 Categories the problem Is the first category I can't see them For Example
Categories names :
1 - Saad
2 - Sayou
3 - Saay
if the the category post Is sayou
I see just like This
Category is = Saad List of categories has : Saay
I want to see the post category and all categories without category of the post
P.S : Sorry about my language I'm beginner in English :'(
my Code
<select id="category" name="category" type="text" class="form-control">
<option value="<?php $rows_cat['Id_category'] ?>"><?php echo $rows['Category'] ?></option>
<?php
while($rows_cat = mysqli_fetch_assoc($run_sql)){
if($rows_cat['Category'] == $rows['Category'])
{
continue;
}
else {
echo '<option value="'.$rows_cat['Id_category'].'">'. ucfirst($rows_cat['Category']).'</option>';
}}
?>
</select>
</div>