<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>PHPOnlineSupport - Recent questions and answers</title>
<link>http://phponlinesupport.com/qa</link>
<description>Powered by Portrave Solutions Pvt. Ltd.</description>
<item>
<title>Answered: How to solve warning error on php?</title>
<link>http://phponlinesupport.com/412/how-to-solve-warning-error-on-php?show=451#a451</link>
<description>

&lt;p&gt;&lt;span style=&quot;color:#202124; font-family:arial, sans-serif&quot;&gt;A warning error in PHP does not stop the script from running. It only warns you that there is a problem,&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://gbplusmod.com/download-fm-whatsapp-apk/&quot;&gt;&lt;span style=&quot;color:#ffffff&quot;&gt;&lt;span style=&quot;font-family:arial, sans-serif&quot;&gt;FMWhatsapp&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/412/how-to-solve-warning-error-on-php?show=451#a451</guid>
<pubDate>Fri, 05 Aug 2022 11:33:28 +0000</pubDate>
</item>
<item>
<title>Answered: The server requested authentication method unknown to the client</title>
<link>http://phponlinesupport.com/435/the-server-requested-authentication-method-unknown-client?show=437#a437</link>
<description>

&lt;div class=&quot;s-prose js-post-body&quot; itemprop=&quot;text&quot;&gt;

&lt;p&gt;Just change your cpanel password and it will work.&lt;/p&gt;&lt;/div&gt;

&lt;p&gt;If the option checkbox for updating the mysql password is also present , check that also while updating the cpanel password.&lt;/p&gt;</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/435/the-server-requested-authentication-method-unknown-client?show=437#a437</guid>
<pubDate>Wed, 16 Feb 2022 12:43:36 +0000</pubDate>
</item>
<item>
<title>Answered: json_encode Uncaught SyntaxError: JSON.parse: unexpected character at line 1 column 2 of the JSON data</title>
<link>http://phponlinesupport.com/433/jsonencode-uncaught-syntaxerror-unexpected-character-column?show=434#a434</link>
<description>That JSON is already parsed. You dont need to parse it again which will produce that error. Remove that line and it should work ok.</description>
<category>Javascript</category>
<guid isPermaLink="true">http://phponlinesupport.com/433/jsonencode-uncaught-syntaxerror-unexpected-character-column?show=434#a434</guid>
<pubDate>Thu, 03 Feb 2022 19:21:47 +0000</pubDate>
</item>
<item>
<title>Answered: Day.js date difference not working</title>
<link>http://phponlinesupport.com/431/day-js-date-difference-not-working?show=432#a432</link>
<description>In my experience, the day difference with format will not work. Its the same with moment.js and Day.js&lt;br /&gt;
&lt;br /&gt;
Try this&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var date1 = dayjs(field_data);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var date2 = dayjs();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var diff = date1.diff(date2, 'day');&lt;br /&gt;
&lt;br /&gt;
alert(diff);</description>
<category>Javascript</category>
<guid isPermaLink="true">http://phponlinesupport.com/431/day-js-date-difference-not-working?show=432#a432</guid>
<pubDate>Wed, 26 Jan 2022 21:34:31 +0000</pubDate>
</item>
<item>
<title>Answered: Find difference between two dates</title>
<link>http://phponlinesupport.com/429/find-difference-between-two-dates?show=430#a430</link>
<description>Yes, you can use Jquery calendar, Moment.js, Day.js etc&lt;br /&gt;
&lt;br /&gt;
I personanlly recommend the Day.js as its very lightweight&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script src=&amp;quot;&lt;a href=&quot;https://unpkg.com/dayjs@1.8.21/dayjs.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://unpkg.com/dayjs@1.8.21/dayjs.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/a&gt;&lt;br /&gt;
&amp;lt;script&amp;gt;dayjs().format()&amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;const date1 = dayjs('2019-01-25')&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;const date2 = dayjs('2019-01-26')&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var diff = date1.diff(date2, 'day')</description>
<category>Jquery</category>
<guid isPermaLink="true">http://phponlinesupport.com/429/find-difference-between-two-dates?show=430#a430</guid>
<pubDate>Wed, 26 Jan 2022 20:53:36 +0000</pubDate>
</item>
<item>
<title>Answered: How to format date and time in Day.js</title>
<link>http://phponlinesupport.com/427/how-to-format-date-and-time-in-day-js?show=428#a428</link>
<description>Take a look at&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://day.js.org/docs/en/display/format&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://day.js.org/docs/en/display/format&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Not sure what the problem is. You need to explain if there is a specific problem, then only we can help.</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/427/how-to-format-date-and-time-in-day-js?show=428#a428</guid>
<pubDate>Wed, 26 Jan 2022 20:44:44 +0000</pubDate>
</item>
<item>
<title>Answered: DataTables help unknown parameter for row</title>
<link>http://phponlinesupport.com/425/datatables-help-unknown-parameter-for-row?show=426#a426</link>
<description>Either you are not retrieving value for that said field.&lt;br /&gt;
&lt;br /&gt;
OR&lt;br /&gt;
&lt;br /&gt;
You are not returning value for that field from your render function.&lt;br /&gt;
&lt;br /&gt;
as a solution overall, you may add a default content wit the code like this&lt;br /&gt;
&lt;br /&gt;
{ &amp;quot;defaultContent&amp;quot;: &amp;quot;-&amp;quot;, &amp;quot;targets&amp;quot;: &amp;quot;_all&amp;quot; }</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/425/datatables-help-unknown-parameter-for-row?show=426#a426</guid>
<pubDate>Wed, 26 Jan 2022 20:00:55 +0000</pubDate>
</item>
<item>
<title>Answered: php get text after character</title>
<link>http://phponlinesupport.com/423/php-get-text-after-character?show=424#a424</link>
<description>

&lt;pre class=&quot;line-numbers language-php&quot;&gt;&lt;code class=&quot;language-php&quot;&gt;&lt;span class=&quot;language-php php token&quot;&gt;&lt;span class=&quot;delimiter important token&quot;&gt;&amp;lt;?php&lt;/span&gt;
&lt;span class=&quot;token variable&quot;&gt;$my_string&lt;/span&gt; &lt;span class=&quot;operator token&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;single-quoted-string string token&quot;&gt;'yourSomeText.AND another'&lt;/span&gt;&lt;span class=&quot;punctuation token&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;keyword token&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;function token&quot;&gt;substr&lt;/span&gt;&lt;span class=&quot;punctuation token&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;code class=&quot;language-php&quot;&gt;&lt;span class=&quot;language-php php token&quot;&gt;&lt;span class=&quot;token variable&quot;&gt;&lt;code class=&quot;language-php&quot;&gt;&lt;span class=&quot;language-php php token&quot;&gt;&lt;span class=&quot;token variable&quot;&gt;my_string&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;span class=&quot;punctuation token&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;function token&quot;&gt;strrpos&lt;/span&gt;&lt;span class=&quot;punctuation token&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;code class=&quot;language-php&quot;&gt;&lt;span class=&quot;language-php php token&quot;&gt;&lt;span class=&quot;token variable&quot;&gt;&lt;code class=&quot;language-php&quot;&gt;&lt;span class=&quot;language-php php token&quot;&gt;&lt;span class=&quot;token variable&quot;&gt;my_string&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;span class=&quot;punctuation token&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;single-quoted-string string token&quot;&gt;'.'&lt;/span&gt; &lt;span class=&quot;punctuation token&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;operator token&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;number token&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;punctuation token&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;operator token&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;double-quoted-string string token&quot;&gt;&quot;\n&quot;&lt;/span&gt;&lt;span class=&quot;punctuation token&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;delimiter important token&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/423/php-get-text-after-character?show=424#a424</guid>
<pubDate>Sun, 23 Jan 2022 20:25:15 +0000</pubDate>
</item>
<item>
<title>Answered: What are the different types of PHP variables?</title>
<link>http://phponlinesupport.com/418/what-are-the-different-types-of-php-variables?show=419#a419</link>
<description>

&lt;p style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; line-height: 1.7; word-break: break-word; color: rgb(74, 74, 74); font-family: &amp;quot;Open Sans&amp;quot;, sans-serif;&quot;&gt;&lt;span style=&quot;box-sizing:border-box&quot;&gt;There are 8&amp;nbsp;&lt;span style=&quot;box-sizing:border-box; font-weight:bolder&quot;&gt;data types&lt;/span&gt;&amp;nbsp;in PHP which are used to construct the variables:&lt;/span&gt;&lt;/p&gt;

