<?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 Re: sql Address Select Statement in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-address-select-statement/m-p/630843#M58859</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks you guys very much for taking a look! I modified &amp;nbsp;&lt;A href="https://community.esri.com/people/bixb0012"&gt;bixb0012&lt;/A&gt; statement to include your recommendations.&amp;nbsp;&lt;/P&gt;&lt;P&gt;"select * from PERMITMASTER where ADDRESS LIKE '%" . $search . "%' "&lt;/P&gt;&lt;P&gt;I still get no results when entering 509 BERRY CT. However I can search BERRY CT and get results. It appears to be the the space after the numeric value in the address that is bombing it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a link to the actual page so you can take a look. thanks again guys!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.keytek.co/search-form.php" style="color: #2989c5; text-decoration: none;"&gt;www.keytek.co/search-form.php&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 May 2017 17:02:03 GMT</pubDate>
    <dc:creator>MeganWirth</dc:creator>
    <dc:date>2017-05-30T17:02:03Z</dc:date>
    <item>
      <title>sql Address Select Statement</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-address-select-statement/m-p/630837#M58853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Need help with a sql statement used to select a specific address. For example I have a database named musickey_TESTER, and a table named PERMITMASTER. I would like to select an exact record from the ADDRESS field. i.e 509 BERRY CT. I have tried many statements but can only get it to work searching on the address number.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what my statement looks like.&amp;nbsp;&lt;/P&gt;&lt;P&gt;"select * from PERMITMASTER where ADDRESS LIKE '%$search%' "&lt;/P&gt;&lt;P&gt;This produces no results however when I input just the numeric part of the address it will return any address with that number in the string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 May 2017 14:45:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-address-select-statement/m-p/630837#M58853</guid>
      <dc:creator>MeganWirth</dc:creator>
      <dc:date>2017-05-28T14:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: sql Address Select Statement</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-address-select-statement/m-p/630838#M58854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is helpful to post the SQL you have tried, and what the results are compared to what you are expecting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 May 2017 15:18:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-address-select-statement/m-p/630838#M58854</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-05-28T15:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: sql Address Select Statement</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-address-select-statement/m-p/630839#M58855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If target is&amp;nbsp;an exact record did you try using the Equal operator.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;select * from PERMITMASTER where ADDRESS='&lt;SPAN&gt;509 BERRY CT&lt;/SPAN&gt;'&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 May 2017 06:52:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-address-select-statement/m-p/630839#M58855</guid>
      <dc:creator>MirHashmi</dc:creator>
      <dc:date>2017-05-29T06:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: sql Address Select Statement</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-address-select-statement/m-p/630840#M58856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for taking a look. Yes I have tried that. The $search in the statement is tied to a user defined form field.&lt;/P&gt;&lt;P&gt;Here is the entire php code.&lt;/P&gt;&lt;P&gt;// Search from MySQL database table&lt;BR /&gt;$search=$_POST['search'];&lt;BR /&gt;$query = $pdo-&amp;gt;prepare("select * from PERMITMASTER where ADDRESS LIKE '%$search%' ");&lt;BR /&gt;$query-&amp;gt;bindValue(1, "%$search%", PDO::PARAM_STR);&lt;BR /&gt;$query-&amp;gt;execute();&lt;BR /&gt;// Display search result&lt;BR /&gt; if (!$query-&amp;gt;rowCount() == 0) {&lt;BR /&gt; echo "Search found :&amp;lt;br/&amp;gt;";&lt;BR /&gt; echo "&amp;lt;table style=\"font-family:arial;color:#333333;\"&amp;gt;"; &lt;BR /&gt; echo "&amp;lt;tr&amp;gt;&amp;lt;td style=\"border-style:solid;border-width:1px;border-color:#98bf21;background:#98bf21;\"&amp;gt;ADDRESS&amp;lt;/td&amp;gt;&amp;lt;td style=\"border-style:solid;border-width:1px;border-color:#98bf21;background:#98bf21;\"&amp;gt;PERMIT TYPE&amp;lt;/td&amp;gt;&amp;lt;td style=\"border-style:solid;border-width:1px;border-color:#98bf21;background:#98bf21;\"&amp;gt;PERMIT DOCUMENT&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;"; &lt;BR /&gt; while ($results = $query-&amp;gt;fetch()) {&lt;BR /&gt; echo "&amp;lt;tr&amp;gt;&amp;lt;td style=\"border-style:solid;border-width:1px;border-color:#98bf21;\"&amp;gt;"; &lt;BR /&gt; echo $results['ADDRESS'];&lt;BR /&gt; echo "&amp;lt;/td&amp;gt;&amp;lt;td style=\"border-style:solid;border-width:1px;border-color:#98bf21;\"&amp;gt;";&lt;BR /&gt; echo $results['PERMIT TYPE'];&lt;BR /&gt; echo "&amp;lt;/td&amp;gt;&amp;lt;td style=\"border-style:solid;border-width:1px;border-color:#98bf21;\"&amp;gt;";&lt;BR /&gt; echo $results['PERMIT DOCUMENT'];&lt;BR /&gt; echo "&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;"; &lt;BR /&gt; }&lt;BR /&gt; echo "&amp;lt;/table&amp;gt;"; &lt;BR /&gt; } else {&lt;BR /&gt; echo 'Nothing found';&lt;BR /&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 May 2017 13:34:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-address-select-statement/m-p/630840#M58856</guid>
      <dc:creator>MeganWirth</dc:creator>
      <dc:date>2017-05-29T13:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: sql Address Select Statement</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-address-select-statement/m-p/630841#M58857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't work with MySQL much, or PHP at all, but I work with other SQL variants a fair amount.&amp;nbsp; Are you sure your variable substitution is correct?&amp;nbsp; To me, it looks like you are searching on &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;$search&lt;/SPAN&gt;, the actual text, and not the value behind the variable.&amp;nbsp; What about if you change the SQL line to read:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;$query = $pdo-&amp;gt;prepare("select * from PERMITMASTER where ADDRESS LIKE '%" + $search + "%' ");&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Also, what about capitalization?&amp;nbsp; You could &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;UCASE&lt;/SPAN&gt; both the search condition and field values to eliminate any case sensitivity.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 May 2017 20:11:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-address-select-statement/m-p/630841#M58857</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-05-29T20:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: sql Address Select Statement</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-address-select-statement/m-p/630842#M58858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;Just to add a little more to @JoshuaBixby's reply. Instead of "+" sign use "." which is used for &lt;A href="http://php.net/manual/en/language.operators.string.php"&gt;string concatenation in php&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-php line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="string token"&gt;'%".$search."%'&lt;/SPAN&gt;"&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 07:03:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-address-select-statement/m-p/630842#M58858</guid>
      <dc:creator>MirHashmi</dc:creator>
      <dc:date>2017-05-30T07:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: sql Address Select Statement</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-address-select-statement/m-p/630843#M58859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks you guys very much for taking a look! I modified &amp;nbsp;&lt;A href="https://community.esri.com/people/bixb0012"&gt;bixb0012&lt;/A&gt; statement to include your recommendations.&amp;nbsp;&lt;/P&gt;&lt;P&gt;"select * from PERMITMASTER where ADDRESS LIKE '%" . $search . "%' "&lt;/P&gt;&lt;P&gt;I still get no results when entering 509 BERRY CT. However I can search BERRY CT and get results. It appears to be the the space after the numeric value in the address that is bombing it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a link to the actual page so you can take a look. thanks again guys!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.keytek.co/search-form.php" style="color: #2989c5; text-decoration: none;"&gt;www.keytek.co/search-form.php&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 17:02:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-address-select-statement/m-p/630843#M58859</guid>
      <dc:creator>MeganWirth</dc:creator>
      <dc:date>2017-05-30T17:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: sql Address Select Statement</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-address-select-statement/m-p/630844#M58860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tested through your page. &amp;nbsp;Right now what is happening is that the query is kind of looking for the whole term "&lt;SPAN style="background-color: #ffffff;"&gt;509 BERRY CT" but trying to maintain the position of each word within it. &amp;nbsp;Instead if we break this whole term into words&amp;nbsp;and send to the query it will return the results wherever it finds each word regardless of its position. &amp;nbsp;So in your backend page check for spaces for the input and substitute those with "%" and send to query.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;For example:&amp;nbsp;&lt;SPAN&gt;509%BERRY%CT&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/354601_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This above screen shot from your page returned me results with the address having 509.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 07:22:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-address-select-statement/m-p/630844#M58860</guid>
      <dc:creator>MirHashmi</dc:creator>
      <dc:date>2017-05-31T07:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: sql Address Select Statement</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-address-select-statement/m-p/630845#M58861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Mir! We are so close. Is there a way the user can enter a literal string 509 BERRY CT in the search without having to enter a wildcard?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 20:02:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-address-select-statement/m-p/630845#M58861</guid>
      <dc:creator>MeganWirth</dc:creator>
      <dc:date>2017-05-31T20:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: sql Address Select Statement</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-address-select-statement/m-p/630846#M58862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This wildcard need not be entered by the end user. &amp;nbsp;Below are the steps you will have to implement.&lt;/P&gt;&lt;P&gt;1. User submits the literal string eg."509 BERRY CT" to your php page.&lt;/P&gt;&lt;P&gt;2. In php page break this string into multiple words.&lt;/P&gt;&lt;P&gt;3. Parse multiple words with wildcard character.&lt;/P&gt;&lt;P&gt;4. Send this new parsed string to the query.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code could be something like below.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="variable token"&gt;$search&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"509 BERRY CT"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="variable token"&gt;$multipleWords&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;explode&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;" "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="variable token"&gt;$search&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="variable token"&gt;$parsedTerm&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"%"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;foreach&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="variable token"&gt;$multipleWords&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; &lt;SPAN class="variable token"&gt;$word&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="variable token"&gt;$parsedTerm&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="variable token"&gt;$word&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"%"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&amp;nbsp; 
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

