我的HTML格式似乎有问题。我正在调用数据库来显示网页上表格中的所有信息。我已经得到了信息,但我似乎无法获得所有信息进入表格。
格式化只允许在表格中输入一行,然后以正常文本格式将行的其余部分放在下面。
我如何获取所有信息以便在表格中添加并在添加更多信息时自动更新?
11-27 07:17:40.617 2197-2197/? E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.example.project.myapplication, PID: 2197
java.lang.IllegalStateException: Fragment already added: TimePick{f1f4f2b #0 TimePicker}
at android.app.FragmentManagerImpl.addFragment(FragmentManager.java:1219)
at android.app.BackStackRecord.run(BackStackRecord.java:715)
at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1535)
at android.app.FragmentManagerImpl$1.run(FragmentManager.java:482)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
答案 0 :(得分:1)
你在代码中做了两个嘘声:
1:您没有使用这些变量,删除它们
$date = $rows['date'];
$region = $rows['region'];
$cameraman = $rows['cameraman'];
$livestream = $rows['livestream'];
$eventtitle = $rows['eventitle'];
$lecturer = $rows['lecturer'];
$time = $rows['time'];
$speaker = $rows['speaker'];
$icecontact = $rows['icecontact'];
$venuecontact = $rows['venueaddress'];
$venuecontact = $rows['venuecontact'];
$additionalcomments = $rows['additionalcomments'];
$onapp = $rows['onapp'];
2:你正在关闭while循环中的表
echo "</table>";
endwhile;
应该是:
endwhile;
echo "</table>";