• aidomains

    (@assorteddesign)


    I have tried for days to correct this issue after cleaning up being hacked. I didn’t want to post this because I didn’t want to duplicate but found nothing that helped, so here goes:

    Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/aielance/public_html/wp-content/themes/american/header.php on line 171

    </div>
      <div class="banner_bg">
    <!--    <div id="example">
          <div id="slider">
            <div class="slides_container" >-->
    		<div id="wrapper">
             <div class="slider-wrapper theme-default">
                <div id="slider" class="nivoSlider">
    <?php
    $result=mysql_query("select * from wp_slide order by id desc");
    while($obja=mysql_fetch_object($result))
    {
    ?>
    <img src="<?php echo site_url(); ?>/wp-content/uploads/slides/<?=$obja->large_image?>" />
    <?php } ?>
            </div>
          </div>
        </div>
      </div>
    </div>

    site is http://www.aidomains.net and line 171 is while($obja=mysql_fetch_object($result))

    Any help would be appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    Please double check the Database information. Make sure to have the correct database host, database name, database username and database password. You can check these information on the wp-config.php file inside the root directory of your WordPress website.

    http://codex.wordpress.org/Editing_wp-config.php

    Thread Starter aidomains

    (@assorteddesign)

    Thanks for the advice! Unfortunately, everything checks out fine. And the rest of the site is fine, it is just the slider that isn’t loading.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result’ is closed to new replies.