Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Forum: Fixing WordPress
    In reply to: How to edit menu's

    This looks to me like it’s either a widget or actual page content. When you are on the page editor, is there any text in the HTML editor?

    Do you have a link to the page with these? I amy be able to help if I knew which links you are referring to.

    Thread Starter Subway1968

    (@subway1968)

    bcworkz – thanks, I found that and it makes sense to me but I have another question.

    I will want to get rid of the previous code:
    <?php require_once(‘Connections/FIGURES.php’); ?>

    and replace with:
    <?php require_once(‘blog/wp-load.php’); ?>

    In my non-WP pages I have queries such as: mysql_select_db($database_FIGURES, $FIGURES);
    $query_rsSlider = “SELECT FileName FROM slider WHERE slider.ImageActive = ‘Y’ ORDER BY Position ASC”;
    $rsSlider = mysql_query($query_rsSlider, $FIGURES) or die(mysql_error());

    The FIGURES.php file looked like this:
    <?php
    # FileName=”Connection_php_mysql.htm”
    # Type=”MYSQL”
    # HTTP=”true”
    $hostname_FIGURES = “localhost”;
    $database_FIGURES = “website_dbname”;
    $username_FIGURES = “website_username”;
    $password_FIGURES = “password”;
    $FIGURES = mysql_pconnect($hostname_FIGURES, $username_FIGURES, $password_FIGURES) or trigger_error(mysql_error(),E_USER_ERROR);
    ?>

    The wp-config.php uses pretty much the same thing like this:
    /** The name of the database for WordPress */
    define(‘DB_NAME’, ‘website_wordpress’);
    /** MySQL database username */
    define(‘DB_USER’, ‘website_username’);
    /** MySQL database password */
    define(‘DB_PASSWORD’, ‘password’);
    /** MySQL hostname */
    define(‘DB_HOST’, ‘localhost’);

    My question is, how would I do my non-WP page queries? (SEE XXX below)
    mysql_select_db($XXXXXXX, $XXXXXXX);
    $query_rsSlider = “SELECT FileName FROM slider WHERE slider.ImageActive = ‘Y’ ORDER BY Position ASC”;
    $rsSlider = mysql_query($query_rsSlider, $XXXXXXX) or die(mysql_error());

    Hope this makes sense. Thanks again!

Viewing 3 replies - 1 through 3 (of 3 total)