&lt;ol style=&quot;box-sizing:border-box; color:#4a4a4a; font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; margin-bottom:1rem; margin-top:0px&quot;&gt;

&lt;li style=&quot;box-sizing: border-box; text-align: justify;&quot;&gt;&lt;span style=&quot;box-sizing:border-box&quot;&gt;&lt;span style=&quot;box-sizing:border-box; font-weight:bolder&quot;&gt;Integers&lt;/span&gt;&amp;nbsp;− are whole numbers, without a decimal point, like 4195.&lt;/span&gt;&lt;/li&gt;

&lt;li style=&quot;box-sizing: border-box; text-align: justify;&quot;&gt;&lt;span style=&quot;box-sizing:border-box&quot;&gt;&lt;span style=&quot;box-sizing:border-box; font-weight:bolder&quot;&gt;Doubles&lt;/span&gt;&amp;nbsp;− are floating-point numbers, like 3.14159 or 49.1.&lt;/span&gt;&lt;/li&gt;

&lt;li style=&quot;box-sizing: border-box; text-align: justify;&quot;&gt;&lt;span style=&quot;box-sizing:border-box&quot;&gt;&lt;span style=&quot;box-sizing:border-box; font-weight:bolder&quot;&gt;Booleans&lt;/span&gt;&amp;nbsp;− have only two possible values either true or false.&lt;/span&gt;&lt;/li&gt;

&lt;li style=&quot;box-sizing: border-box; text-align: justify;&quot;&gt;&lt;span style=&quot;box-sizing:border-box&quot;&gt;&lt;span style=&quot;box-sizing:border-box; font-weight:bolder&quot;&gt;NULL&lt;/span&gt;&amp;nbsp;− is a special type that only has one value: NULL.&lt;/span&gt;&lt;/li&gt;

&lt;li style=&quot;box-sizing: border-box; text-align: justify;&quot;&gt;&lt;span style=&quot;box-sizing:border-box&quot;&gt;&lt;span style=&quot;box-sizing:border-box; font-weight:bolder&quot;&gt;Strings&lt;/span&gt;&amp;nbsp;− are sequences of characters, like ‘PHP supports string operations.’&lt;/span&gt;&lt;/li&gt;

&lt;li style=&quot;box-sizing: border-box; text-align: justify;&quot;&gt;&lt;span style=&quot;box-sizing:border-box&quot;&gt;&lt;span style=&quot;box-sizing:border-box; font-weight:bolder&quot;&gt;Arrays&lt;/span&gt;&amp;nbsp;− are named and indexed collections of other values.&lt;/span&gt;&lt;/li&gt;

&lt;li style=&quot;box-sizing: border-box; text-align: justify;&quot;&gt;&lt;span style=&quot;box-sizing:border-box&quot;&gt;&lt;span style=&quot;box-sizing:border-box; font-weight:bolder&quot;&gt;Objects&lt;/span&gt;&amp;nbsp;− are instances of programmer-defined classes, which can package up both other kinds of values and functions that are specific to the class.&lt;/span&gt;&lt;/li&gt;

&lt;li style=&quot;box-sizing: border-box; text-align: justify;&quot;&gt;&lt;span style=&quot;box-sizing:border-box&quot;&gt;&lt;span style=&quot;box-sizing:border-box; font-weight:bolder&quot;&gt;Resources&lt;/span&gt;&amp;nbsp;− are special variables that hold references to resources external to PHP.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/418/what-are-the-different-types-of-php-variables?show=419#a419</guid>
<pubDate>Fri, 29 Oct 2021 10:06:08 +0000</pubDate>
</item>
<item>
<title>Answered: What is PEAR in PHP?</title>
<link>http://phponlinesupport.com/414/what-is-pear-in-php?show=417#a417</link>
<description>

&lt;p&gt;&lt;span style=&quot;color:#4a4a4a; font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; text-align:justify&quot;&gt;PEAR is a&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing:border-box; color:#4a4a4a; font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; font-weight:bolder; text-align:justify&quot;&gt;framework&lt;/span&gt;&lt;span style=&quot;color:#4a4a4a; font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; text-align:justify&quot;&gt;&amp;nbsp;and repository for reusable PHP components. PEAR stands for&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing:border-box; color:#4a4a4a; font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; font-weight:bolder; text-align:justify&quot;&gt;PHP Extension and Application Repository&lt;/span&gt;&lt;span style=&quot;color:#4a4a4a; font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; text-align:justify&quot;&gt;. It contains all types of PHP code snippets and libraries. It also provides a command line interface to install “packages” automatically.&lt;/span&gt;&lt;/p&gt;</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/414/what-is-pear-in-php?show=417#a417</guid>
<pubDate>Fri, 29 Oct 2021 09:57:37 +0000</pubDate>
</item>
<item>
<title>Answered: What is the meaning of ‘escaping to PHP’</title>
<link>http://phponlinesupport.com/415/what-is-the-meaning-of-escaping-to-php?show=416#a416</link>
<description>

&lt;p&gt;&lt;span style=&quot;color:#4a4a4a; font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; text-align:justify&quot;&gt;The PHP parsing engine needs a way to&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing:border-box; color:#4a4a4a; font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; font-weight:bolder; text-align:justify&quot;&gt;differentiate&lt;/span&gt;&lt;span style=&quot;color:#4a4a4a; font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; text-align:justify&quot;&gt;&amp;nbsp;PHP code from other elements in the page. The mechanism for doing so is known as ‘escaping to PHP’. Escaping a string means to reduce&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing:border-box; color:#4a4a4a; font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; font-weight:bolder; text-align:justify&quot;&gt;ambiguity&lt;/span&gt;&lt;span style=&quot;color:#4a4a4a; font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; text-align:justify&quot;&gt;&amp;nbsp;in quotes used in that string.&lt;/span&gt;&lt;/p&gt;</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/415/what-is-the-meaning-of-escaping-to-php?show=416#a416</guid>
<pubDate>Fri, 29 Oct 2021 09:55:07 +0000</pubDate>
</item>
<item>
<title>PHP: Can PHP cURL retrieve response headers AND body in a single request?</title>
<link>http://phponlinesupport.com/413/php-can-curl-retrieve-response-headers-body-single-request</link>
<description></description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/413/php-can-curl-retrieve-response-headers-body-single-request</guid>
<pubDate>Fri, 29 Oct 2021 09:44:18 +0000</pubDate>
</item>
<item>
<title>How notice error displayed on php program?</title>
<link>http://phponlinesupport.com/411/how-notice-error-displayed-on-php-program</link>
<description></description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/411/how-notice-error-displayed-on-php-program</guid>
<pubDate>Mon, 04 Oct 2021 04:17:03 +0000</pubDate>
</item>
<item>
<title>Answered: Disable firefox startup popup update notification</title>
<link>http://phponlinesupport.com/404/disable-firefox-startup-popup-update-notification?show=408#a408</link>
<description>

&lt;div class=&quot;content&quot;&gt;

&lt;p&gt;Check this pref on the &lt;strong&gt;about:config&lt;/strong&gt; page:&lt;/p&gt;

&lt;ul&gt;

&lt;li&gt;app.update.doorhanger = false&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/404/disable-firefox-startup-popup-update-notification?show=408#a408</guid>
<pubDate>Wed, 29 Sep 2021 19:14:37 +0000</pubDate>
</item>
<item>
<title>Answered: How to delete an ArduinoJson nested key</title>
<link>http://phponlinesupport.com/406/how-to-delete-an-arduinojson-nested-key?show=407#a407</link>
<description>

&lt;p&gt;If you are using the v5 of ArduinoJson&lt;/p&gt;

&lt;p&gt;doc[&lt;span class=&quot;pl-s&quot;&gt;&lt;span class=&quot;pl-pds&quot;&gt;&quot;&lt;/span&gt;H&lt;span class=&quot;pl-pds&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;].remove(&lt;span class=&quot;pl-s&quot;&gt;&lt;span class=&quot;pl-pds&quot;&gt;&quot;&lt;/span&gt;J&lt;span class=&quot;pl-pds&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;);&lt;/p&gt;

&lt;p&gt;If you are using the v6 of ArduinoJson&lt;/p&gt;

