我正在尝试破解 WP 插件“Contact Form 7”(带有 DB 扩展名),以便在用户提交表单后根据自己的喜好输出结果。我理解为什么插件必须按照它的方式排列数据库,但我在分离条目时遇到了麻烦。通常我会有一个可以使用的索引,但在这里我没有。
这是我的桌子的样子。
+-----------------+-----------+-----------------+---------------------+-------------+------+
| submit_time | form_name | field_name | field_value | field_order | file |
+-----------------+-----------+-----------------+---------------------+-------------+------+
| 1360190186.3500 | RSVP 2 | text-796 | Mindi | 0 | NULL |
| 1360190186.3500 | RSVP 2 | text-664 | Smith | 1 | NULL |
| 1360190186.3500 | RSVP 2 | text-635 | New York | 2 | NULL |
| 1360190186.3500 | RSVP 2 | menu-359 | A friend of Sarah's | 3 | NULL |
| 1360190186.3500 | RSVP 2 | textarea-518 | | 4 | NULL |
| 1360190186.3500 | RSVP 2 | file-29 | | 5 | NULL |
| 1360190186.3500 | RSVP 2 | textarea-652 | | 6 | NULL |
| 1360190186.3500 | RSVP 2 | Submitted Login | admin | 9999 | NULL |
| 1360190186.3500 | RSVP 2 | Submitted From | ::1 | 10000 | NULL |
| 1360191326.9700 | RSVP 2 | text-796 | Joe | 0 | NULL |
| 1360191326.9700 | RSVP 2 | text-664 | Blow | 1 | NULL |
| 1360191326.9700 | RSVP 2 | text-635 | Somewhere | 2 | NULL |
| 1360191326.9700 | RSVP 2 | menu-359 | A friend of Bob's | 3 | NULL |
| 1360191326.9700 | RSVP 2 | textarea-518 | | 4 | NULL |
| 1360191326.9700 | RSVP 2 | file-29 | | 5 | NULL |
| 1360191326.9700 | RSVP 2 | textarea-652 | | 6 | NULL |
| 1360191326.9700 | RSVP 2 | Submitted Login | admin | 9999 | NULL |
| 1360191326.9700 | RSVP 2 | Submitted From | ::1 | 10000 | NULL |
| 1360361333.8800 | RSVP 2 | text-796 | Once | 0 | NULL |
| 1360361333.8800 | RSVP 2 | text-664 | Again | 1 | NULL |
| 1360361333.8800 | RSVP 2 | text-635 | Somewhere | 2 | NULL |
| 1360361333.8800 | RSVP 2 | menu-359 | A friend of Bob's | 3 | NULL |
| 1360361333.8800 | RSVP 2 | textarea-518 | | 4 | NULL |
| 1360361333.8800 | RSVP 2 | file-29 | | 5 | NULL |
| 1360361333.8800 | RSVP 2 | textarea-652 | | 6 | NULL |
| 1360361333.8800 | RSVP 2 | Submitted Login | admin | 9999 | NULL |
| 1360361333.8800 | RSVP 2 | Submitted From | ::1 | 10000 | NULL |
+-----------------+-----------+-----------------+---------------------+-------------+------+
我的 PHP 有点生疏,所以我想知道迭代唯一唯一字段('submit_time')以隔离条目的最有效方法是什么?