根本的な解決ではないかもしれませんが、「Cannot use object of type stdClass as array」エラーが出る場合は、配列の扱い方を以下のように変更する事で解決しました。
$row["catID"]
↓
$row->catID
今回RSSを取り出すのに使っていた「MagpieRSS」を以下のように使っていたのですが、
include (‘rss_fetch.inc’);
require_once ‘code_table.ucs2jis’;
require_once ‘jcode.php’;
繰り返し処理を行おうとしたところ、Fatal error: Cannot redeclare phpでのエラーとういうエラーが出現するので、以下のように修正したら、とりあえず動くようになりました。
ちゃんとした解決策なのかどうかは不明ですが・・・( ; ゚Д゚)
require_once (‘rss_fetch.inc’);
require_once ‘code_table.ucs2jis’;
require_once ‘jcode.php’;
この投稿へのコメント
コメントはまだありません。