&lt;pre&gt;JsonObject&amp;amp; hobj = root[&lt;span class=&quot;pl-s&quot;&gt;&lt;span class=&quot;pl-pds&quot;&gt;&quot;&lt;/span&gt;H&lt;span class=&quot;pl-pds&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;];
hobj.remove(&lt;span class=&quot;pl-s&quot;&gt;&lt;span class=&quot;pl-pds&quot;&gt;&quot;&lt;/span&gt;J&lt;span class=&quot;pl-pds&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;);&lt;/pre&gt;</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/406/how-to-delete-an-arduinojson-nested-key?show=407#a407</guid>
<pubDate>Wed, 29 Sep 2021 18:37:25 +0000</pubDate>
</item>
<item>
<title>Answered: XCTU not detecting my Xbee</title>
<link>http://phponlinesupport.com/402/xctu-not-detecting-my-xbee?show=403#a403</link>
<description>Could be there a handful of reasons. But you can try the below as your best bet.&lt;br /&gt;
&lt;br /&gt;
Firstly do the scan resetting the options to default.&lt;br /&gt;
&lt;br /&gt;
Send an AT command to reset the Xbee all to its default settings through its serial using an Arduino or something.&lt;br /&gt;
&lt;br /&gt;
Should do the magic for you.</description>
<category>XBee</category>
<guid isPermaLink="true">http://phponlinesupport.com/402/xctu-not-detecting-my-xbee?show=403#a403</guid>
<pubDate>Fri, 24 Sep 2021 18:51:22 +0000</pubDate>
</item>
<item>
<title>Answered: Why can't I change XBEE channel in XCTU</title>
<link>http://phponlinesupport.com/400/why-cant-i-change-xbee-channel-in-xctu?show=401#a401</link>
<description>I think you are referring to the CH value? If so, that cannot be changed. It's readable only.&lt;br /&gt;
&lt;br /&gt;
It should be the SC that you are looking for. Generally the below should be the min to do.&lt;br /&gt;
&lt;br /&gt;
PAN ID (ID). Every node should have the same value.&lt;br /&gt;
Scan Channels (SC). Every node should have the same value.&lt;br /&gt;
Channel Verification (JV). This setting should be enabled to ensure there is a coordinator in the network.&lt;br /&gt;
&lt;br /&gt;
If you have a secured network, and if you don't want to loose the modules after power cycle, you can set JV=0 so that the module retain its parent and search for the parent in the specified PAN ID after power ON. In your case as said, CH value cannot be changed. It is Read-Only parameter. You can issue NR0 to reset the networking parameters. Or write the firmware again with default settings.</description>
<category>XBee</category>
<guid isPermaLink="true">http://phponlinesupport.com/400/why-cant-i-change-xbee-channel-in-xctu?show=401#a401</guid>
<pubDate>Thu, 23 Sep 2021 18:24:40 +0000</pubDate>
</item>
<item>
<title>Answered: Detect Serial1 on Arduino UNO and MEGA</title>
<link>http://phponlinesupport.com/254/detect-serial1-on-arduino-uno-and-mega?show=399#a399</link>
<description>You can use HAVE_HWSERIAL1, HAVE_HWSERIAL2 etc etc. See below I used for my xbee. If mega, the xbee is supposed to run on Serial1 and while on a UNO its supposed to be with the Serial&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;#ifdef HAVE_HWSERIAL1&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Serial1.begin(BAUDRATE);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;myArduino.xbee.setSerial(Serial1);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;#else&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;myArduino.xbee.setSerial(Serial);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;#endif</description>
<category>Arduino</category>
<guid isPermaLink="true">http://phponlinesupport.com/254/detect-serial1-on-arduino-uno-and-mega?show=399#a399</guid>
<pubDate>Thu, 23 Sep 2021 17:22:03 +0000</pubDate>
</item>
<item>
<title>Answered: Restart arduino using code</title>
<link>http://phponlinesupport.com/397/restart-arduino-using-code?show=398#a398</link>
<description>write the function as below.&lt;br /&gt;
&lt;br /&gt;
void(* resetFunc) (void) = 0;&lt;br /&gt;
&lt;br /&gt;
then call it as you need&lt;br /&gt;
&lt;br /&gt;
resetFunc();</description>
<category>Arduino</category>
<guid isPermaLink="true">http://phponlinesupport.com/397/restart-arduino-using-code?show=398#a398</guid>
<pubDate>Sun, 19 Sep 2021 18:12:35 +0000</pubDate>
</item>
<item>
<title>Answered: Can Arduino Baud Rate be changed at Runtime?</title>
<link>http://phponlinesupport.com/395/can-arduino-baud-rate-be-changed-at-runtime?show=396#a396</link>
<description>Serial.begin(9600);&lt;br /&gt;
while(Serial.available()) Serial.read();&lt;br /&gt;
&lt;br /&gt;
// Do some ping-pong and check if something is coming along.&lt;br /&gt;
// If not change the Baud and try again&lt;br /&gt;
&lt;br /&gt;
Serial.flush();&lt;br /&gt;
Serial.begin(115200);&lt;br /&gt;
while(Serial.available()) Serial.read();</description>
<category>Arduino</category>
<guid isPermaLink="true">http://phponlinesupport.com/395/can-arduino-baud-rate-be-changed-at-runtime?show=396#a396</guid>
<pubDate>Sun, 19 Sep 2021 17:55:59 +0000</pubDate>
</item>
<item>
<title>Answered: MongoDB running on MAC - directory /data/db not found</title>
<link>http://phponlinesupport.com/380/mongodb-running-on-mac-directory-data-db-not-found?show=394#a394</link>
<description>

&lt;p&gt;Create new folder in the root &lt;code&gt;sudo mkdir -p /data/db/&lt;/code&gt; and then run the following command&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sudo chown `id -u` /data/db&lt;/code&gt;&lt;/pre&gt;</description>
<category>MongoDB</category>
<guid isPermaLink="true">http://phponlinesupport.com/380/mongodb-running-on-mac-directory-data-db-not-found?show=394#a394</guid>
<pubDate>Sun, 19 Sep 2021 17:29:30 +0000</pubDate>
</item>
<item>
<title>Answered: ArduinoJSON to char</title>
<link>http://phponlinesupport.com/390/arduinojson-to-char?show=393#a393</link>
<description>Try&lt;br /&gt;
&lt;br /&gt;
root[&amp;quot;H&amp;quot;].as&amp;lt;String&amp;gt;().toCharArray(charVar, KEY_SIZE);</description>
<category>Arduino</category>
<guid isPermaLink="true">http://phponlinesupport.com/390/arduinojson-to-char?show=393#a393</guid>
<pubDate>Sun, 19 Sep 2021 17:27:29 +0000</pubDate>
</item>
<item>
<title>Answered: Fix for “invalid use of non-static member function” in a library</title>
<link>http://phponlinesupport.com/391/fix-for-invalid-use-of-non-static-member-function-in-library?show=392#a392</link>
<description>Ok, so you are trying to call a callback function which should indeed work like this. Wrap that class function to another function like this.&lt;br /&gt;
&lt;br /&gt;
data_retry_timer = myArduino.arduino_timer.setInterval(PIN_DATA_SEND_RETRY_INTERVAL*1500, arduino_try_any_pending_server_updates);&lt;br /&gt;
&lt;br /&gt;
void arduino_try_any_pending_server_updates()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;myArduino.arduino_try_any_pending_server_updates();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
This should work, I have not tested though.</description>
<category>Arduino</category>
<guid isPermaLink="true">http://phponlinesupport.com/391/fix-for-invalid-use-of-non-static-member-function-in-library?show=392#a392</guid>
<pubDate>Sun, 19 Sep 2021 17:25:02 +0000</pubDate>
</item>
<item>
<title>Answered: What is the difference between public, private, and protected?</title>
<link>http://phponlinesupport.com/378/what-is-the-difference-between-public-private-and-protected?show=379#a379</link>
<description>

&lt;ul&gt;

&lt;li&gt;&lt;strong&gt;Public&lt;/strong&gt; scope to make that property/method available from anywhere, other classes and instances of the object.&lt;/li&gt;

&lt;li&gt;&lt;strong&gt;Private&lt;/strong&gt; scope when you want your property/method to be visible in its own class only.&lt;/li&gt;

&lt;li&gt;&lt;strong&gt;Protected&lt;/strong&gt; scope when you want to make your property/method visible in all classes that extend current class including the parent class.&lt;/li&gt;&lt;/ul&gt;

&lt;div&gt;&lt;/div&gt;

