help me! plz plz plz 10d

2007-02-05 2:58 am
I don't know why I always playing computer,it cannot 上 Internet,it say:


Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home1/3forum/forum/akmaowpe_both.inc.php on line 36

Fatal error: Cannot use string offset as an array in /home1/3forum/forum/akmaowpe_both.inc.php on line 48

It means what?And how can I do?teach me how to do! thz!

回答 (2)

2007-02-07 11:00 am
✔ 最佳答案
你這個問題根本和上不上到Internet無關,只是你visit的一個討論區因為一些bug或內部份問題,未能顯示你訪問的網頁。如果你認得討論區個管理員,你可以通知佢,叫佢留意下出左乜事。

2007-02-10 11:14:49 補充:
如果你意思是你自己搞了個forum, 突然抄了,那要詳看 source code才可以solve 到。在 mysql_fetch_array() 前亂加 @ 只是令佢唔出 error,但問題仍在。佢個error message講 line 48 度個問題有機會是 mysql_fetch_array 處理不到而引起,你加了@ 亦很大機會都是抄。
2007-02-08 9:23 am
have you install some special program recently?

then the program should contain some mysql file data configuration

Here is the fix:

Find all lines that look like this:

Code:--------------------------------------------------------------------------------
mysql_fetch_array(mysql_query("...snip..."));
--------------------------------------------------------------------------------

And just add a "@" in front of it so it looks like this:

Code:--------------------------------------------------------------------------------
@mysql_fetch_array(mysql_query("...snip..."));
--------------------------------------------------------------------------------
Then do the same thing for the following lines..

Code:--------------------------------------------------------------------------------
mysql_num_rows(mysql_query("...snip..."));
--------------------------------------------------------------------------------

Perform the same steps as above by adding the "@" to it so it looks like this:

Code:--------------------------------------------------------------------------------
@mysql_num_rows(mysql_query("...snip..."));
--------------------------------------------------------------------------------

hope this can help!
if more information, read this forum. all the best.


收錄日期: 2021-04-12 22:44:46
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20070204000051KK03809

檢視 Wayback Machine 備份