Web Analytics Made Easy -
StatCounter When using php do you have to use mysql_store_result()? - CodingForum

Announcement

Collapse
No announcement yet.

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

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new 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; Aug 23, 2011, 10:36 PM.
    --www.firemelt.net--
    * No good deed goes unpunished.
    * Cheer up, the worst has yet to come...

  • #2
    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.

    Comment


    • #3
      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...

      Comment

      Working...
      X
      😀
      🥰
      🤢
      😎
      😡
      👍
      👎