警告:mysql_fetch_array() 期望参数 1 是资源,布尔值在 /home/skidrowg/public_html/wp-content/plugins/astickypostorderer/croer-transact.php 第 19 行给出。检查与您的 MySQL 服务器版本相对应的手册,以在第 1 行的 '' 附近使用正确的语法
这是 croer-transact.php 代码:
<?php
$croer_list = $_POST;
$croer_action = $croer_list[submit];
require_once('croer-functions.php');
if ($croer_action == 'Save and Refresh') {
// lets clean up the incomming
$croer_ins_buffer = array(); // to hold what needs to be inserted
foreach ($croer_list as $croer_pid => $croer_element) {
if ((!strncmp($croer_pid, 'pid', 3))&&($croer_element!='')) {
$croer_ins_buffer[substr($croer_pid,3)]=$croer_element;
}
}
}
$croer_cat = $croer_list[croer_cat];
if ($croer_ins_buffer) {
asort($croer_ins_buffer);
}
$croer_old_sorts = croer_get_just_sorted($croer_cat);
while ($row= mysql_fetch_array($croer_old_sorts)) {
$croer_old_sorts_r[$row[post_id]]=$row[post_rank];
}
if ($croer_old_sorts_r) {
asort($croer_old_sorts_r);
}
// loop through ellements to insert in new array
// keep offset
$c_new_inserts=array();
$c_removals=array();
$c_ofset=0;
if ($croer_ins_buffer) {
echo "<!-- >We have insertions< -->";