Dynamic select from the database

QuestionsDynamic select from the database
Abir asked 6 years ago

Hi,

Thank you so much for this work. It was very helpfull for me.

I need to make a dynamic select from my database to but in the editoptions and searchoptions

Please give a solution

Regards,

2 Answers
Abir answered 6 years ago

I found a solution for the dynamic select but still a problem when I add or edit the item the action doesn't work.

$res_act=mysql_query("select * from civilite ");
$vals="'";
while($row_act=mysql_fetch_array($res_act))
{
$vals.=$row_act[0].":".$row_act[1].";";
}
$vals=substr($vals,0,-1);
$vals.="'";

$col["editoptions"] = array("value"=>$vals);

Abu Ghufran answered 6 years ago

Hi Abir,

Please refer dropdown.php and autofilter.php in full package. They are working examples for dropdown function in list and search. If you are not using a paid package, refer this link for payment process.

Download

Your Answer

16 + 5 =

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!