hehe thanks.
After pulling my hair out for about a month, I finally fixed it and found out what was wrong with it.
in my admin.functions.inc I had this originally,
Code: Select all
function struct_articlelist ($struct_id, $counter, $cut_article, $article_order=0) {
$count_article = 0;
$article_order = intval($article_order);
$show_sort = (!$article_order || $article_order == 1) ? 1 : 0;
$ao = get_order_sort($article_order);
echo "\n\n\n".'<!-- ORDER: '.$ao[2].' //-->'."\n\n\n";
$sql = "SELECT article_id, article_cid, article_title, article_public, article_aktiv, article_uid, ".
"date_format(article_tstamp, '%Y-%m-%d %H:%i:%s') AS article_date FROM ".
DB_PREPEND."phpwcms_article WHERE article_cid='".$struct_id."' AND article_deleted=0 ".
"ORDER BY ".$ao[2].";";
//"ORDER BY article_sort;";
if($result = mysql_query($sql, $GLOBALS['db']) or die ("error while browsing related articles")) {
while($row = mysql_fetch_array($result)) {
$article[$count_article] = $row;
$count_article++;
}
mysql_free_result($result);
}
then, I kept looking back and forth with what DeXXus had pasted here, after doing tests over tests, i found out that this error could all be fixed if you just add
in here
Code: Select all
function struct_articlelist ($struct_id, $counter, $cut_article, $dbcon, $article_order=0) {
thanks again for the help, not sure if this would be a bug or just some random error, lol.
