Dropdown Select using DB data

[ad_1]

Hello @emperorfpm

Thank you very much for using our plugin. The [cf7-link-field] tag requires you to enter the value and text attributes with the columns in the recordset tag.

So, the form structure would be:


[select vehicleyears]
[cf7-recordset id="cf7-recordset-284" type="database" query="SELECT DISTINCT year FROM car_db"]
[cf7-link-field recordset="cf7-recordset-284" field="vehicleyears" value="year" text="year"]

I’m assuming your query is correct, and the car_db table is in the same website’s database.

Best regards.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer