<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Converting mysqli to PDO? in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Converting-mysqli-to-PDO/m-p/75259#M46906</link>
    <description>&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I've been out of the coding scene for about 10 years and I'm trying to catch back up. Much of what I learned has been deprecated or full-out removed and now there's so much emphasis on security (which there should be), but I'm used to the old mysql_query.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I started making everything as mysqli_query because that's what I was reading about, but recently I've reading a lot about PDO and that it's more secure and less typing. To be honest, it looks exactly the same as mysqli to me, but that's just a cursory glance.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Anyway, enough chattering, my main reason for this is that I'm a little confused on how to do PDO. Some examples that I have are:&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;$stmt = mysqli_prepare($conn, $sql)&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;That one is easy because it just turns into:&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;$stmt = $pdo-&amp;gt;prepare($conn, $sql)&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Right?&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;So how about replacing things like mysqli_stmt_bind_param or mysqli_stmt_execute?&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I'm not asking for anybody to do it for me, but I guess the better question is... does anybody know a good place to learn how to convert mysqli to PDO? Or I guess maybe to learn PDO?&lt;/P&gt;</description>
    <pubDate>Mon, 08 Mar 2021 09:12:59 GMT</pubDate>
    <dc:creator>LillianRoot</dc:creator>
    <dc:date>2021-03-08T09:12:59Z</dc:date>
    <item>
      <title>Converting mysqli to PDO?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Converting-mysqli-to-PDO/m-p/75259#M46906</link>
      <description>&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I've been out of the coding scene for about 10 years and I'm trying to catch back up. Much of what I learned has been deprecated or full-out removed and now there's so much emphasis on security (which there should be), but I'm used to the old mysql_query.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I started making everything as mysqli_query because that's what I was reading about, but recently I've reading a lot about PDO and that it's more secure and less typing. To be honest, it looks exactly the same as mysqli to me, but that's just a cursory glance.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Anyway, enough chattering, my main reason for this is that I'm a little confused on how to do PDO. Some examples that I have are:&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;$stmt = mysqli_prepare($conn, $sql)&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;That one is easy because it just turns into:&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;$stmt = $pdo-&amp;gt;prepare($conn, $sql)&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Right?&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;So how about replacing things like mysqli_stmt_bind_param or mysqli_stmt_execute?&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I'm not asking for anybody to do it for me, but I guess the better question is... does anybody know a good place to learn how to convert mysqli to PDO? Or I guess maybe to learn PDO?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 09:12:59 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Converting-mysqli-to-PDO/m-p/75259#M46906</guid>
      <dc:creator>LillianRoot</dc:creator>
      <dc:date>2021-03-08T09:12:59Z</dc:date>
    </item>
  </channel>
</rss>