&lt;div&gt;&lt;/div&gt;</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/378/what-is-the-difference-between-public-private-and-protected?show=379#a379</guid>
<pubDate>Fri, 04 Jun 2021 04:48:03 +0000</pubDate>
</item>
<item>
<title>Answered: Getting Current date, time , day in laravel</title>
<link>http://phponlinesupport.com/376/getting-current-date-time-day-in-laravel?show=377#a377</link>
<description>

&lt;p&gt;Laravel has the &lt;em&gt;&lt;strong&gt;Carbon&lt;/strong&gt;&lt;/em&gt; dependency attached to it.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Carbon::now()&lt;/strong&gt;&lt;/em&gt;, include the &lt;em&gt;&lt;strong&gt;Carbon\Carbon&lt;/strong&gt;&lt;/em&gt; namespace if necessary.&lt;/p&gt;

&lt;p&gt;Edit (usage and docs)&lt;/p&gt;

&lt;p&gt;Say I want to retrieve the date and time and output it as a string.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;$mytime = Carbon\Carbon::now();&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;echo $mytime-&amp;gt;toDateTimeString();&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;This will output in the usual format of &lt;em&gt;&lt;strong&gt;Y-m-d H:i:s&lt;/strong&gt;&lt;/em&gt;, there are many pre-created formats and you will unlikely need to mess with PHP date time strings again with Carbon.&lt;/p&gt;</description>
<category>Laravel</category>
<guid isPermaLink="true">http://phponlinesupport.com/376/getting-current-date-time-day-in-laravel?show=377#a377</guid>
<pubDate>Thu, 03 Jun 2021 09:56:44 +0000</pubDate>
</item>
<item>
<title>Answered: Get the Last Inserted Id Using Laravel Eloquent</title>
<link>http://phponlinesupport.com/374/get-the-last-inserted-id-using-laravel-eloquent?show=375#a375</link>
<description>

&lt;p&gt;After save, $data-&amp;gt;id should be the last id inserted.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;$data-&amp;gt;save();&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;$data-&amp;gt;id;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Can be used like this.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;return Response::json(array('success' =&amp;gt; true, 'last_insert_id' =&amp;gt; $data-&amp;gt;id), 200);&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;For updated laravel version try this&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;return response()-&amp;gt;json(array('success' =&amp;gt; true, 'last_insert_id' =&amp;gt; $data-&amp;gt;id), 200);&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;</description>
<category>MySQL</category>
<guid isPermaLink="true">http://phponlinesupport.com/374/get-the-last-inserted-id-using-laravel-eloquent?show=375#a375</guid>
<pubDate>Thu, 03 Jun 2021 09:29:37 +0000</pubDate>
</item>
<item>
<title>Answered: How to fix repeating data from SQL join?</title>
<link>http://phponlinesupport.com/372/how-to-fix-repeating-data-from-sql-join?show=373#a373</link>
<description>

&lt;pre class=&quot;lang-sql s-code-block hljs&quot; style=&quot;margin-top: 0px; margin-bottom: 0px; padding: 12px; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: 1.30769; vertical-align: baseline; box-sizing: inherit; width: auto; max-height: 600px; overflow: auto; background-color: var(--highlight-bg); border-radius: 5px; overflow-wrap: normal;&quot;&gt;&lt;code style=&quot;margin: 0px; padding: 0px; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: inherit; vertical-align: baseline; box-sizing: inherit; background-color: transparent;&quot;&gt;&lt;span style=&quot;border:0px; box-sizing:inherit; font-stretch:inherit; font-variant-east-asian:inherit; font-variant-numeric:inherit; line-height:inherit; margin:0px; padding:0px; vertical-align:baseline&quot; class=&quot;hljs-keyword&quot;&gt;&lt;span style=&quot;font-family:sans-serif, Arial, Verdana, Trebuchet MS, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol&quot;&gt;&lt;span style=&quot;font-size:13px&quot;&gt;Include the date comparison in the on clause:&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;pre class=&quot;lang-sql s-code-block hljs&quot; style=&quot;margin-top: 0px; margin-bottom: 0px; padding: 12px; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: 1.30769; font-family: var(--ff-mono); font-size: 13px; vertical-align: baseline; box-sizing: inherit; width: auto; max-height: 600px; overflow: auto; background-color: var(--highlight-bg); border-radius: 5px; color: var(--highlight-color); overflow-wrap: normal;&quot;&gt;&lt;code style=&quot;margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; box-sizing: inherit; background-color: transparent; white-space: inherit;&quot;&gt;&lt;span style=&quot;border:0px; box-sizing:inherit; color:var(--highlight-keyword); font-family:inherit; font-stretch:inherit; font-style:inherit; font-variant:inherit; font-weight:inherit; line-height:inherit; margin:0px; padding:0px; vertical-align:baseline&quot; class=&quot;hljs-keyword&quot;&gt;FROM&lt;/span&gt; table1 &lt;span style=&quot;border:0px; box-sizing:inherit; color:var(--highlight-keyword); font-family:inherit; font-stretch:inherit; font-style:inherit; font-variant:inherit; font-weight:inherit; line-height:inherit; margin:0px; padding:0px; vertical-align:baseline&quot; class=&quot;hljs-keyword&quot;&gt;JOIN&lt;/span&gt;
     table2
     &lt;span style=&quot;border:0px; box-sizing:inherit; color:var(--highlight-keyword); font-family:inherit; font-stretch:inherit; font-style:inherit; font-variant:inherit; font-weight:inherit; line-height:inherit; margin:0px; padding:0px; vertical-align:baseline&quot; class=&quot;hljs-keyword&quot;&gt;ON&lt;/span&gt; table1.PERSON_ID &lt;span style=&quot;border:0px; box-sizing:inherit; font-family:inherit; font-stretch:inherit; font-style:inherit; font-variant:inherit; font-weight:inherit; line-height:inherit; margin:0px; padding:0px; vertical-align:baseline&quot; class=&quot;hljs-operator&quot;&gt;=&lt;/span&gt; table2.PERSON_ID &lt;span style=&quot;border:0px; box-sizing:inherit; color:var(--highlight-keyword); font-family:inherit; font-stretch:inherit; font-style:inherit; font-variant:inherit; font-weight:inherit; line-height:inherit; margin:0px; padding:0px; vertical-align:baseline&quot; class=&quot;hljs-keyword&quot;&gt;AND&lt;/span&gt;
        table2.EFFECTIVE_DATE &lt;span style=&quot;border:0px; box-sizing:inherit; color:var(--highlight-keyword); font-family:inherit; font-stretch:inherit; font-style:inherit; font-variant:inherit; font-weight:inherit; line-height:inherit; margin:0px; padding:0px; vertical-align:baseline&quot; class=&quot;hljs-keyword&quot;&gt;BETWEEN&lt;/span&gt; table1.START_OF_SCHOOL &lt;span style=&quot;border:0px; box-sizing:inherit; color:var(--highlight-keyword); font-family:inherit; font-stretch:inherit; font-style:inherit; font-variant:inherit; font-weight:inherit; line-height:inherit; margin:0px; padding:0px; vertical-align:baseline&quot; class=&quot;hljs-keyword&quot;&gt;AND&lt;/span&gt; table1.END_OF_SCHOOL &lt;/code&gt;&lt;/pre&gt;</description>
<category>MySQL</category>
<guid isPermaLink="true">http://phponlinesupport.com/372/how-to-fix-repeating-data-from-sql-join?show=373#a373</guid>
<pubDate>Thu, 03 Jun 2021 09:07:16 +0000</pubDate>
</item>
<item>
<title>Answered: Get tables which using [DEFAULT CURRENT_TIMESTAMP] in mysql?</title>
<link>http://phponlinesupport.com/368/get-tables-which-using-default-currenttimestamp-in-mysql?show=369#a369</link>
<description>

&lt;pre class=&quot;lang-sql s-code-block hljs&quot; style=&quot;margin-top: 0px; margin-bottom: 0px; padding: 12px; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: 1.30769; font-family: var(--ff-mono); font-size: 13px; vertical-align: baseline; box-sizing: inherit; width: auto; max-height: 600px; overflow: auto; background-color: var(--highlight-bg); border-radius: 5px; color: var(--highlight-color); overflow-wrap: normal;&quot;&gt;&lt;span style=&quot;font-family:Times New Roman,Times,serif&quot;&gt;&lt;span style=&quot;font-size:14px&quot;&gt;&lt;code style=&quot;margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; box-sizing: inherit; background-color: transparent; white-space: inherit;&quot;&gt;&lt;span style=&quot;border:0px; box-sizing:inherit; color:var(--highlight-keyword); font-stretch:inherit; font-style:inherit; font-variant:inherit; font-weight:inherit; line-height:inherit; margin:0px; padding:0px; vertical-align:baseline&quot; class=&quot;hljs-keyword&quot;&gt;Use,&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;

