<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>built in mysql functions</title>
        <link>https://interactivetools.com/forum/forum-posts.php?built-in-mysql-functions-80098</link>
        <description></description>
        <pubDate>Sat, 11 Jul 2026 13:24:57 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;built-in-mysql-functions-80098" rel="self" type="application/rss+xml" />

                <item>
          <title>built in mysql functions</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236848#post2236848</link>
          <description><![CDATA[<p>Thank you Claire!</p>]]></description>
          <pubDate>Wed, 10 Jun 2015 08:04:56 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236848#post2236848</guid>
        </item>
                <item>
          <title>built in mysql functions</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236847#post2236847</link>
          <description><![CDATA[<p>Hi Karls</p>
<p>This is not standard in PHP! Normally you'd want to escape every possible input, but the mysql functions built into CMSB handle escaping for arrays as a convenience.</p>]]></description>
          <pubDate>Wed, 10 Jun 2015 08:02:16 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236847#post2236847</guid>
        </item>
                <item>
          <title>built in mysql functions</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236846#post2236846</link>
          <description><![CDATA[<p>Hi Claire,</p>
<p>Thanks for the quick reply.</p>
<p>In this case (like below, sample from the generated Membership profile page) i don't need to escape the values.</p>
<p>Is this general in PHP (no need for escaping values in array) or the built-in functions are ready with escaping?</p>
<p>$colsToValues = array();<br />$colsToValues['agree_tos']   = $_REQUEST['agree_tos'];<br />$colsToValues['fullname']      = $_REQUEST['fullname'];<br />$colsToValues['username']   = coalesce( @$_REQUEST['username'], $_REQUEST['email'] ); // email is saved as username if username code (not this line) is commented out<br />$colsToValues['email']            = $_REQUEST['email'];<br />$colsToValues['updatedByUserNum'] = $CURRENT_USER['num'];<br />$colsToValues['updatedDate=']     = 'NOW()';<br />mysql_update(accountsTable(), $CURRENT_USER['num'], null, $colsToValues);</p>
<p>Thank you in advance,<br />Karls</p>]]></description>
          <pubDate>Wed, 10 Jun 2015 00:27:18 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236846#post2236846</guid>
        </item>
                <item>
          <title>built in mysql functions</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236842#post2236842</link>
          <description><![CDATA[<p>Hi Karls</p>
<p>If you're passing in an array, you shouldn't need to escape the data in the array. You should only need to escape if you're passing non-array variables, such as a string for a WHERE clause.</p>]]></description>
          <pubDate>Tue, 09 Jun 2015 17:40:04 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236842#post2236842</guid>
        </item>
                <item>
          <title>built in mysql functions</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236837#post2236837</link>
          <description><![CDATA[<p>Hi,</p>
<p>When i use the built in mysql functions (like mysql_update, mysql_insert), i should need escaping my posted data adding to array or the function is responsibly doing it already?</p>
<p>$colsToValues['firstname'] = $_REQUEST['firstname']; or $colsToValues['firstname'] = mysql_escape($_REQUEST['firstname']);</p>
<p>Please advise,<br />Karls</p>]]></description>
          <pubDate>Tue, 09 Jun 2015 12:34:53 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236837#post2236837</guid>
        </item>
              </channel>
    </rss>
  