Retrieve data from sql database and display in tables - Display certain data according to checkboxes checked

后端 未结 2 2055
[愿得一人]
[愿得一人] 2020-12-21 13:15

I have created an sql database(with phpmyadmin) filled with measurements from which I want to call data between two dates( the user selects the DATE by entering in the HTML

2条回答
  •  暖寄归人
    2020-12-21 13:42

    Solution for your problem : Change the mysql_fetch_assoc with mysql_fetch_array If you have the same problem try to print your result with print_r

    Answer : Use the bit datatype in mysql for store and read your checkboxes. When you're receiving thr value from the database then you can use

    in the parameter checked you can use the php code as exist :

       $value = ...get the value from db ( 1 or 0 )
       echo '';
    

提交回复
热议问题