Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1. #11

    Default

    that error is most likely down to the query you are running against the database, care to post it?
    Managing Director
    Atomic Network Productions Ltd.
    The best in custom coding solutions.

  2. #12
    Join Date
    Oct 2006
    Posts
    12
    Tokens
    0

    Default

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/www/civsea.freehostia.com/config.php on line 28


    <?php
    ob_start();
    # allows you to use cookies
    $db_username = '*****';
    # database username
    $db_password = '*****';
    # database password
    $db_host = localhost;
    # database host (usually localhost);
    $db_database = 'localhost';
    # database
    $connect = mysql_connect("mysql2.freehostia.com","*****","*** ");
    # connect to the database
    mysql_select_db("$db_database",$connect);
    # select the database
    $uname = addslashes($_COOKIE['username']);
    # get the username cookie
    $pword = addslashes($_COOKIE['password']);
    # get the password cookie
    $query = "SELECT * FROM `users` WHERE username = '".$uname."' AND password = '".$pword."'";
    # set a query
    28 $online = mysql_fetch_array(mysql_query($query));
    # set an array to get any stored information we want about the browsing user
    include ("functions.php");
    # include the functions
    ?>

Page 2 of 2 FirstFirst 12

Posting Permissions

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