我在做一個網頁,從html輸入指定內容并上傳到mysql資料庫。使用的是apache+html+python+mysql。在云服務器上實作的。
從html輸入指定內容并通過python顯示在最新網頁這個功能實作了。
使用python程式更改mysql這個功能也實作了。
但是打算從html輸入指定內容并通過python上傳到mysql資料庫卻無法實作。error log如下:
[Thu Jun 11 10:24:12.186304 2020] [cgi:error] [pid 2348:tid 1852] [client 117.131.117.100:55003] End of script output before headers: store.py, referer: http://www.ppotest.club/test1/ppotest.html
[Thu Jun 11 10:24:12.186304 2020] [cgi:error] [pid 2348:tid 1852] [client 117.131.117.100:55003] AH01215: Traceback (most recent call last):\r: C:/apache/Apache24/cgi-bin/store.py, referer: http://www.ppotest.club/test1/ppotest.html
[Thu Jun 11 10:24:12.186304 2020] [cgi:error] [pid 2348:tid 1852] [client 117.131.117.100:55003] AH01215: File "C:/apache/Apache24/cgi-bin/store.py", line 32, in <module>\r: C:/apache/Apache24/cgi-bin/store.py, referer: http://www.ppotest.club/test1/ppotest.html
[Thu Jun 11 10:24:12.186304 2020] [cgi:error] [pid 2348:tid 1852] [client 117.131.117.100:55003] AH01215: sql = """INSERT INTO TEST1(NAME,\r: C:/apache/Apache24/cgi-bin/store.py, referer: http://www.ppotest.club/test1/ppotest.html
[Thu Jun 11 10:24:12.186304 2020] [cgi:error] [pid 2348:tid 1852] [client 117.131.117.100:55003] AH01215: ValueError: unsupported format character ',' (0x2c) at index 87\r: C:/apache/Apache24/cgi-bin/store.py, referer: http://www.ppotest.club/test1/ppotest.html
這是為什么呢?
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/40653.html
標籤:Apache
上一篇:求助 已知頁面html結構為如下在不修改靜態結構的前提下通過js代碼的運行實作頁面加載后為ul元素動態添加一個新的串列項
