Help with Final Hell Homepage?

Results 1 to 5 of 5
  1. #1
    Novice Leon Muhkuh is offline
    MemberRank
    Mar 2015 Join Date
    1Posts

    Help with Final Hell Homepage?

    Well met friends,

    Im having problems with the Final Hell v2 Homepage..

    Im getting this error now ... Any advices how to deal with this? Im a total noob with PHP. thanks boys

    Warning: sqlsrv_has_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\function\func.home.php on line 15


  2. #2
    əʇılə ɯɐ ı fiestanerd69 is offline
    MemberRank
    Jun 2009 Join Date
    958Posts

    Re: Help with Final Hell Homepage?

    You're trying to pass a parameter to the function which it does not accept. As the error explains you are trying to give it a boolean whereas it expects there to be 1 resource parameter. A simple good search or documentation look up with help you greatly. You won't get anywhere asking us about such problems if you don't even try to solve it yourself.

  3. #3
    Anotha One Wicious is offline
    MemberRank
    Jan 2013 Join Date
    StockholmLocation
    839Posts

    Re: Help with Final Hell Homepage?

    Not even a fiesta related question.. most likely a problem with your query, so please include some code in your post.

  4. #4
    Member lordjashin32 is offline
    MemberRank
    Jan 2015 Join Date
    58Posts

    Re: Help with Final Hell Homepage?

    Quote Originally Posted by Leon Muhkuh View Post
    Well met friends,

    Im having problems with the Final Hell v2 Homepage..

    Im getting this error now ... Any advices how to deal with this? Im a total noob with PHP. thanks boys

    Warning: sqlsrv_has_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\function\func.home.php on line 15
    Better yet. I recommend you learn PHP. It's one of the most recommended to learn, and it's actually useful in the real world.
    Read this book that the creator of PHP helped write: http://www.amazon.com/Programming-PH...5588748&sr=1-1
    That's the one i learned from. Just read it over. And take notes on how to do most of the constructs. Once you learn one programming language. Learning others goes easier. Like C# is similar to PHP for instance.

    That'll give you the basis you need period. Then go learn a really good framework written in PHP. Such as Laravel. And that can be used to stream line your website creation.

    Here's the example code straight from the PHP Manual itself:

    Code:
    <?php
    $server = "serverName\sqlexpress";
    $connectionInfo = array( "Database"=>"dbName", "UID"=>"username", "PWD"=>"password" )
    $conn = sqlsrv_connect( $server, $connectionInfo );
    
    $stmt = sqlsrv_query( $conn, "SELECT * FROM Table_1");
    
    if ($stmt) {
       $rows = sqlsrv_has_rows( $stmt );
       if ($rows === true)
          echo "There are rows. <br />";
       else 
          echo "There are no rows. <br />";
    }
    ?>

  5. #5
    əʇılə ɯɐ ı fiestanerd69 is offline
    MemberRank
    Jun 2009 Join Date
    958Posts

    Re: Help with Final Hell Homepage?

    I'm closing this thread as enough help has been provided to solve the issue and partially because the issue itself is not 100% fiesta related. In the future please make sure to use the resources available to you before asking for help. If you have any other issue or your issue is not yet solved please open a new thread.



Advertisement