Wordpress error help?

Discussion in 'WordPress' started by soccerllolly, Feb 18, 2010.

  1. #1
    the error

    Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/spiceyz/public_html/wp-content/themes/freeanimetoons/single.php on line 34



    the code


    <div id="gallery" align=center">

    <h3>Below you can check out more free Hentai Movie Galleries. These galleries change often , so be sure to bookmark us. </h3>

    <ul>
    <?php
    // select a random video
    $r = mysql_query("SELECT * FROM videos order by RAND() LIMIT 102");
    while ($row=mysql_fetch_assoc($r)) {

    echo '<li><a href="'.$row['url'].'" target="_blank"" title="'.$row['description'].'"><img src="'.$row['thumbnail'].'" alt="'.$row['description'].'" border="0" width="150" /></a><br />'.$row['description'].'</li>';
    }
    ?>
    </ul>
    </div>



    Any help?
     
    soccerllolly, Feb 18, 2010 IP
  2. WPGLamour

    WPGLamour Active Member

    Messages:
    30
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    95
    #2
    I tested the exact same code and it works fine. I get no errors.
     
    WPGLamour, Feb 19, 2010 IP
  3. soccerllolly

    soccerllolly Peon

    Messages:
    98
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    But where do i get the videos from
     
    soccerllolly, Feb 19, 2010 IP
  4. WPGLamour

    WPGLamour Active Member

    Messages:
    30
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    95
    #4
    :)) well how should I know?
     
    WPGLamour, Feb 20, 2010 IP