Dynamic select from the database

QuestionsDynamic select from the database
Abir asked 12 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 12 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 12 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

2 + 7 =

Login with your Social Id:

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 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

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

Let us improve this post!

Tell us how we can improve this post?