&lt;SPAN class="variable token"&gt;$query&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="variable token"&gt;$pdo&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;prepare&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"select * from PERMITMASTER where ADDRESS LIKE '"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="variable token"&gt;$parsedTerm&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"'"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a&lt;A href="http://sandbox.onlinephpfunctions.com/code/a766d6bdace29d2d675baa372310b9916e32c96d" rel="nofollow noopener noreferrer" target="_blank"&gt; php sandbox link &lt;/A&gt;with a working snippet for this case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:50:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-address-select-statement/m-p/630846#M58862</guid>
      <dc:creator>MirHashmi</dc:creator>
      <dc:date>2021-12-12T02:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: sql Address Select Statement</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-address-select-statement/m-p/630847#M58863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much sir! with a slight modification it is now up and running!&amp;nbsp;&lt;/P&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; font-size: 14px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN class="" style="color: #ee9900; border: 0px; font-weight: inherit; font-size: 14px;"&gt;$search&lt;/SPAN&gt; &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit; font-size: 14px;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #669900; border: 0px; font-weight: inherit; font-size: 14px;"&gt;"509 BERRY CT"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;; changed to $search=$_POST['search']; in order for the user defined form entry to work.&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My only issue now is to be able to return the DOCUMENTS field as a hyperlink with a friendly name.&lt;BR /&gt; echo $results['PERMIT DOCUMENT'];&lt;BR /&gt;Thanks again &lt;A href="https://community.esri.com/people/mirhashmi2014"&gt;mirhashmi2014&lt;/A&gt;‌ and &lt;A href="https://community.esri.com/people/bixb0012"&gt;bixb0012&lt;/A&gt;‌ greatly appreciate your efforts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 14:51:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-address-select-statement/m-p/630847#M58863</guid>
      <dc:creator>MeganWirth</dc:creator>
      <dc:date>2017-06-01T14:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: sql Address Select Statement</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-address-select-statement/m-p/630848#M58864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think something like below should work for you.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;// define friendly name&lt;/SPAN&gt;
&lt;SPAN class="variable token"&gt;$permitDocument&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="variable token"&gt;$results&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'PERMIT DOCUMENT'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;strcasecmp&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="variable token"&gt;$permitDocument&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'123456'&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; &lt;SPAN class="variable token"&gt;$friendlyName&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"ABC"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;echo&lt;/SPAN&gt; "&lt;SPAN class="markup token"&gt;&amp;lt;a href='".$results['PERMIT DOCUMENT']."'&amp;gt;&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍&lt;SPAN class="string token"&gt;".$friendlyName."&lt;/SPAN&gt;&lt;SPAN class="markup token"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;/&lt;/SPAN&gt;a&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;"&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:50:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-address-select-statement/m-p/630848#M58864</guid>
      <dc:creator>MirHashmi</dc:creator>
      <dc:date>2021-12-12T02:50:35Z</dc:date>
    </item>
  </channel>
</rss>

