<select name="category" id="category" class="form-control form-control-xl">
<? $categories = R::findAll('category');
foreach ($categories as $category){ ?>
<option value="<?=$category->title_cat?>"><?=$category->title_cat?></option>
<? } ?>
</select>