Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder bobleny's Avatar
    Join Date
    May 2007
    Posts
    256
    Thanks
    3
    Thanked 11 Times in 11 Posts

    When using php do you have to use mysql_store_result()?

    I've never used mysql_store_result(), in fact, I've never even heard of it until just the other day.

    This is where I found it: http://dev.mysql.com/doc/refman/5.6/...re-result.html

    Also, how do I use this in php?

    Code:
    //  I've tried this:
    $storeResult = mysql_query("mysql_store_result(". $queryResult .")", $sqlConnect);
    
    // and this:
    $storeResult = mysql_query("mysql_store_result()", $sqlConnect);
    
    // In both cases the result is a 1
    echo($storeResult);
    Thanks!
    Last edited by bobleny; 08-24-2011 at 03:36 AM.
    --www.firemelt.net--
    * No good deed goes unpunished.
    * Cheer up, the worst has yet to come...
    Get Firefox!

  • #2
    Banned
    Join Date
    Apr 2011
    Posts
    656
    Thanks
    14
    Thanked 69 Times in 69 Posts
    Maybe in some distant part you had to use it. But I've never heard of it before seeing your post and I have never used it when running update or data retrieval queries from php. It looks like your link is referencing an old version manual.

  • #3
    Regular Coder bobleny's Avatar
    Join Date
    May 2007
    Posts
    256
    Thanks
    3
    Thanked 11 Times in 11 Posts
    I have updated the link for the new version of MySQL. It is the same article though.

    I only ask because they seem to feel so strongly about it. However, PHP might do this automatically; I don't know.
    --www.firemelt.net--
    * No good deed goes unpunished.
    * Cheer up, the worst has yet to come...
    Get Firefox!


  •  

    Posting Permissions

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