&lt;pre class=&quot;lang-sql s-code-block hljs&quot; style=&quot;margin-top: 0px; margin-bottom: 0px; padding: 12px; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: 1.30769; font-family: var(--ff-mono); font-size: 13px; vertical-align: baseline; box-sizing: inherit; width: auto; max-height: 600px; overflow: auto; background-color: var(--highlight-bg); border-radius: 5px; color: var(--highlight-color); overflow-wrap: normal;&quot;&gt;&lt;span style=&quot;font-family:Times New Roman,Times,serif&quot;&gt;&lt;span style=&quot;font-size:14px&quot;&gt;&lt;code style=&quot;margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; box-sizing: inherit; background-color: transparent; white-space: inherit;&quot;&gt;&lt;span style=&quot;border:0px; box-sizing:inherit; color:var(--highlight-keyword); font-stretch:inherit; font-style:inherit; font-variant:inherit; font-weight:inherit; line-height:inherit; margin:0px; padding:0px; vertical-align:baseline&quot; class=&quot;hljs-keyword&quot;&gt;SELECT&lt;/span&gt; TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME, DATA_TYPE
&lt;span style=&quot;border:0px; box-sizing:inherit; color:var(--highlight-keyword); font-stretch:inherit; font-style:inherit; font-variant:inherit; font-weight:inherit; line-height:inherit; margin:0px; padding:0px; vertical-align:baseline&quot; class=&quot;hljs-keyword&quot;&gt;FROM&lt;/span&gt; INFORMATION_SCHEMA.COLUMNS
&lt;span style=&quot;border:0px; box-sizing:inherit; color:var(--highlight-keyword); font-stretch:inherit; font-style:inherit; font-variant:inherit; font-weight:inherit; line-height:inherit; margin:0px; padding:0px; vertical-align:baseline&quot; class=&quot;hljs-keyword&quot;&gt;WHERE&lt;/span&gt; COLUMN_DEFAULT &lt;span style=&quot;border:0px; box-sizing:inherit; font-stretch:inherit; font-style:inherit; font-variant:inherit; font-weight:inherit; line-height:inherit; margin:0px; padding:0px; vertical-align:baseline&quot; class=&quot;hljs-operator&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;border:0px; box-sizing:inherit; color:var(--highlight-variable); font-stretch:inherit; font-style:inherit; font-variant:inherit; font-weight:inherit; line-height:inherit; margin:0px; padding:0px; vertical-align:baseline&quot; class=&quot;hljs-string&quot;&gt;'CURRENT_TIMESTAMP'&lt;/span&gt;
&lt;span style=&quot;border:0px; box-sizing:inherit; color:var(--highlight-comment); font-stretch:inherit; font-style:inherit; font-variant:inherit; font-weight:inherit; line-height:inherit; margin:0px; padding:0px; vertical-align:baseline&quot; class=&quot;hljs-comment&quot;&gt;-- AND TABLE_SCHEMA = DATABASE()&lt;/span&gt;;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;</description>
<category>MySQL</category>
<guid isPermaLink="true">http://phponlinesupport.com/368/get-tables-which-using-default-currenttimestamp-in-mysql?show=369#a369</guid>
<pubDate>Wed, 02 Jun 2021 12:22:43 +0000</pubDate>
</item>
<item>
<title>Answered: Google ReCaptcha is active but not preventing spam</title>
<link>http://phponlinesupport.com/366/google-recaptcha-is-active-but-not-preventing-spam?show=367#a367</link>
<description>

&lt;p&gt;&lt;span style=&quot;font-size:16px&quot;&gt;&lt;span style=&quot;font-family:Times New Roman,Times,serif&quot;&gt;You can add a honeypot on you form. A honeypot is a field added to the form that the users can’t see due to CSS or JavaScript (which hides the field). When a spam bot comes to a form, it fills out EVERY input field, but it ignores the CSS code. This is the behavior we can exploit. You would create a regular form input field with HTML (this will be the honeypot field). The spam bot will see the field, but you’ll use JavaScript to hide the field from users. If the honeypot field is empty, the Javascript code would submit the form. On the other hand, if the honeypot field has data, you know it could only have been filled out by a spam bot.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/366/google-recaptcha-is-active-but-not-preventing-spam?show=367#a367</guid>
<pubDate>Wed, 02 Jun 2021 11:32:46 +0000</pubDate>
</item>
<item>
<title>Answered: What database actually FACEBOOK uses?</title>
<link>http://phponlinesupport.com/163/what-database-actually-facebook-uses?show=365#a365</link>
<description>

&lt;p&gt;&lt;span style=&quot;color:#073763; font-family:&amp;quot;Trebuchet MS&amp;quot;,sans-serif; font-size:17px&quot;&gt;Facebook primarily uses MySQL for structured data&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:#073763; font-family:&amp;quot;Trebuchet MS&amp;quot;,sans-serif; font-size:17px&quot;&gt;storage such as wall posts, user information, timeline etc. &amp;nbsp;This data is replicated between their various data centers.&lt;/span&gt;&lt;/p&gt;</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/163/what-database-actually-facebook-uses?show=365#a365</guid>
<pubDate>Wed, 02 Jun 2021 10:02:18 +0000</pubDate>
</item>
<item>
<title>Answered: Change Fetched Date format in View</title>
<link>http://phponlinesupport.com/362/change-fetched-date-format-in-view?show=364#a364</link>
<description>In date format function use F for Full month Display.&lt;br /&gt;
&lt;br /&gt;
$date = &amp;quot;12-12-2015&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
echo date(&amp;quot;F d, Y&amp;quot;, strtotime($date));</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/362/change-fetched-date-format-in-view?show=364#a364</guid>
<pubDate>Wed, 02 Jun 2021 08:54:24 +0000</pubDate>
</item>
<item>
<title>Answered: Dynamically add  textbox, input in html form using JavaScript.</title>
<link>http://phponlinesupport.com/359/dynamically-add-textbox-input-in-html-form-using-javascript?show=363#a363</link>
<description>

&lt;pre class=&quot;lang-js s-code-block hljs javascript&quot; style=&quot;margin-top: 0px; margin-bottom: 0px; padding: 12px; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: 1.30769; font-family: var(--ff-mono); font-size: 13px; vertical-align: baseline; box-sizing: inherit; width: auto; max-height: 600px; overflow: auto; background-color: var(--highlight-bg); border-radius: 5px; color: var(--highlight-color); overflow-wrap: normal;&quot;&gt;&lt;code style=&quot;margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; box-sizing: inherit; background-color: transparent; white-space: inherit;&quot;&gt;&lt;span style=&quot;border:0px; box-sizing:inherit; color:var(--highlight-keyword); font-family:inherit; font-stretch:inherit; font-style:inherit; font-variant:inherit; font-weight:inherit; line-height:inherit; margin:0px; padding:0px; vertical-align:baseline&quot; class=&quot;hljs-keyword&quot;&gt;var&lt;/span&gt; input = &lt;span style=&quot;border:0px; box-sizing:inherit; color:var(--highlight-literal); font-family:inherit; font-stretch:inherit; font-style:inherit; font-variant:inherit; font-weight:inherit; line-height:inherit; margin:0px; padding:0px; vertical-align:baseline&quot; class=&quot;hljs-built_in&quot;&gt;document&lt;/span&gt;.createElement(&lt;span style=&quot;border:0px; box-sizing:inherit; color:var(--highlight-variable); font-family:inherit; font-stretch:inherit; font-style:inherit; font-variant:inherit; font-weight:inherit; line-height:inherit; margin:0px; padding:0px; vertical-align:baseline&quot; class=&quot;hljs-string&quot;&gt;&quot;input&quot;&lt;/span&gt;);

