Hey i'm getting

Discussion in 'MySQL' started by hathgola, Oct 30, 2010.

  1. #1
    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/yosta/public_html/index.php on line 7


    and thats a index file please Help

    <?PHP
    session_start();
    include("connection.php");

    $sqlsettings = "SELECT * from admin";
    $resultsettings = mysql_query($sqlsettings);
    $rowsettings = mysql_fetch_array($resultsettings);
    ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
     
    hathgola, Oct 30, 2010 IP
  2. Layoutzzz

    Layoutzzz Greenhorn

    Messages:
    78
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    18
    #2
    Layoutzzz, Nov 2, 2010 IP
  3. Gediminas

    Gediminas Peon

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    $resultsettings = mysql_query($sqlsettings) or die(mysql_error());
    It will help you
     
    Gediminas, Nov 2, 2010 IP
  4. hathgola

    hathgola Well-Known Member

    Messages:
    218
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    105
    #4
    yup done thanks guys
     
    hathgola, Nov 3, 2010 IP