# Select options data from other tables

**URL:** <https://discourse.cakephp.org/t/select-options-data-from-other-tables/6447>\
**Category:** Need Help\
**Created:** [August 1, 2019, 4:24am UTC](https://discourse.cakephp.org/t/select-options-data-from-other-tables/6447 "2019-08-01T04:24:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arizzoye](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@arizzoye](https://discourse.cakephp.org/u/arizzoye)\
**Post date:** [August 1, 2019, 4:24am UTC](https://discourse.cakephp.org/t/select-options-data-from-other-tables/6447/1 "2019-08-01T04:24:44Z")

</div>

I want to trace a disease with take from other table signs

```auto
table signs
+-----+-------------+
+ ID + Gejala +
+-----+-------------+
+ 1 + Bleeding +
+ 2 + Swollen +
+ 3 + Festering +
+-----+-------------+

in table usertraces add.ctp, I'm expect output here

<?php
echo $this->Form->control('NoUser', array('type' => 'text', 'value' => $sesuserID));
echo $this->Form->control('Nama', array('type' => 'text', 'value' => $sesusernama));
echo $this->Form->control('Gejala', array('type' => 'select', 'value' => //the value I'm take from other table signs column Gejala));
echo $this->Form->submit('TAMBAH');
?>

```

how genereate query in usertracesController,  
thanx for anyone to help me,…
