hello dear all,
i’m facing a problem and i need someone help,
i have two tables with relations between those tables , i want to create a search form and perform a search between those tables , i already customize the advance search… my query is something like this:
SELECT c.date,c.name,c.age,b.name FROM client c INNER JOIN bon b ON b.clientId = c.id WHERE c.name = $_GET[‘name’] AND c.date BETWEEN $_GET[‘date1’] AND $_GET[‘date2’];
the real problem is my form ,it looks like this:
<div class="row">
<?php echo $form->label($model,'START DATE'); ?>
<?php echo $form->textField($model,'demission',array('size'=>45,'maxlength'=>45)); ?>
</div>
<div class="row">
<?php echo $form->label($model,'END DATE'); ?>
<?php echo $form->textField($model,'demission',array('size'=>45,'maxlength'=>45)); ?>
</div>
has seen in this form,i’m using the same demission two times as textField name to perform my query because this model row demission is containing the date to perform my query
how to solve that problem?
i’m confuse,i’m really don’t know how to solde.