input.setAttribute(&lt;span style=&quot;border:0px; box-sizing:inherit; color:var(--highlight-variable); font-family:inherit; font-stretch:inherit; font-style:inherit; font-variant:inherit; font-weight:inherit; line-height:inherit; margin:0px; padding:0px; vertical-align:baseline&quot; class=&quot;hljs-string&quot;&gt;&quot;type&quot;&lt;/span&gt;, &lt;span style=&quot;border:0px; box-sizing:inherit; color:var(--highlight-variable); font-family:inherit; font-stretch:inherit; font-style:inherit; font-variant:inherit; font-weight:inherit; line-height:inherit; margin:0px; padding:0px; vertical-align:baseline&quot; class=&quot;hljs-string&quot;&gt;&quot;hidden&quot;&lt;/span&gt;);

input.setAttribute(&lt;span style=&quot;border:0px; box-sizing:inherit; color:var(--highlight-variable); font-family:inherit; font-stretch:inherit; font-style:inherit; font-variant:inherit; font-weight:inherit; line-height:inherit; margin:0px; padding:0px; vertical-align:baseline&quot; class=&quot;hljs-string&quot;&gt;&quot;name&quot;&lt;/span&gt;, &lt;span style=&quot;border:0px; box-sizing:inherit; color:var(--highlight-variable); font-family:inherit; font-stretch:inherit; font-style:inherit; font-variant:inherit; font-weight:inherit; line-height:inherit; margin:0px; padding:0px; vertical-align:baseline&quot; class=&quot;hljs-string&quot;&gt;&quot;name_you_want&quot;&lt;/span&gt;);

input.setAttribute(&lt;span style=&quot;border:0px; box-sizing:inherit; color:var(--highlight-variable); font-family:inherit; font-stretch:inherit; font-style:inherit; font-variant:inherit; font-weight:inherit; line-height:inherit; margin:0px; padding:0px; vertical-align:baseline&quot; class=&quot;hljs-string&quot;&gt;&quot;value&quot;&lt;/span&gt;, &lt;span style=&quot;border:0px; box-sizing:inherit; color:var(--highlight-variable); font-family:inherit; font-stretch:inherit; font-style:inherit; font-variant:inherit; font-weight:inherit; line-height:inherit; margin:0px; padding:0px; vertical-align:baseline&quot; class=&quot;hljs-string&quot;&gt;&quot;value_you_want&quot;&lt;/span&gt;);

&lt;span style=&quot;border:0px; box-sizing:inherit; color:var(--highlight-comment); font-family:inherit; font-stretch:inherit; font-style:inherit; font-variant:inherit; font-weight:inherit; line-height:inherit; margin:0px; padding:0px; vertical-align:baseline&quot; class=&quot;hljs-comment&quot;&gt;//append to form element that you want .&lt;/span&gt;
&lt;span style=&quot;border:0px; box-sizing:inherit; color:var(--highlight-literal); font-family:inherit; font-stretch:inherit; font-style:inherit; font-variant:inherit; font-weight:inherit; line-height:inherit; margin:0px; padding:0px; vertical-align:baseline&quot; class=&quot;hljs-built_in&quot;&gt;document&lt;/span&gt;.getElementById(&lt;span style=&quot;border:0px; box-sizing:inherit; color:var(--highlight-variable); font-family:inherit; font-stretch:inherit; font-style:inherit; font-variant:inherit; font-weight:inherit; line-height:inherit; margin:0px; padding:0px; vertical-align:baseline&quot; class=&quot;hljs-string&quot;&gt;&quot;chells&quot;&lt;/span&gt;).appendChild(input);&lt;/code&gt;&lt;/pre&gt;</description>
<category>Javascript</category>
<guid isPermaLink="true">http://phponlinesupport.com/359/dynamically-add-textbox-input-in-html-form-using-javascript?show=363#a363</guid>
<pubDate>Wed, 02 Jun 2021 08:48:53 +0000</pubDate>
</item>
<item>
<title>Answered: How to Redirect Non-www to www URLs using htaccess  ?</title>
<link>http://phponlinesupport.com/348/how-to-redirect-non-www-to-www-urls-using-htaccess?show=356#a356</link>
<description>

&lt;p&gt;&lt;span style=&quot;font-size:16px&quot;&gt;You need to add&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;pre style=&quot;box-sizing: border-box; border-width: 0px; border-style: solid; border-color: rgb(226, 232, 240); font-size: 14px; font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; margin-top: 10px; margin-bottom: 10px; overflow: auto; color: rgb(40, 45, 45);&quot;&gt;&lt;span style=&quot;font-size:16px&quot;&gt;RewriteCond %{HTTP_HOST} !^www.example.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
&lt;/span&gt;&lt;/pre&gt;

&lt;p style=&quot;box-sizing: border-box; border-width: 0px; border-style: solid; border-color: rgb(226, 232, 240); overflow-wrap: break-word; margin: 0px; color: rgb(40, 45, 45); font-family: &amp;quot;DM Sans&amp;quot;; font-size: 14px;&quot;&gt;&lt;span style=&quot;font-size:16px&quot;&gt;in &lt;strong&gt;.htaccess&lt;/strong&gt; file. Note that you must put the above lines somewhere after&amp;nbsp;&lt;strong style=&quot;border-color:#e2e8f0; border-style:solid; border-width:0px; box-sizing:border-box; letter-spacing:-0.4px; overflow-wrap:break-word&quot;&gt;RewriteEngine On&lt;/strong&gt;&amp;nbsp;line.&lt;/span&gt;&lt;/p&gt;</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/348/how-to-redirect-non-www-to-www-urls-using-htaccess?show=356#a356</guid>
<pubDate>Wed, 26 May 2021 12:11:22 +0000</pubDate>
</item>
<item>
<title>Answered: Difference between get and post on php</title>
<link>http://phponlinesupport.com/350/difference-between-get-and-post-on-php?show=355#a355</link>
<description>

&lt;p&gt;&lt;span style=&quot;font-size:16px&quot;&gt;&lt;span style=&quot;color:#222222; font-family:&amp;quot;Source Sans Pro&amp;quot;,Arial,sans-serif&quot;&gt;GET method is used to appends form data to the URL in name or value pair.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:#000000; font-family:Arial,Verdana,Tahoma; text-align:justify&quot;&gt;The page and the encoded information are separated by the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:#000000; font-family:Arial,Verdana,Tahoma; font-weight:640; text-align:justify&quot;&gt;?&lt;/span&gt;&lt;span style=&quot;color:#000000; font-family:Arial,Verdana,Tahoma; text-align:justify&quot;&gt;&amp;nbsp;character.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:#000000; font-family:Arial,Verdana,Tahoma; text-align:justify&quot;&gt;&lt;span style=&quot;font-size:16px&quot;&gt;The POST method transfers information via HTTP headers. The information is encoded as described in case of GET method and put into a header called QUERY_STRING.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/350/difference-between-get-and-post-on-php?show=355#a355</guid>
<pubDate>Wed, 26 May 2021 04:38:32 +0000</pubDate>
</item>
<item>
<title>Answered: reCAPTCHA problem ''Please complete the anti-spam verification''</title>
<link>http://phponlinesupport.com/351/recaptcha-problem-please-complete-anti-spam-verification?show=354#a354</link>
<description>

&lt;p&gt;It may due to server permission issue.&amp;nbsp;&lt;span style=&quot;color:#383838; font-family:Open Sans, Helvetica, Arial, sans-serif&quot;&gt;&lt;span style=&quot;font-size:17px&quot;&gt;For some security reasons, in shared hosting account allow_url_fopen is disabled by default. You need to check phpinfo(); if&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#383838; font-family:&amp;quot;Open Sans&amp;quot;,Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;allow_url_fopen&lt;/span&gt;&lt;span style=&quot;color:#383838; font-family:&amp;quot;Open Sans&amp;quot;,Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;&amp;nbsp; is off then&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:#383838; font-family:&amp;quot;Open Sans&amp;quot;,Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;modify the custom php.ini file as&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color:#e4e6e8; color:#242729; font-family:ui-monospace,&amp;quot;Cascadia Mono&amp;quot;,&amp;quot;Segoe UI Mono&amp;quot;,&amp;quot;Liberation Mono&amp;quot;,Menlo,Monaco,Consolas,monospace; font-size:13px; white-space:pre-wrap&quot;&gt;allow_url_fopen = On&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/351/recaptcha-problem-please-complete-anti-spam-verification?show=354#a354</guid>
<pubDate>Wed, 26 May 2021 04:18:33 +0000</pubDate>
</item>
<item>
<title>Answered: Why no site links listed on google search?</title>
<link>http://phponlinesupport.com/334/why-no-site-links-listed-on-google-search?show=335#a335</link>
<description>Google does not show sitelinks for all websites. The fact that it may decide to show sitelinks when users search for your domain name or for particular queries, it’s a signal of google trust.&lt;br /&gt;
&lt;br /&gt;
You cannot directly specify which pages Google should use as sitelinks. They are chosen automatically by the Google algorithm based on the user query.</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/334/why-no-site-links-listed-on-google-search?show=335#a335</guid>
<pubDate>Fri, 13 Dec 2019 03:49:05 +0000</pubDate>
</item>
<item>
<title>Answered: Adblocker blocking WP blog images</title>
<link>http://phponlinesupport.com/332/adblocker-blocking-wp-blog-images?show=333#a333</link>
<description>Check if there are any probable blacklisted words in the url your blog images. There could be probably words like &amp;quot;ad&amp;quot;, &amp;quot;ads&amp;quot; or &amp;quot;300x200&amp;quot; or something like that, which could resemble an ad image. Replacing this would solve the issue as well.</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/332/adblocker-blocking-wp-blog-images?show=333#a333</guid>
<pubDate>Mon, 18 Nov 2019 15:29:00 +0000</pubDate>
</item>
<item>
<title>Answered: Scan QR code using a samsung phone</title>
<link>http://phponlinesupport.com/329/scan-qr-code-using-a-samsung-phone?show=330#a330</link>
<description>You can do it using Bixby Vision on your phone (if its after the s7 series)&lt;br /&gt;
&lt;br /&gt;
OR&lt;br /&gt;
&lt;br /&gt;
If your Galaxy device doesn't support Bixby Vision, you are still able to scan QR Codes however this will be directly through Samsung Internet or Samsung Internet (Beta). Usually the Samsung Internet application is pre-installed on later Galaxy devices however if you have uninstalled this app or you are unable to locate this app within your apps tray, you can easily download it from the Google PlayStore.&lt;br /&gt;
&lt;br /&gt;
Samsung Internet makes separate QR code reader apps totally irrelevant. Samsung's browser includes a QR code reader directly in-app, which makes scanning website QR codes a breeze. Just enable &amp;quot;QR code reader&amp;quot; in the Extensions menu, then tap the three dots to access &amp;quot;Scan QR Code&amp;quot; at any time.&lt;br /&gt;
&lt;br /&gt;
You will need to enable the &amp;nbsp;QR code scanner from the extensions of the internet browser.</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/329/scan-qr-code-using-a-samsung-phone?show=330#a330</guid>
<pubDate>Thu, 14 Nov 2019 06:25:03 +0000</pubDate>
</item>
<item>
<title>Answered: Mailchimp automatic feed mailing with custom design</title>
<link>http://phponlinesupport.com/323/mailchimp-automatic-feed-mailing-with-custom-design?show=328#a328</link>
<description>Solution for your issue is to make a custom feed with the whole HTML needed for your newsletter and pass it as a feed to the mailchimp. Note that the mailchimp processor will strip the html tags if not instructed not to do so. Passing contents through feed within a CDATA tag would do the trick, which will bypass the mailchimp processor. See below example data that should be passed in the description section of a feed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;![CDATA[&lt;br /&gt;
&lt;br /&gt;
Your full custom html (full newsletter html) here...&lt;br /&gt;
&lt;br /&gt;
]]&amp;gt;</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/323/mailchimp-automatic-feed-mailing-with-custom-design?show=328#a328</guid>
<pubDate>Wed, 13 Nov 2019 06:40:52 +0000</pubDate>
</item>
<item>
<title>Answered: Notification popups that can allow intractions on page</title>
<link>http://phponlinesupport.com/324/notification-popups-that-can-allow-intractions-on-page?show=327#a327</link>
<description>Use Pnotify&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://sciactive.com/pnotify/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://sciactive.com/pnotify/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
It is good for your requirement here.</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/324/notification-popups-that-can-allow-intractions-on-page?show=327#a327</guid>
<pubDate>Wed, 13 Nov 2019 03:49:07 +0000</pubDate>
</item>
<item>
<title>Answered: View hidden folders Mac</title>
<link>http://phponlinesupport.com/325/view-hidden-folders-mac?show=326#a326</link>
<description>Here is the shortcut for Mac. Go to the root folder and press the keys&lt;br /&gt;
&lt;br /&gt;
Command + Shift + . (dot)</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/325/view-hidden-folders-mac?show=326#a326</guid>
<pubDate>Sun, 10 Nov 2019 09:23:15 +0000</pubDate>
</item>
<item>
<title>Answered: How to add auto numbering column to a Jquery datatable?</title>
<link>http://phponlinesupport.com/317/how-to-add-auto-numbering-column-to-a-jquery-datatable?show=318#a318</link>
<description>


&lt;div class=&quot;container&quot;&gt;

