Results 1 to 3 of 3

Dynamic Information Pages

This is a discussion on Dynamic Information Pages within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Ok after installing this mod and seting permistion for admin i get the following error.Warning: mysql_fetch_array(): supplied argument is not ...

      
  1. #1
    New Member
    Join Date
    Oct 2009
    Posts
    21
    Rep Power
    0


    Default Dynamic Information Pages OSCMAX

    Ok after installing this mod and seting permistion for admin i get the following error.Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /homepages/0/d281853266/htdocs/admin/includes/functions/database.php on line 99This is the function it seems to be having a problem with the funtion starts on line 98 and ends on 100 any ideahs what might be causings this would be apreciated my brains fried and needs an outsider pov function tep_db_fetch_array($db_query) { return mysql_fetch_array($db_query, MYSQL_ASSOC); }
    Last edited by Tripic; 11-29-2009 at 07:01 PM. Reason: MAy have posted in wrong spot

  2. #2
    New Member
    Join Date
    Oct 2009
    Posts
    21
    Rep Power
    0


    Default Re: Dynamic Information Pages

    function tep_db_fetch_array($db_query) {
    return mysql_fetch_array($db_query, MYSQL_ASSOC);
    }

  3. #3
    New Member
    Join Date
    Oct 2009
    Posts
    21
    Rep Power
    0


    Default Re: Dynamic Information Pages

    ok im not sure but looking at the sql querrys im noticing the mod is a bit diferint then then the contribs already in osc max for example

    this is one of the querrys from the D.I.P contrib

    PHP Code:
    for ($i 0$n sizeof($information); $i $n$i++) {
                
    $page_ids_query tep_db_query("select pages_id from " TABLE_PAGES " ");
                while (
    $page_ids tep_db_fetch_array($page_ids_query)) {
                  
    $pages[$page_ids['pages_id']];
                }
              } 
    this is a querry from articles.php

    PHP Code:
      function tep_get_articles_name($article_id$language_id 0) {
        global 
    $languages_id;
        if (
    $language_id == 0$language_id $languages_id;
        
    $article_query tep_db_query("select articles_name from " TABLE_ARTICLES_DESCRIPTION " where articles_id = '" . (int)$article_id "' and language_id = '" . (int)$language_id "'");
        
    $article tep_db_fetch_array($article_query);
        return 
    $article['articles_name'];
      } 
    I saw in the forums that Micheal <--- forgive me if ispell that wrong got this contrib working but im not sure what had to be done and cant seem to get it working on my end I am wondering if its the way the querrys are written

Similar Threads

  1. Dynamic Information Pages
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 12-15-2008, 09:00 PM
  2. Dynamic Information Pages
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 11-04-2008, 10:02 PM
  3. Dynamic Information Pages
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 10-24-2008, 09:51 AM
  4. Extra Pages In Information Box
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 12-24-2007, 01:10 PM
  5. Dynamic Information Pages
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 01-26-2007, 09:12 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •