<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Comments on snippet: 'Prepared Statements: Read'</title>
    <description>Snipplr comments feed</description>
    <link>https://ipv6.snipplr.com/</link>
    <lastBuildDate>Thu, 16 Apr 2026 23:22:34 +0000</lastBuildDate>
    <item>
      <title>Nettuts said on 25/Jun/2010</title>
      <link>https://ipv6.snipplr.com/view/36157/prepared-statements-read</link>
      <description>&lt;p&gt;1) Create mysqli connection, and pass the host, username, password, and desired database.&#13;
2) Prepare your SQL query. Replace mine with whatever you need to select.&#13;
3) Execute the statement&#13;
4) Bind the results to variables. Make sure that you pass the same number of arguments to bind_result as you selected in your SQL query -- in this case, three.&#13;
7) Cycle through the rows, and echo out the title and content.&lt;/p&gt;</description>
      <pubDate>Fri, 25 Jun 2010 07:47:54 UTC</pubDate>
      <guid>https://ipv6.snipplr.com/view/36157/prepared-statements-read</guid>
    </item>
    <item>
      <title>aelien said on 26/Jun/2010</title>
      <link>https://ipv6.snipplr.com/view/36157/prepared-statements-read</link>
      <description>&lt;p&gt;Cool, and what if we need parameters in the statement? Can you give an example or a link to one? Thanks.&lt;/p&gt;</description>
      <pubDate>Sat, 26 Jun 2010 03:05:38 UTC</pubDate>
      <guid>https://ipv6.snipplr.com/view/36157/prepared-statements-read</guid>
    </item>
    <item>
      <title>Nettuts said on 26/Jun/2010</title>
      <link>https://ipv6.snipplr.com/view/36157/prepared-statements-read</link>
      <description>&lt;p&gt;@aelien - Sure, you use ? and then bind the parameters, accordingly. I'm heading out for the evening, but I'll add a new snippet tomorrow.&lt;/p&gt;</description>
      <pubDate>Sat, 26 Jun 2010 08:36:02 UTC</pubDate>
      <guid>https://ipv6.snipplr.com/view/36157/prepared-statements-read</guid>
    </item>
  </channel>
</rss>