&lt;div class=&quot;line number1 index0 alt2&quot;&gt;&lt;code class=&quot;js plain&quot;&gt;$(document).ready(&lt;/code&gt;&lt;code class=&quot;js keyword&quot;&gt;function&lt;/code&gt;&lt;code class=&quot;js plain&quot;&gt;() {&lt;/code&gt;&lt;/div&gt;

&lt;div class=&quot;line number2 index1 alt1&quot;&gt;&lt;code class=&quot;js spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;js keyword&quot;&gt;var&lt;/code&gt; &lt;code class=&quot;js plain&quot;&gt;t = $(&lt;/code&gt;&lt;code class=&quot;js string&quot;&gt;'#example'&lt;/code&gt;&lt;code class=&quot;js plain&quot;&gt;).DataTable( {&lt;/code&gt;&lt;/div&gt;

&lt;div class=&quot;line number3 index2 alt2&quot;&gt;&lt;code class=&quot;js spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;js string&quot;&gt;&quot;columnDefs&quot;&lt;/code&gt;&lt;code class=&quot;js plain&quot;&gt;: [ {&lt;/code&gt;&lt;/div&gt;

&lt;div class=&quot;line number4 index3 alt1&quot;&gt;&lt;code class=&quot;js spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;js string&quot;&gt;&quot;searchable&quot;&lt;/code&gt;&lt;code class=&quot;js plain&quot;&gt;: &lt;/code&gt;&lt;code class=&quot;js keyword&quot;&gt;false&lt;/code&gt;&lt;code class=&quot;js plain&quot;&gt;,&lt;/code&gt;&lt;/div&gt;

&lt;div class=&quot;line number5 index4 alt2&quot;&gt;&lt;code class=&quot;js spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;js string&quot;&gt;&quot;orderable&quot;&lt;/code&gt;&lt;code class=&quot;js plain&quot;&gt;: &lt;/code&gt;&lt;code class=&quot;js keyword&quot;&gt;false&lt;/code&gt;&lt;code class=&quot;js plain&quot;&gt;,&lt;/code&gt;&lt;/div&gt;

&lt;div class=&quot;line number6 index5 alt1&quot;&gt;&lt;code class=&quot;js spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;js string&quot;&gt;&quot;targets&quot;&lt;/code&gt;&lt;code class=&quot;js plain&quot;&gt;: 0&lt;/code&gt;&lt;/div&gt;

&lt;div class=&quot;line number7 index6 alt2&quot;&gt;&lt;code class=&quot;js spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;js plain&quot;&gt;} ],&lt;/code&gt;&lt;/div&gt;

&lt;div class=&quot;line number8 index7 alt1&quot;&gt;&lt;code class=&quot;js spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;js string&quot;&gt;&quot;order&quot;&lt;/code&gt;&lt;code class=&quot;js plain&quot;&gt;: [[ 1, &lt;/code&gt;&lt;code class=&quot;js string&quot;&gt;'asc'&lt;/code&gt; &lt;code class=&quot;js plain&quot;&gt;]]&lt;/code&gt;&lt;/div&gt;

&lt;div class=&quot;line number9 index8 alt2&quot;&gt;&lt;code class=&quot;js spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;js plain&quot;&gt;} );&lt;/code&gt;&lt;/div&gt;

&lt;div class=&quot;line number10 index9 alt1&quot;&gt;&amp;nbsp;&lt;/div&gt;

&lt;div class=&quot;line number11 index10 alt2&quot;&gt;&lt;code class=&quot;js spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;js plain&quot;&gt;t.on( &lt;/code&gt;&lt;code class=&quot;js string&quot;&gt;'order.dt search.dt'&lt;/code&gt;&lt;code class=&quot;js plain&quot;&gt;, &lt;/code&gt;&lt;code class=&quot;js keyword&quot;&gt;function&lt;/code&gt; &lt;code class=&quot;js plain&quot;&gt;() {&lt;/code&gt;&lt;/div&gt;

&lt;div class=&quot;line number12 index11 alt1&quot;&gt;&lt;code class=&quot;js spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;js plain&quot;&gt;t.column(0, {search:&lt;/code&gt;&lt;code class=&quot;js string&quot;&gt;'applied'&lt;/code&gt;&lt;code class=&quot;js plain&quot;&gt;, order:&lt;/code&gt;&lt;code class=&quot;js string&quot;&gt;'applied'&lt;/code&gt;&lt;code class=&quot;js plain&quot;&gt;}).nodes().each( &lt;/code&gt;&lt;code class=&quot;js keyword&quot;&gt;function&lt;/code&gt; &lt;code class=&quot;js plain&quot;&gt;(cell, i) {&lt;/code&gt;&lt;/div&gt;

&lt;div class=&quot;line number13 index12 alt2&quot;&gt;&lt;code class=&quot;js spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;js plain&quot;&gt;cell.innerHTML = i+1;&lt;/code&gt;&lt;/div&gt;

&lt;div class=&quot;line number14 index13 alt1&quot;&gt;&lt;code class=&quot;js spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;js plain&quot;&gt;} );&lt;/code&gt;&lt;/div&gt;

&lt;div class=&quot;line number15 index14 alt2&quot;&gt;&lt;code class=&quot;js spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;js plain&quot;&gt;} ).draw();&lt;/code&gt;&lt;/div&gt;

&lt;div class=&quot;line number16 index15 alt1&quot;&gt;&lt;code class=&quot;js plain&quot;&gt;} );&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;
</description>
<category>Jquery</category>
<guid isPermaLink="true">http://phponlinesupport.com/317/how-to-add-auto-numbering-column-to-a-jquery-datatable?show=318#a318</guid>
<pubDate>Wed, 05 Dec 2018 05:57:07 +0000</pubDate>
</item>
<item>
<title>Answered: Wordpress custom page without footer header and sidebar</title>
<link>http://phponlinesupport.com/315/wordpress-custom-page-without-footer-header-and-sidebar?show=316#a316</link>
<description>Step 1 - Create a WordPress page template le&lt;br /&gt;
In your local computer, create a text file, copy the following code and save it as &amp;quot;no-head-foot.php&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Step 2- Upload the le to your WordPress theme folder&lt;br /&gt;
FTP the created file no-head-foot.php to your WordPress theme folder, which is wp-&lt;br /&gt;
content -&amp;gt; themes -&amp;gt; yourthemename.&lt;br /&gt;
&lt;br /&gt;
Step 3 - Select the template in the WordPress page editor&lt;br /&gt;
In the WordPress page editor, Page Attributes tab, choose Clean Page from the&lt;br /&gt;
Template drop-down list.&lt;br /&gt;
&lt;br /&gt;
This should do the trick.&lt;br /&gt;
&lt;br /&gt;
Also refer &lt;a href=&quot;https://www.wonderplugin.com/wp-content/uploads/2017/06/How-to-create-a-WordPress-page-without-header-menu-sidebar-and-footer.pdf&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://www.wonderplugin.com/wp-content/uploads/2017/06/How-to-create-a-WordPress-page-without-header-menu-sidebar-and-footer.pdf&lt;/a&gt;</description>
<category>Themes</category>
<guid isPermaLink="true">http://phponlinesupport.com/315/wordpress-custom-page-without-footer-header-and-sidebar?show=316#a316</guid>
<pubDate>Thu, 22 Nov 2018 23:52:50 +0000</pubDate>
</item>
<item>
<title>Answered: How to hide admin bar (admin toolbar) from frontend?</title>
<link>http://phponlinesupport.com/313/how-to-hide-admin-bar-admin-toolbar-from-frontend?show=314#a314</link>
<description>Add this to your page, and it should do the trick.&lt;br /&gt;
&lt;br /&gt;
show_admin_bar( false );&lt;br /&gt;
&lt;br /&gt;
Refer here for more info &lt;a href=&quot;https://codex.wordpress.org/Function_Reference/show_admin_bar&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://codex.wordpress.org/Function_Reference/show_admin_bar&lt;/a&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">http://phponlinesupport.com/313/how-to-hide-admin-bar-admin-toolbar-from-frontend?show=314#a314</guid>
<pubDate>Thu, 22 Nov 2018 23:45:15 +0000</pubDate>
</item>
<item>
<title>Answered: Strange “1” displayed at the end of a php print_r ?</title>
<link>http://phponlinesupport.com/311/strange-1-displayed-at-the-end-of-a-php-printr?show=312#a312</link>
<description>Remove the echo before print_r&lt;br /&gt;
&lt;br /&gt;
the print_r is supposed to return true/false which is displayed as 1 with the echo.&lt;br /&gt;
&lt;br /&gt;
So you only need the following.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo '&amp;lt;pre&amp;gt;'&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;print_r($validation-&amp;gt;getErrorFields());&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo '&amp;lt;/pre&amp;gt;'</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/311/strange-1-displayed-at-the-end-of-a-php-printr?show=312#a312</guid>
<pubDate>Mon, 19 Nov 2018 22:29:07 +0000</pubDate>
</item>
<item>
<title>Answered: wp get_current_user_id() returns 0</title>
<link>http://phponlinesupport.com/309/wp-getcurrentuserid-returns-0?show=310#a310</link>
<description>You need to init before that.&lt;br /&gt;
&lt;br /&gt;
add_action('init', 'my_user_id_Function');&lt;br /&gt;
&lt;br /&gt;
function my_user_id_Function()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;return get_current_user_id();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
echo my_user_id_Function();</description>
<category>Wordpress</category>
<guid isPermaLink="true">http://phponlinesupport.com/309/wp-getcurrentuserid-returns-0?show=310#a310</guid>
<pubDate>Thu, 08 Nov 2018 19:03:26 +0000</pubDate>
</item>
<item>
<title>Answered: How do I include $wpdb in wordpress plugin?</title>
<link>http://phponlinesupport.com/307/how-do-i-include-wpdb-in-wordpress-plugin?show=308#a308</link>
<description>global $wpdb, $table_prefix;&lt;br /&gt;
&lt;br /&gt;
if(!isset($wpdb))&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;include_once(ABSPATH.'wp-config.php');&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;include_once(ABSPATH.'wp-includes/wp-db.php');&lt;br /&gt;
}</description>
<category>Wordpress</category>
<guid isPermaLink="true">http://phponlinesupport.com/307/how-do-i-include-wpdb-in-wordpress-plugin?show=308#a308</guid>
<pubDate>Fri, 02 Nov 2018 18:57:30 +0000</pubDate>
</item>
<item>
<title>Answered: Fatal error: Call to undefined function wp_get_current_user() in</title>
<link>http://phponlinesupport.com/305/fatal-error-call-undefined-function-wpgetcurrentuser?show=306#a306</link>
<description>include_once(ABSPATH . &amp;quot;wp-includes/pluggable.php&amp;quot;);&lt;br /&gt;
Add this to the top of that page.&lt;br /&gt;
&lt;br /&gt;
Should be fine.</description>
<category>Plugins</category>
<guid isPermaLink="true">http://phponlinesupport.com/305/fatal-error-call-undefined-function-wpgetcurrentuser?show=306#a306</guid>
<pubDate>Fri, 02 Nov 2018 18:47:10 +0000</pubDate>
</item>
<item>
<title>Answered: Where is my mongodb database?</title>
<link>http://phponlinesupport.com/303/where-is-my-mongodb-database?show=304#a304</link>
<description>Mongodb is different from the mysql and similar. You need to create a collection and probably insert a data also to actually create the DB.</description>
<category>MongoDB</category>
<guid isPermaLink="true">http://phponlinesupport.com/303/where-is-my-mongodb-database?show=304#a304</guid>
<pubDate>Tue, 23 Oct 2018 22:12:56 +0000</pubDate>
</item>
<item>
<title>XBee print source address</title>
<link>http://phponlinesupport.com/301/xbee-print-source-address</link>
<description>How to print the address of the xbee that the message is sent from?</description>
<category>XBee</category>
<guid isPermaLink="true">http://phponlinesupport.com/301/xbee-print-source-address</guid>
<pubDate>Wed, 10 Oct 2018 22:50:27 +0000</pubDate>
</item>
</channel>
</rss>