<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="https://www.webmaster-forums.net"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>The Webmaster Forums - Web Programming and Application Development</title>
 <link>https://www.webmaster-forums.net/taxonomy/term/1000001/0</link>
 <description>Coding, scripting and programming languages including PHP, Ruby, JSP, Java, Perl, ASP, .NET, and Cold Fusion.</description>
 <language>en</language>
<item>
 <title>Converting a HTML website into Drupal</title>
 <link>https://www.webmaster-forums.net/web-programming-and-application-development/converting-html-website-drupal</link>
 <description> &lt;p&gt;Hello, &lt;/p&gt;
&lt;p&gt;Can anyone help me to ensure how I can save previous search engine value gained for the website if I am changing a HTML website into Drupal?&lt;/p&gt;
&lt;p&gt;Also, new website will have SSL certificate too.&lt;/p&gt;
&lt;p&gt;Thanks in advance for valuable upcoming suggestions.&lt;/p&gt;
 &lt;div class=&quot;signature&quot;&gt;&lt;p&gt;“Ignoring SEO &amp;amp; online marketing is like opening a business but not telling anyone”&lt;br /&gt;
&lt;a href=&quot;http://www.seoexpertsindia.com/seo-company-india.php&quot; rel=&quot;nofollow&quot;&gt;SEO Company India&lt;/a&gt;- Get guaranteed top page ranking for your business&lt;/p&gt;&lt;/div&gt;
</description>
 <comments>https://www.webmaster-forums.net/web-programming-and-application-development/converting-html-website-drupal#comments</comments>
 <category domain="https://www.webmaster-forums.net/taxonomy/term/1000001">Web Programming and Application Development</category>
 <pubDate>Thu, 01 Apr 2021 08:16:24 +0000</pubDate>
 <dc:creator>roshan.seoexpertsindia</dc:creator>
 <guid isPermaLink="false">1096158 at https://www.webmaster-forums.net</guid>
</item>
<item>
 <title>Need Help making a Drupal Subtheme</title>
 <link>https://www.webmaster-forums.net/web-programming-and-application-development/need-help-making-drupal-subtheme</link>
 <description> &lt;p&gt;The theme I am using has a slider -- a panel of automatically changing images to display a topic that the user can choose -- but it only shows a few slides.  I want to extend it to a dozen slides.  I did simple text searches to determine which files in the theme are used code files to provide the functionality to the slider.  That was the easy part.  I was able to extend the code from the few slides to 12 slides.&lt;/p&gt;
&lt;p&gt;Now comes the more difficult and hidden part.  As I see it, each slide has two parts that are not hard coded.  First, each slide has a caption -- a text description.  Secondly, each slide has a URL associated with it that is where the browser goes if the user clicks on the slide.  These two things are not hard coded in any of the PHP or other files, as far as I can tell.  They can be edited by the admin in the drupal backend admin settings.&lt;/p&gt;
&lt;p&gt;So I assumed that these fields are somehow set and retained in the database.  But I did a search on a downloaded copy of the database and I did not find this text.&lt;/p&gt;
&lt;p&gt;Please advise.  What additional work do I need to do to complete this task?&lt;/p&gt;
&lt;p&gt;I suppose I could just forge ahead.  Obviously, this data is being stored somewhere.  Maybe they are stored in the database in an encrypted form for security reasons.  I could do an ftp upload of the site theme files.  But then what?  Do I uninstall the theme and then reinstall it?  Do I just deactivate it and then reactivate it?  How do I make my code changes work?&lt;/p&gt;
&lt;p&gt;The theme is called &quot;impact_theme&quot; and as far as I can tell all the code for it resides in&lt;/p&gt;
&lt;p&gt;sites\all\themes\impact_theme&lt;/p&gt;
&lt;p&gt;The README.txt file for the theme is:&lt;br /&gt;
&lt;strong&gt;&lt;br /&gt;
About Impact Theme&lt;br /&gt;
====================&lt;br /&gt;
Impact Theme is a Drupal 7 theme. The theme is not dependent on any&lt;br /&gt;
core theme. Its very light weight for fast loading with modern look.&lt;br /&gt;
  Simple and clean design&lt;br /&gt;
  Drupal standards compliant&lt;br /&gt;
  Implementation of a JS Slideshow&lt;br /&gt;
  Multi-level drop-down menus&lt;br /&gt;
  Footer with 4 regions&lt;br /&gt;
  A total of 10 regions&lt;br /&gt;
  Compatible and tested on IE7, IE8, IE9+, Opera, Firefox, Chrome browsers&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Browser compatibility:&lt;br /&gt;
=====================&lt;br /&gt;
The theme has been tested on following browsers. IE7+, Firefox, Google Chrome, Opera.&lt;/p&gt;
&lt;p&gt;Drupal compatibility:&lt;br /&gt;
=====================&lt;br /&gt;
This theme is compatible with Drupal 7.x.x&lt;/p&gt;
&lt;p&gt;Developed by&lt;br /&gt;
============&lt;br /&gt;
&lt;a href=&quot;http://www.devsaran.com&quot; title=&quot;www.devsaran.com&quot;&gt;www.devsaran.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Slideshow photos by &lt;a href=&quot;http://www.flickr.com/photos/68666702@N00/&quot; title=&quot;http://www.flickr.com/photos/68666702@N00/&quot;&gt;http://www.flickr.com/photos/68666702@N00/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Help and Support Us&lt;br /&gt;
=====================&lt;br /&gt;
Please consider a small donation&lt;br /&gt;
Paypal ID : &lt;a href=&quot;mailto:donation@devsaran.com&quot;&gt;donation@devsaran.com&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
============================================================================&lt;/p&gt;
&lt;p&gt;I made a subtheme according to this page: &lt;a href=&quot;https://www.drupal.org/docs/7/theming/creating-a-sub-theme&quot; title=&quot;https://www.drupal.org/docs/7/theming/creating-a-sub-theme&quot;&gt;https://www.drupal.org/docs/7/theming/creating-a-sub-theme&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I logged in to the Administrative Dashboard and I made the subtheme as the default theme.&lt;/p&gt;
&lt;p&gt;And then the website immediately crashed and I am unable to see anything apart from &quot;HTTP ERROR 500&quot;.&lt;/p&gt;
&lt;p&gt;What do you think I should do now?&lt;/p&gt;
&lt;p&gt;For completeness sake, I will list here the screenshots I made when I was comparing my modifications to the original theme.&lt;/p&gt;
&lt;p&gt;I am thinking what I should do now is try to step back and see if I can narrow down the point where the website crashes.  But in order to do that, I wonder if it will do any good to just modify the files.  I mean, the subtheme is already set as the default theme.  How can I undo that without being able to log into the Admin Dashboard?&lt;/p&gt;
&lt;p&gt;arguemax.com\images\30221819_10213444272035350_3379677097701146624_o.jpg&lt;/p&gt;
&lt;p&gt;arguemax.com\images\30123766_10213444272355358_3182263611749826560_o.jpg&lt;/p&gt;
&lt;p&gt;arguemax.com\images\29792681_10213444272435360_6669795223813488640_o.jpg&lt;/p&gt;
&lt;p&gt;arguemax.com\images\29791776_10213444272995374_1613507621266915328_o.jpg&lt;/p&gt;
&lt;p&gt;arguemax.com\images\29791466_10213444271875346_2211109040119873536_n.jpg&lt;/p&gt;
 </description>
 <comments>https://www.webmaster-forums.net/web-programming-and-application-development/need-help-making-drupal-subtheme#comments</comments>
 <category domain="https://www.webmaster-forums.net/taxonomy/term/1000001">Web Programming and Application Development</category>
 <pubDate>Tue, 17 Apr 2018 04:51:07 +0000</pubDate>
 <dc:creator>xarzu</dc:creator>
 <guid isPermaLink="false">1096143 at https://www.webmaster-forums.net</guid>
</item>
<item>
 <title>help for my blog</title>
 <link>https://www.webmaster-forums.net/web-programming-and-application-development/help-my-blog</link>
 <description> &lt;p&gt;I have some problem on my blog it base on wordpress. I want to create anlaytic but it is not working on my blog &lt;a href=&quot;http://asepswebtech.com&quot; title=&quot;http://asepswebtech.com&quot; rel=&quot;nofollow&quot;&gt;http://asepswebtech.com&lt;/a&gt;&lt;/p&gt;
 </description>
 <comments>https://www.webmaster-forums.net/web-programming-and-application-development/help-my-blog#comments</comments>
 <category domain="https://www.webmaster-forums.net/taxonomy/term/1000001">Web Programming and Application Development</category>
 <pubDate>Sat, 09 Dec 2017 11:57:27 +0000</pubDate>
 <dc:creator>asepswebtech</dc:creator>
 <guid isPermaLink="false">1094069 at https://www.webmaster-forums.net</guid>
</item>
<item>
 <title>Need Help Please!</title>
 <link>https://www.webmaster-forums.net/web-programming-and-application-development/need-help-please-0</link>
 <description> &lt;p&gt;How can i develop a website like &lt;a href=&quot;http://www.getintoapc.com&quot; rel=&quot;nofollow&quot;&gt;getintopc&lt;/a&gt;&lt;br /&gt;
How to know which theme are they using?&lt;br /&gt;
How to develop that kind of theme?&lt;/p&gt;
 </description>
 <comments>https://www.webmaster-forums.net/web-programming-and-application-development/need-help-please-0#comments</comments>
 <category domain="https://www.webmaster-forums.net/taxonomy/term/1000001">Web Programming and Application Development</category>
 <pubDate>Mon, 04 Dec 2017 18:23:56 +0000</pubDate>
 <dc:creator>Elai Watson</dc:creator>
 <guid isPermaLink="false">1094063 at https://www.webmaster-forums.net</guid>
</item>
<item>
 <title>Need help please!!!</title>
 <link>https://www.webmaster-forums.net/web-programming-and-application-development/need-help-please</link>
 <description> &lt;p&gt;I have a website that list local businesses to compliment my directory app.  I am looking for a way for my customers who are businesses owners to be able to go in and upload new photos and do things like changing their hours and adding new photos to their pages.  Any suggestions on how i can do this?&lt;/p&gt;
&lt;p&gt;Thank You,&lt;/p&gt;
&lt;p&gt;Bo&lt;/p&gt;
 </description>
 <comments>https://www.webmaster-forums.net/web-programming-and-application-development/need-help-please#comments</comments>
 <category domain="https://www.webmaster-forums.net/taxonomy/term/1000001">Web Programming and Application Development</category>
 <pubDate>Thu, 09 Nov 2017 20:26:10 +0000</pubDate>
 <dc:creator>bojwilliams</dc:creator>
 <guid isPermaLink="false">1094036 at https://www.webmaster-forums.net</guid>
</item>
<item>
 <title>How to integrate Prestashop and IP?</title>
 <link>https://www.webmaster-forums.net/web-programming-and-application-development/how-integrate-prestashop-and-ip</link>
 <description> &lt;p&gt;Does anyone how to integrate a blog module Prestashop and IP. Board?&lt;br /&gt;
I found something that could be useful.&lt;br /&gt;
But how to carry this out on my module PrestaShop?&lt;br /&gt;
You can see the module here: &lt;a href=&quot;https://www.prestashop.com/forums/topic/593516-prestashop-blog-module/&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;&lt;em&gt;Blog module for Prestashop&lt;/em&gt;&lt;/strong&gt;&lt;em&gt;&lt;/em&gt;&lt;/a&gt;&lt;br /&gt;
I have tried some example, but it keeps showing an error &quot;IPS Connect rejected the details provided. Please check the details you provided have been entered correctly and try again.&quot;&lt;br /&gt;
Anyone knows how to deal with this and how to fulfill the coding on Prestashop side?&lt;/p&gt;
 &lt;div class=&quot;signature&quot;&gt;&lt;p&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=oaUjdr9g6L8&amp;amp;t=3s&quot; rel=&quot;nofollow&quot;&gt;Presta Mailchimp&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://www.youtube.com/watch?v=dp5mCLqsqnE&quot; rel=&quot;nofollow&quot;&gt;Responsive newsletter popup&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;
</description>
 <comments>https://www.webmaster-forums.net/web-programming-and-application-development/how-integrate-prestashop-and-ip#comments</comments>
 <category domain="https://www.webmaster-forums.net/taxonomy/term/1000001">Web Programming and Application Development</category>
 <pubDate>Thu, 09 Nov 2017 00:54:14 +0000</pubDate>
 <dc:creator>searaoracle</dc:creator>
 <guid isPermaLink="false">1094032 at https://www.webmaster-forums.net</guid>
</item>
<item>
 <title>Need Help....</title>
 <link>https://www.webmaster-forums.net/web-programming-and-application-development/need-help</link>
 <description> &lt;p&gt;i am working on a project like ondoor in which i want to add google map to track a specific person &lt;/p&gt;
&lt;p&gt;from which the person who order the thing can see the status of serviceman.&lt;/p&gt;
 </description>
 <comments>https://www.webmaster-forums.net/web-programming-and-application-development/need-help#comments</comments>
 <category domain="https://www.webmaster-forums.net/taxonomy/term/1000001">Web Programming and Application Development</category>
 <pubDate>Tue, 07 Nov 2017 07:48:37 +0000</pubDate>
 <dc:creator>kanchan</dc:creator>
 <guid isPermaLink="false">1093997 at https://www.webmaster-forums.net</guid>
</item>
<item>
 <title>Fastest way to utilize file_get_contents() in PHP</title>
 <link>https://www.webmaster-forums.net/web-programming-and-application-development/fastest-way-utilize-file-get-contents-php</link>
 <description> &lt;p&gt;Hi guys. I&#039;m making some performance tweaks to a custom Array cache system I built a while ago, and have a question. As it is, I use file_exists() to check if the cache file exists, before using file_get_contents() to load it. Which works very well.&lt;/p&gt;
&lt;p&gt;But would it be faster to simply attempt the file_get_contents() straight away, and handle an empty response the same way I would handle file_exists() returning false?&lt;/p&gt;
&lt;p&gt;I&#039;ve tried both ways, and even ran some microtime() to try and find the best way. But I get inconclusive results, so here I am &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;file_exists&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$file&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)) {&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$data &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;json_decode&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;file_get_contents&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$file&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;), &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;VS&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$data &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= @&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;file_get_contents&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$file&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;if(isset(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$data&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) &amp;amp;&amp;amp; !empty(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$data&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)) {&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$data &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;json_decode&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$data&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Both work very well, but which is the &quot;best&quot; way?&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
 &lt;div class=&quot;signature&quot;&gt;&lt;p&gt;All the best news here: &lt;a href=&quot;https://newsbotnet.com&quot; target=&quot;_blank&quot; rel=&quot;follow&quot; rel=&quot;nofollow&quot;&gt;https://newsbotnet.com&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;
</description>
 <comments>https://www.webmaster-forums.net/web-programming-and-application-development/fastest-way-utilize-file-get-contents-php#comments</comments>
 <category domain="https://www.webmaster-forums.net/taxonomy/term/1000001">Web Programming and Application Development</category>
 <pubDate>Tue, 22 Aug 2017 09:08:32 +0000</pubDate>
 <dc:creator>DarkLight</dc:creator>
 <guid isPermaLink="false">1088776 at https://www.webmaster-forums.net</guid>
</item>
<item>
 <title>Contact us form issue in packing and moving website.</title>
 <link>https://www.webmaster-forums.net/web-programming-and-application-development/contact-us-form-issue-packing-and-moving-website</link>
 <description> &lt;p&gt;Hi,&lt;br /&gt;
Here is a website I have developed for a packers and movers business.&lt;br /&gt;
In this particular website, I have added one contact us form in the mid of the website and another one is in the menu section. The menu section contacts us form is working but with the same PHP script the body section form is not working.&lt;br /&gt;
How can we solve the issue?&lt;br /&gt;
Domain is registered with hostindia - &lt;a href=&quot;https://www.hostindia.net/domains.php&quot; title=&quot;https://www.hostindia.net/domains.php&quot;&gt;https://www.hostindia.net/domains.php&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
 &lt;div class=&quot;signature&quot;&gt;&lt;p&gt;Debasish is a marketing manager in a seventeen years old company. Completed MBA in 2012.&lt;/p&gt;&lt;/div&gt;
</description>
 <comments>https://www.webmaster-forums.net/web-programming-and-application-development/contact-us-form-issue-packing-and-moving-website#comments</comments>
 <category domain="https://www.webmaster-forums.net/taxonomy/term/1000001">Web Programming and Application Development</category>
 <pubDate>Tue, 08 Aug 2017 11:35:39 +0000</pubDate>
 <dc:creator>Darshan</dc:creator>
 <guid isPermaLink="false">1088749 at https://www.webmaster-forums.net</guid>
</item>
<item>
 <title>Vagrant on Ubuntu 17.04: no communication between host and guest (private network)</title>
 <link>https://www.webmaster-forums.net/web-programming-and-application-development/vagrant-ubuntu-1704-no-communication-between-host-and-gu</link>
 <description> &lt;p&gt;This problem took several hours to work out, so am posting the solution here. The problem was that, with an Ubuntu 17.04 host and Vagrant (1.9.2) and an Ubuntu 16.04 guest (&lt;code&gt;ubuntu/xenial64&lt;/code&gt;) communication between the host and guest wasn&#039;t working when networking was setup with a private network like this:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;config.vm.network &amp;quot;private_network&amp;quot;, ip: &amp;quot;192.168.33.10&amp;quot;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;It worked after the first &lt;code&gt;vagrant up&lt;/code&gt; but after rebooting and/or running &lt;code&gt;vagrant halt&lt;/code&gt; — then vagrant up — the guest and host could not communicate with each other over the private network.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;ping 192.168.33.1&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Wouldn&#039;t work from the guest and:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;ping 192.168.33.10&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Wouldn&#039;t work from the host.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Solution&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Open a command prompt, enter:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;ip addr&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;In the output, look for the VirtualBox network, probably &lt;code&gt;vboxnet0&lt;/code&gt; (or something similar). If it looks something like this:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;vboxnet0: &amp;lt;BROADCAST,MULTICAST&amp;gt; mtu 1500 qdisc noop state DOWN group default qlen 1000&lt;br /&gt;link/ether 0a:00:27:00:00:00 brd ff:ff:ff:ff:ff:ff&lt;br /&gt;inet 192.168.33.1/24 scope global vboxnet0&lt;br /&gt;valid_lft forever preferred_lft forever&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Where &#039;state&#039; in the first line is &#039;DOWN&#039; then the interface needs to be brought up; run this command (changing &lt;code&gt;vboxnet0&lt;/code&gt; to the name found by running ip addr if required):&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;sudo ip link set vboxnet0 up&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Other stuff I tried (might be useful if the above didn&#039;t work):&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;In VirtualBox, going to File -&amp;gt; Preferences -&amp;gt; Network -&amp;gt; Host-only Networks -&amp;gt; vboxnet0 and clicking the screwdriver/spanner to edit the network, then click &#039;OK&#039; and &#039;OK&#039; on both open dialogues,&lt;br /&gt;
 this gets VirtualBox to recreate the network.&lt;/li&gt;
&lt;li&gt;Running &lt;code&gt;vagrant plugin install vagrant-vbguest&lt;/code&gt; at the command prompt on the host machine. This seems to ensure the VirtualBox Guest Additions are installed.&lt;/li&gt;
&lt;li&gt;Updating guest additions to the latest version.&lt;/li&gt;
&lt;li&gt;Re-installing the VirtualBox driver by running the command: &lt;code&gt;sudo rcvboxdrv setup&lt;/code&gt; on the host.&lt;/li&gt;
&lt;li&gt;Ensuring firewall is disabled using the commands &lt;code&gt;sudo ufw disable&lt;/code&gt; and &lt;a href=&quot;https://serverfault.com/a/129087&quot;&gt;disabling iptables&lt;/a&gt;.
&lt;/li&gt;&lt;/ol&gt;
 &lt;div class=&quot;signature&quot;&gt;&lt;p&gt;&lt;a href=&quot;http://www.apaddedcell.com&quot; rel=&quot;nofollow&quot;&gt;a Padded Cell&lt;/a&gt; our articles site!&lt;/p&gt;&lt;/div&gt;
</description>
 <comments>https://www.webmaster-forums.net/web-programming-and-application-development/vagrant-ubuntu-1704-no-communication-between-host-and-gu#comments</comments>
 <category domain="https://www.webmaster-forums.net/taxonomy/term/1000001">Web Programming and Application Development</category>
 <pubDate>Wed, 19 Jul 2017 02:17:10 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">1088252 at https://www.webmaster-forums.net</guid>
</item>
<item>
 <title>Security in Programming</title>
 <link>https://www.webmaster-forums.net/web-programming-and-application-development/security-programming</link>
 <description> &lt;p&gt;What are the security measures that are taken to make programming secure?&lt;/p&gt;
 </description>
 <comments>https://www.webmaster-forums.net/web-programming-and-application-development/security-programming#comments</comments>
 <category domain="https://www.webmaster-forums.net/taxonomy/term/1000001">Web Programming and Application Development</category>
 <pubDate>Mon, 24 Oct 2016 06:15:21 +0000</pubDate>
 <dc:creator>Vayamtech</dc:creator>
 <guid isPermaLink="false">1088061 at https://www.webmaster-forums.net</guid>
</item>
<item>
 <title>What attracts you as a consumer to purchase?</title>
 <link>https://www.webmaster-forums.net/web-programming-and-application-development/what-attracts-you-consumer-purchase</link>
 <description> &lt;p&gt;There are a variety of web hosting companies in the industry today - A lot offering similar features and prices. Setting aside support, reliability and pricing, what do you think are the most important features/things a company should have on offer to attract you to purchase?&lt;/p&gt;
 </description>
 <comments>https://www.webmaster-forums.net/web-programming-and-application-development/what-attracts-you-consumer-purchase#comments</comments>
 <category domain="https://www.webmaster-forums.net/taxonomy/term/1000001">Web Programming and Application Development</category>
 <pubDate>Mon, 15 Aug 2016 07:07:13 +0000</pubDate>
 <dc:creator>Albertwu</dc:creator>
 <guid isPermaLink="false">1087244 at https://www.webmaster-forums.net</guid>
</item>
<item>
 <title>Sitemap</title>
 <link>https://www.webmaster-forums.net/web-programming-and-application-development/sitemap</link>
 <description> &lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I am using free sitemap tool to create sitemap.xml.&lt;br /&gt;
The tool is counting  all images to individual page,how to remove the image file in sitemap.&lt;/p&gt;
 </description>
 <comments>https://www.webmaster-forums.net/web-programming-and-application-development/sitemap#comments</comments>
 <category domain="https://www.webmaster-forums.net/taxonomy/term/1000001">Web Programming and Application Development</category>
 <pubDate>Thu, 09 Jun 2016 07:06:37 +0000</pubDate>
 <dc:creator>k2bsolutions</dc:creator>
 <guid isPermaLink="false">1083709 at https://www.webmaster-forums.net</guid>
</item>
<item>
 <title>Form validates but does not submit any longer. Also, redirect afterwards not working</title>
 <link>https://www.webmaster-forums.net/web-programming-and-application-development/form-validates-does-not-submit-any-longer-also-redirect-</link>
 <description> &lt;p&gt;Now that I have the javascript validation on this form working, the form itself is no longer submitting (it was working just fine before I changed the form&#039;s submit button to&lt;/p&gt;
&lt;p&gt;see, &lt;a href=&quot;http://nineinchbride.com/SuitedForWar_BookTwo_PreOrderForm.php&quot; rel=&quot;nofollow&quot;&gt;http://nineinchbride.com/SuitedForWar_BookTwo_PreOrderForm.php&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Some JS is needed, I suspect, to tell it to submit &#039;if&#039; validation passes. I know my way around code a bit, but I am not a programmer, unfortunately. Can anyone here help?&lt;/p&gt;
&lt;p&gt;Also, before, when the submit was working, the page should have re-directed after successful submission to another page (as if a &#039;thank you&#039; page), but did not. I realize the form apart from the validation, is PHP (and therefore maybe should go in the &#039;programmer/developer&#039; forum?) but maybe a JS pro can help there too.&lt;/p&gt;
&lt;p&gt;The HTML, JS and PHP code  for the form as it now stands is as follows:&lt;/p&gt;
&lt;p&gt;   &lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt; &amp;lt;form id=&amp;quot;PreOrder_Book_2&amp;quot; name=&amp;quot;PreOrder_Book_2&amp;quot; method=&amp;quot;post&amp;quot; action=&amp;quot;&amp;quot;&amp;gt;&lt;br /&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;&amp;nbsp; &amp;lt;p&amp;gt;Your Name:&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;CustomerName&amp;quot; id=&amp;quot;CustomerName&amp;quot; /&amp;gt;&lt;br /&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;&amp;nbsp; &amp;lt;/p&amp;gt;&lt;br /&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;&amp;nbsp; &amp;lt;p&amp;gt;Your Email:&amp;amp;nbsp;&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;CustomerEmail&amp;quot; id=&amp;quot;CustomerEmail&amp;quot; /&amp;gt;&lt;br /&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;&amp;nbsp; &amp;lt;/p&amp;gt;&lt;br /&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;&amp;nbsp; &amp;lt;p&amp;gt;&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input type=&amp;quot;checkbox&amp;quot; name=&amp;quot;NotifyPaperback&amp;quot; id=&amp;quot;NotifyPaperback&amp;quot; /&amp;gt;&lt;br /&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;&amp;nbsp; Notify me when paperback is available.&amp;lt;/p&amp;gt;&lt;br /&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;&amp;nbsp; &amp;lt;p&amp;gt;&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input type=&amp;quot;checkbox&amp;quot; name=&amp;quot;Notify_eBook&amp;quot; id=&amp;quot;Notify_eBook&amp;quot; /&amp;gt;&lt;br /&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;&amp;nbsp; Notify me when eBook is available.&amp;lt;/p&amp;gt;&lt;br /&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;&amp;nbsp; &amp;lt;p&amp;gt;Desired eBook Format:&amp;lt;/p&amp;gt;&lt;br /&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;&amp;nbsp; &amp;lt;p&amp;gt;&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;label&amp;gt;&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input type=&amp;quot;radio&amp;quot; name=&amp;quot;eBookFormats&amp;quot; value=&amp;quot;.mobi&amp;quot; id=&amp;quot;eBookFormats_0&amp;quot; /&amp;gt;&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .mobi (Kindle)&amp;lt;/label&amp;gt;&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;br /&amp;gt;&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;label&amp;gt;&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input type=&amp;quot;radio&amp;quot; name=&amp;quot;eBookFormats&amp;quot; value=&amp;quot;.epub&amp;quot; id=&amp;quot;eBookFormats_1&amp;quot; /&amp;gt;&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .epub (Nook / Ipad / Sony / Kobo)&amp;lt;/label&amp;gt;&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;br /&amp;gt;&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;label&amp;gt;&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input type=&amp;quot;radio&amp;quot; name=&amp;quot;eBookFormats&amp;quot; value=&amp;quot;.pdf&amp;quot; id=&amp;quot;eBookFormats_2&amp;quot; /&amp;gt;&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .pdf (All readers)&amp;lt;/label&amp;gt;&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/p&amp;gt;&lt;br /&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;&amp;nbsp; &amp;lt;p&amp;gt;&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input type=&amp;quot;button&amp;quot; name=&amp;quot;button&amp;quot; id=&amp;quot;button&amp;quot; value=&amp;quot;Submit&amp;quot; onclick=&amp;quot;return validateForm();&amp;quot;/&amp;gt;&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;br /&amp;gt;&lt;br /&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;&amp;nbsp; &amp;lt;/p&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/form&amp;gt;&amp;lt;script&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function validateForm()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var name=document.forms[&amp;quot;PreOrder_Book_2&amp;quot;][&amp;quot;CustomerName&amp;quot;].value;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (name==null || name==&amp;quot;&amp;quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert(&amp;quot;Name cannot be left blank.&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return false;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var z=document.forms[&amp;quot;PreOrder_Book_2&amp;quot;][&amp;quot;CustomerEmail&amp;quot;].value;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (z==null || z==&amp;quot;&amp;quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert(&amp;quot;Please enter your email.&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return false;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/script&amp;gt;&amp;quot; &lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;    &lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if(!isset(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;submit&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//This page should not be accessed directly. Need to submit the form.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;error; you need to submit the form!&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$name &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;CustomerName&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$visitor_email &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;CustomerEmail&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$message1 &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;NotifyPaperback&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$message2 &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;Notify_eBook&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$message3 &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;eBookFormats&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//Validate first&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if(empty(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$name&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)||empty(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$visitor_email&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Name and email are mandatory!&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$email_from &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;webmanager@nineinchbride.com&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//&amp;lt;== Put your email address here&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$email_subject &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;New Form submission&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$email_body &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;You have received a new message from the user &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$name&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;.\n&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;email address: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$visitor_email&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\n&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Notify When Paperback Is Available: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$message1&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\n&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Notify When eBook Is Available: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$message2&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\n&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;My eBook Format Is: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$message3&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\n&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$to &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;webmanager@nineinchbride.com&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//&amp;lt;== Put your email address here&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$headers &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;From: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$email_from&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; \r\n&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//Send the email!&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mail&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$to&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$email_subject&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$email_body&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$headers&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//done. redirect to thank-you page.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;header&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;Location: &amp;lt;a href=&quot;http://nineinchbride.com&#039;&quot; title=&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;http&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//nineinchbride.com&#039;&quot; rel=&quot;nofollow&quot;&amp;gt;http://nineinchbride.com&#039;&amp;lt;/a&amp;gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Again, please go easy on me, though I can adapt code a little, I&#039;m no programmer. Thanks for your help.&lt;/p&gt;
 </description>
 <comments>https://www.webmaster-forums.net/web-programming-and-application-development/form-validates-does-not-submit-any-longer-also-redirect-#comments</comments>
 <category domain="https://www.webmaster-forums.net/taxonomy/term/1000001">Web Programming and Application Development</category>
 <pubDate>Thu, 12 May 2016 06:22:33 +0000</pubDate>
 <dc:creator>ForTheTimeBeing</dc:creator>
 <guid isPermaLink="false">1075905 at https://www.webmaster-forums.net</guid>
</item>
<item>
 <title>Angular JS not playing right</title>
 <link>https://www.webmaster-forums.net/web-programming-and-application-development/angular-js-not-playing-right</link>
 <description> &lt;p&gt;Hi, I have been tasked with helping make an ecommerce site more search engine friendly. The site runs on Angular JS.&lt;/p&gt;
&lt;p&gt;My experience is strictly in SEO....very weak when it comes to coding.&lt;/p&gt;
&lt;p&gt;The issue we&#039;re seeing is that Google is picking up and indexing URLs with appended characters.&lt;/p&gt;
&lt;p&gt;eg: &lt;a href=&quot;http://www.mycompanyecommercewebsite.com/item/x745?m_p=1&quot; title=&quot;www.mycompanyecommercewebsite.com/item/x745?m_p=1&quot; rel=&quot;nofollow&quot;&gt;www.mycompanyecommercewebsite.com/item/x745?m_p=1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The URL should stop after the &quot;/x745&quot;.&lt;/p&gt;
&lt;p&gt;We&#039;re also seeing the following appear in the descriptions when I Google a random URL (product page) from the site:&lt;/p&gt;
&lt;p&gt; Cart ({{headerObject.Cart.ItemCount}} 0 ) · My Account. &lt;/p&gt;
&lt;p&gt;I am not experienced with performing SEO for Angular JS, and neither are the coders who work with me. I was wondering if someone could tell me how or why Google is not obeying the _escaped_fragment_= that we have so that it will be able to view the pages as intended (with proper descriptions/etc).&lt;/p&gt;
&lt;p&gt;I have Googled a few fixes and the coders are telling me that they have implemented them.&lt;/p&gt;
&lt;p&gt;Thanks if you can shed any light on this technical challenge.&lt;/p&gt;
&lt;p&gt;- Tony&lt;/p&gt;
 </description>
 <comments>https://www.webmaster-forums.net/web-programming-and-application-development/angular-js-not-playing-right#comments</comments>
 <category domain="https://www.webmaster-forums.net/taxonomy/term/1000001">Web Programming and Application Development</category>
 <pubDate>Tue, 29 Mar 2016 21:41:06 +0000</pubDate>
 <dc:creator>LostinJS</dc:creator>
 <guid isPermaLink="false">1064086 at https://www.webmaster-forums.net</guid>
</item>
<item>
 <title>DNS Services on Domain Level and Hosting Level</title>
 <link>https://www.webmaster-forums.net/web-programming-and-application-development/dns-services-domain-level-and-hosting-level</link>
 <description> &lt;p&gt;Not sure is my title correct or not. I am looking on the dns services such as A record, Cname, MX record, child name server and etc.&lt;/p&gt;
&lt;p&gt;I able to set each of this record at my domain level (domain control panel)&lt;/p&gt;
&lt;p&gt;If I set the record again in my hosting control panel, will it bring at negative effect?&lt;/p&gt;
&lt;p&gt;eg. mydomain.com, I set the mx record at the domain control panel, while I set the mx record again on my hosting cpanel.&lt;/p&gt;
&lt;p&gt;As what I understand, if I set at domain level, if my hosting down, my email still works because the mx record set at domain control panel. but is there any thing to concern if I set at both domain and hosting level?&lt;/p&gt;
 </description>
 <comments>https://www.webmaster-forums.net/web-programming-and-application-development/dns-services-domain-level-and-hosting-level#comments</comments>
 <category domain="https://www.webmaster-forums.net/taxonomy/term/1000001">Web Programming and Application Development</category>
 <pubDate>Tue, 29 Mar 2016 03:58:10 +0000</pubDate>
 <dc:creator>Albertwu</dc:creator>
 <guid isPermaLink="false">1064081 at https://www.webmaster-forums.net</guid>
</item>
<item>
 <title>Issues after a migration of sites</title>
 <link>https://www.webmaster-forums.net/web-programming-and-application-development/issues-after-migration-sites</link>
 <description> &lt;p&gt;3 days ago I moved two joomla sites (one J2.5 and one J3.4) from their previous server (cPanel) to a Virtualmin VPS. All DNS &amp;amp; VPS settings are correct, and for anyone that hasn’t visited these websites before, they display nicely.&lt;br /&gt;
But, visitors that had previously browsed these websites, see only the bare HTML output, without CSS or images loading. All website files are in place, nothing seems to be missing or corrupt.&lt;br /&gt;
Also, on the same computer (Mac) with 4 browsers installed, it looks great on Safari and Opera (haven’t used these before) but on Firefox/Chrome (regular browsers) the problem persists. &lt;/p&gt;
&lt;p&gt;Have flushed all local DNS cache, browser history etc but no improvement. PHP version on both servers is the same, have also flushed Joomla cache.&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
 </description>
 <comments>https://www.webmaster-forums.net/web-programming-and-application-development/issues-after-migration-sites#comments</comments>
 <category domain="https://www.webmaster-forums.net/taxonomy/term/1000001">Web Programming and Application Development</category>
 <pubDate>Thu, 04 Feb 2016 07:06:06 +0000</pubDate>
 <dc:creator>Albertwu</dc:creator>
 <guid isPermaLink="false">1062930 at https://www.webmaster-forums.net</guid>
</item>
<item>
 <title>File Storage for web app</title>
 <link>https://www.webmaster-forums.net/web-programming-and-application-development/file-storage-web-app-0</link>
 <description> &lt;p&gt;Hello Everyone&lt;/p&gt;
&lt;p&gt;I need your assistence, I am creating a web application that requires file storage, like user photos, videos and files etc, I was thinking of Amazon S3 or DreamObjects but the issue is I do not want to have to pay for API requests or file downloads, I just really want to pay for storage so I do not have to charge my users for downloads or requests which would add complexity.&lt;/p&gt;
&lt;p&gt;So what I really need is some form of cheap storage solution that will allow me to store user personal files that can easily be read, updated, downloaded and deleted by the user via API calls from my PHP script, storage wise is around 100GB to 250GB but may need a way to upgrade if needed, I do not mind renting a cheap server for this as long as it does the task and if there are server applications that would allow me to perform this task.&lt;/p&gt;
&lt;p&gt;Thanks for your help and I am looking forward to your responses.&lt;/p&gt;
 </description>
 <comments>https://www.webmaster-forums.net/web-programming-and-application-development/file-storage-web-app-0#comments</comments>
 <category domain="https://www.webmaster-forums.net/taxonomy/term/1000001">Web Programming and Application Development</category>
 <pubDate>Fri, 25 Dec 2015 06:33:23 +0000</pubDate>
 <dc:creator>Albertwu</dc:creator>
 <guid isPermaLink="false">1062666 at https://www.webmaster-forums.net</guid>
</item>
<item>
 <title>php mysql code not working on server</title>
 <link>https://www.webmaster-forums.net/web-programming-and-application-development/php-mysql-code-not-working-server</link>
 <description> &lt;p&gt;Hi. I have all my code written for a uni assignment due tomorrow and ive been slapped round the face by &lt;a href=&quot;http://hostforlife.eu&quot; rel=&quot;nofollow&quot;&gt;hostforlife&lt;/a&gt; as the code which works really well on my localhost machine doesnt on their server. I think it may have something to do with the&lt;br /&gt;
$result = mysqli_stmt_get_result($stmt);&lt;/p&gt;
&lt;p&gt;line of code. This is the new error message:&lt;br /&gt;
Fatal error: Call to undefined function mysqli_stmt_get_result() in /home/hear2see/public_html/index.php on line 90&lt;/p&gt;
&lt;p&gt;But im really unsure and would be greatful of any help. I have made sure the mysqlnd driver is ticked in the PHP modules.&lt;/p&gt;
&lt;p&gt;example of complete code for login page:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt; &lt;br /&gt;session_start&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;();&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;header&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;Cache-Control: no cache&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//no cache&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;session_cache_limiter&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;private_no_expire&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;  Login Form&lt;/p&gt;
&lt;p&gt;        &lt;a href=&quot;main.php&quot; rel=&quot;nofollow&quot;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul class=&quot;nav navbar-nav navbar-right&quot;&gt;
&lt;li&gt;
              &lt;a href=&quot;main.php&quot; rel=&quot;nofollow&quot;&gt;Browse&lt;/a&gt;
            &lt;/li&gt;
&lt;li&gt;
              &lt;a href=&quot;upload.php&quot; rel=&quot;nofollow&quot;&gt;Upload Event&lt;/a&gt;
            &lt;/li&gt;
&lt;li&gt;
              &lt;a href=&quot;logout.php?&quot; rel=&quot;nofollow&quot;&gt;Logout&lt;/a&gt;
            &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;    &lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $okay &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;TRUE&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$con &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysqli_connect&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;localhost&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;root&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;python&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$con&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; die(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;Could not connect: &#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;. &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysqli_error&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$con&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//Establish connection&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$query &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;SELECT * FROM login WHERE email= ? AND password = ?&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//Check password and email&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$crypt &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;crypt&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;email&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;$1$asdf1234$&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$cryptp &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;crypt&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;password&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;], &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;$1$asdf1234$&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//Encrypt both entered username and passowrd to match with database content &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_SESSION&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;email&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$crypt&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//If email and passwords match, initiate session&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_SESSION&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;password&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$cryptp&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$stmt &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$con&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;prepare&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$query&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$stmt &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;bind_param&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;ss&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_SESSION&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;email&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;], &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_SESSION&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;password&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysqli_stmt_execute&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$stmt&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$result &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysqli_stmt_get_result&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$stmt&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$row &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysqli_fetch_array&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$result&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (empty(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$row&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)){ &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//If results list empty display error&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;lt;h2&amp;gt;Wrong username or password!&amp;lt;br&amp;gt;&amp;lt;/h2&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;lt;a href=index.html&amp;gt;Login&amp;lt;/a&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$okay &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;FALSE&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_SESSION&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;currentUser&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] = (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$row&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;user&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(isset(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_SESSION&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;currentUser&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;])){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;lt;h1 style=&#039;text-align:center&#039;&amp;gt;Welcome back &quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_SESSION&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;currentUser&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]. &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;!&amp;lt;/h1&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//Display username logged in&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;print &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&amp;lt;h3&amp;gt;&amp;lt;p&amp;gt;Your Events&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/h3&amp;gt;&amp;lt;/p&amp;gt;&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//Display events logged in user has listed already. Union selects from multiple tables&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sql&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;SELECT * from london where user = ? UNION SELECT * from manchester where user = ? UNION SELECT * FROM bristol where user = ? UNION SELECT * FROM yorkshire where user = ? UNION SELECT * FROM newcastle where user = ? UNION SELECT * FROM lancashire where user = ? UNION SELECT * FROM glasgow where user = ? UNION SELECT * FROM liverpool where user = ? UNION SELECT * FROM edinburgh where user = ? UNION SELECT * FROM surrey where user = ? UNION SELECT * FROM birmingham where user = ? &quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$stmt2 &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$con &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;prepare&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sql&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$stmt2 &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;bind_param&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;sssssssssss&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_SESSION&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;currentUser&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;], &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_SESSION&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;currentUser&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;], &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_SESSION&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;currentUser&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;], &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_SESSION&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;currentUser&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;], &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_SESSION&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;currentUser&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;], &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_SESSION&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;currentUser&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;], &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_SESSION&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;currentUser&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;], &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_SESSION&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;currentUser&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;], &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_SESSION&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;currentUser&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;], &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_SESSION&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;currentUser&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;], &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_SESSION&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;currentUser&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysqli_stmt_execute&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$stmt2&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$result1 &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysqli_stmt_get_result&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$stmt2&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$stmt2&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;){ &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//If $stmt exectuted, display results in Bootstrap hover table&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;lt;table class=&#039;table table-hover&#039;&amp;gt;&amp;lt;thead&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;th&amp;gt;&amp;lt;h3&amp;gt;Artist&amp;lt;/th&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;th&amp;gt;&amp;lt;h3&amp;gt;Location&amp;lt;/th&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;th&amp;gt;&amp;lt;h3&amp;gt;Date&amp;lt;/th&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;th&amp;gt;&amp;lt;h3&amp;gt;Genre&amp;lt;/th&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;th&amp;gt;&amp;lt;h3&amp;gt;Preview&amp;lt;/th&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/tr&amp;gt;&amp;lt;/thead&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//While $row contains result, execute the while loop &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;while(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$row &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysqli_fetch_array&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$result1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)) {&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;lt;tr&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;lt;td&amp;gt;&quot; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;. &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$row&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;artist&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] . &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;lt;/td&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;lt;td&amp;gt; &amp;lt;b&amp;gt;Venue: &amp;lt;/b&amp;gt;&quot; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;. &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$row&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;venue&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] . &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;Location: &amp;lt;/b&amp;gt;&quot; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;. &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$row&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;location&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] . &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;lt;/td&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;lt;td&amp;gt;&quot; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;. &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$row&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;datez&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] . &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;lt;/td&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;lt;td&amp;gt;&quot; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;. &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$row&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;genre&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] . &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;lt;/td&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//Dispay Soundcloud link to a track by artist in $row[&#039;artist&#039;]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;lt;td&amp;gt;&quot; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;. &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&amp;lt;iframe width=&quot;100%&quot; height=&quot;100&quot; scrolling=&quot;no&quot; frameborder=&quot;no&quot; src=&quot;https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/&#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;. &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$row&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;link&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] . &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&amp;amp;amp;color=000000&amp;amp;amp;auto_play=false&amp;amp;amp;hide_related=false&amp;amp;amp;show_comments=true&amp;amp;amp;show_user=true&amp;amp;amp;show_reposts=false&quot;&amp;gt;&amp;lt;/iframe&amp;gt;&#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;. &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;lt;/td&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;lt;/tr&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;lt;/table&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;error&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//If theres no $stmt display error&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysqli_close&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$con&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//Close Connection&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;}&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
 <comments>https://www.webmaster-forums.net/web-programming-and-application-development/php-mysql-code-not-working-server#comments</comments>
 <category domain="https://www.webmaster-forums.net/taxonomy/term/1000001">Web Programming and Application Development</category>
 <pubDate>Thu, 04 Jun 2015 07:56:16 +0000</pubDate>
 <dc:creator>Goinfory</dc:creator>
 <guid isPermaLink="false">1060860 at https://www.webmaster-forums.net</guid>
</item>
<item>
 <title>APache cannot come on, some modules cant be enabled</title>
 <link>https://www.webmaster-forums.net/web-programming-and-application-development/apache-cannot-come-some-modules-cant-be-enabled</link>
 <description> &lt;p&gt;how can i solve this problem?&lt;/p&gt;
&lt;p&gt;i have followed &lt;a href=&quot;http://braintem.org/twists/view/122964/&quot; rel=&quot;nofollow&quot;&gt;the instructions here &lt;/a&gt; yet to no avail.&lt;br /&gt;
I am on windows, 64 bits running wamp. It was working before then all of s sudden apache service can no longer be started.&lt;/p&gt;
 </description>
 <comments>https://www.webmaster-forums.net/web-programming-and-application-development/apache-cannot-come-some-modules-cant-be-enabled#comments</comments>
 <category domain="https://www.webmaster-forums.net/taxonomy/term/1000001">Web Programming and Application Development</category>
 <pubDate>Thu, 22 Jan 2015 04:08:14 +0000</pubDate>
 <dc:creator>daveozoalor</dc:creator>
 <guid isPermaLink="false">1060436 at https://www.webmaster-forums.net</guid>
</item>
<item>
 <title>How to create web site in java ?</title>
 <link>https://www.webmaster-forums.net/web-programming-and-application-development/how-create-web-site-java</link>
 <description> &lt;p&gt;hi i want to know that how to create webs site in core java .&lt;/p&gt;
 </description>
 <comments>https://www.webmaster-forums.net/web-programming-and-application-development/how-create-web-site-java#comments</comments>
 <category domain="https://www.webmaster-forums.net/taxonomy/term/1000001">Web Programming and Application Development</category>
 <pubDate>Wed, 03 Dec 2014 05:09:23 +0000</pubDate>
 <dc:creator>bhup kinha</dc:creator>
 <guid isPermaLink="false">1060340 at https://www.webmaster-forums.net</guid>
</item>
<item>
 <title>How to design mouse on small picture an show large picture</title>
 <link>https://www.webmaster-forums.net/web-programming-and-application-development/how-design-mouse-small-picture-show-large-picture</link>
 <description> &lt;p&gt;I have a shop secrool.com, on the left show product picture, it&#039;s small pic, i want to achieve this function&lt;br /&gt;
When someone move mouse on the picture, it will automactically show large picture, float on the small picture.&lt;br /&gt;
i installed zencart photo plugin, but not works, anyone know how to solove this problem?&lt;/p&gt;
 </description>
 <comments>https://www.webmaster-forums.net/web-programming-and-application-development/how-design-mouse-small-picture-show-large-picture#comments</comments>
 <category domain="https://www.webmaster-forums.net/taxonomy/term/1000001">Web Programming and Application Development</category>
 <pubDate>Mon, 17 Nov 2014 02:07:42 +0000</pubDate>
 <dc:creator>manman008</dc:creator>
 <guid isPermaLink="false">1060303 at https://www.webmaster-forums.net</guid>
</item>
<item>
 <title>All about Frameworks</title>
 <link>https://www.webmaster-forums.net/web-programming-and-application-development/all-about-frameworks</link>
 <description> &lt;p&gt;Use this space to talk about frameworks. &lt;/p&gt;
&lt;p&gt;What are you working with these days? Are you trying anything new or sticking with the same old? What do you like/dislike about the frameworks you&#039;re working with? What are you interested in trying?&lt;/p&gt;
 &lt;div class=&quot;signature&quot;&gt;&lt;p&gt;Megan&lt;br /&gt;
&lt;strong&gt;&lt;a href=&quot;http://www.facebook.com/pages/A-Padded-Cell/115951385124483&quot; rel=&quot;nofollow&quot;&gt;Connect with us on Facebook!&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/div&gt;
</description>
 <comments>https://www.webmaster-forums.net/web-programming-and-application-development/all-about-frameworks#comments</comments>
 <category domain="https://www.webmaster-forums.net/taxonomy/term/1000001">Web Programming and Application Development</category>
 <pubDate>Tue, 11 Nov 2014 18:27:34 +0000</pubDate>
 <dc:creator>Megan</dc:creator>
 <guid isPermaLink="false">1060286 at https://www.webmaster-forums.net</guid>
</item>
<item>
 <title>Inserting and retrieving a blob data from mysql database using php</title>
 <link>https://www.webmaster-forums.net/web-programming-and-application-development/inserting-and-retrieving-blob-data-mysql-database-using-</link>
 <description> &lt;p&gt;I am having great difficulty in displaying an image that I had already inserted into a database. Below is my two script code to help in inserting and displaying. While using google chrome as my browser, I end up getting a broken image icon, but when i just recently used firefox, i got the error message that the file contains error!&lt;br /&gt;
Please what could be the problem in this case?&lt;/p&gt;
&lt;p&gt;This is my first script: uploadFile.php:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//Open a new connection to the MySQL server&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$user&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;root&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$host&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;localhost&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$password&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$database &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;dynamic_data&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$cxn &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysqli_connect&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$host&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$user&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$password&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$database&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// Check connection&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysqli_connect_errno&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;()) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Failed to connect to MySQL: &quot; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;. &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysqli_connect_error&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;();&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;@&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$name &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_FILES&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;file&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;name&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;];&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$extension &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;strtolower&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;substr&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$name&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;strpos&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$name&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;.&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) + &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;));&lt;br /&gt;@&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$tmp_name &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_FILES&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;file&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;tmp_name&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;];&lt;br /&gt;@&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$type &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_FILES&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;file&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;type&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;];&lt;br /&gt;@&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$size &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_FILES&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;file&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;size&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;];&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$max_size &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;74752&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;if(isset(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$name&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)){&lt;br /&gt;&lt;br /&gt;&amp;nbsp; if(!empty(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$name&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if((&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$extension &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;== &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;jpg&#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;|| &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$extension &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;== &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;jpeg&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&amp;amp;&amp;amp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$type &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;== &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;image/jpeg&#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;amp;&amp;amp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$size &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$max_size&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// Image submitted by form. Open it for reading (mode &quot;r&quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fp &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;fopen&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_FILES&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;file&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;tmp_name&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;], &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;r&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// If successful, read from the file pointer using the size of the file (in bytes) as the length.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fp&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$content &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;fread&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fp&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_FILES&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;file&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;size&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;fclose&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fp&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// Add slashes to the content so that it will escape special characters.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // As pointed out, mysql_real_escape_string can be used here as well. Your choice.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$content &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;addslashes&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$content&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$content&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysqli_real_escape_string&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$cxn&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$content&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$name&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysqli_real_escape_string&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$cxn&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$name&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// Insert into the table &quot;table&quot; for column &quot;image&quot; with our binary string of data (&quot;content&quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysqli_query&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$cxn&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;INSERT INTO uploaded (file_id, name, type, size, image, email) Values(&#039;&#039;,&#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$name&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;,&#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$type&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;, &#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$size&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;,&#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$content&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;,&#039;goro@yahoo.com&#039;)&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) or &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; die(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Couldn&#039;t execute query in your database!&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysqli_error&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$cxn&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;Data-File was inserted into the database!|&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&amp;lt;a href=&quot;showImages.php?id=1&quot;&amp;gt;view&amp;lt;/a&amp;gt;&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;There was an error!&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; else{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;File must be jpg/jpeg and must be 73 kilobyte or less! &#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&amp;nbsp; else {&lt;br /&gt;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;Please select a file!&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;	 File upload&lt;/p&gt;
&lt;p&gt;My second script to actually display the image is : showImages.php comes next&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//Open a new connection to the MySQL server&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$user&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;root&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$host&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;localhost&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$password&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$database &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;dynamic_data&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$cxn &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysqli_connect&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$host&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$user&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$password&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$database&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// Check connection&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysqli_connect_errno&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;()) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Failed to connect to MySQL: &quot; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;. &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysqli_connect_error&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if (isset(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_GET&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;id&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;])) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysqli_real_escape_string&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$cxn&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_GET&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;id&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mysql_run&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysqli_query&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$cxn&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;SELECT * FROM uploaded WHERE file_id =&#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$row&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysqli_fetch_assoc&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mysql_run&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;header&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Content-type: image/jpeg&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$name&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$row&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;name&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$type&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$row&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;type&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$size&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$row&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;size&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//header(&quot;Content-length: $size&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //header(&quot;Content-type: $type&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //header(&quot;Content-Disposition: attachment; filename=$name&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;echo &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$image&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$row&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;image&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;else {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;Error!&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Please what could be possibly wrong?&lt;/p&gt;
 </description>
 <comments>https://www.webmaster-forums.net/web-programming-and-application-development/inserting-and-retrieving-blob-data-mysql-database-using-#comments</comments>
 <category domain="https://www.webmaster-forums.net/taxonomy/term/1000001">Web Programming and Application Development</category>
 <pubDate>Thu, 18 Sep 2014 15:54:06 +0000</pubDate>
 <dc:creator>erabxes</dc:creator>
 <guid isPermaLink="false">1060191 at https://www.webmaster-forums.net</guid>
</item>
<item>
 <title>Accessing and collecting post[] data from an array in PHP </title>
 <link>https://www.webmaster-forums.net/web-programming-and-application-development/accessing-and-collecting-post-data-array-php</link>
 <description> &lt;p&gt;I have a form like the one below which is posted to processForm.php, and the user can dynamically add more with jquery.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;subject[]&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;grade[]&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;year[]&amp;quot; /&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;subject[]&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;grade[]&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;year[]&amp;quot; /&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;subject[]&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;grade[]&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;year[]&amp;quot; /&amp;gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Please How can i access those arrays from subject[], grade[] and year[] inputs by the user?&lt;/p&gt;
 </description>
 <comments>https://www.webmaster-forums.net/web-programming-and-application-development/accessing-and-collecting-post-data-array-php#comments</comments>
 <category domain="https://www.webmaster-forums.net/taxonomy/term/1000001">Web Programming and Application Development</category>
 <pubDate>Mon, 08 Sep 2014 12:37:49 +0000</pubDate>
 <dc:creator>erabxes</dc:creator>
 <guid isPermaLink="false">1060170 at https://www.webmaster-forums.net</guid>
</item>
<item>
 <title>Event handling in PHP using controls?</title>
 <link>https://www.webmaster-forums.net/web-programming-and-application-development/event-handling-php-using-controls</link>
 <description> &lt;p&gt;Hello fellows, Please how do one handle events in PHP controls? Or in other words do PHP have events handlers? I am directly referring to the ability to control events like mouse roll over, mouse on focus, mouse out of focus etc? I am presently working on a project that submits a form to a database.&lt;/p&gt;
 </description>
 <comments>https://www.webmaster-forums.net/web-programming-and-application-development/event-handling-php-using-controls#comments</comments>
 <category domain="https://www.webmaster-forums.net/taxonomy/term/1000001">Web Programming and Application Development</category>
 <pubDate>Wed, 27 Aug 2014 15:37:29 +0000</pubDate>
 <dc:creator>erabxes</dc:creator>
 <guid isPermaLink="false">1060125 at https://www.webmaster-forums.net</guid>
</item>
<item>
 <title>Unable to move or copy from one library to another library - sharepiont</title>
 <link>https://www.webmaster-forums.net/web-programming-and-application-development/unable-move-or-copy-one-library-another-library-sharepio</link>
 <description> &lt;p&gt;I am unable to move my documents from one share point document library to another. I open both the libraries in Explorer view and try moving or copying. Plz give good solutions?&lt;/p&gt;
 &lt;div class=&quot;signature&quot;&gt;&lt;p&gt;&lt;a href=&quot;http://www.drupalgeeks.org/drupal-developer&quot; rel=&quot;nofollow&quot;&gt;Drupal Developers&lt;/a&gt; | &lt;a href=&quot;http://www.drupalgeeks.org/drupal-development&quot; rel=&quot;nofollow&quot;&gt;Drupal Development&lt;/a&gt; | &lt;a href=&quot;http://www.joomlageeks.com/joomla-developer&quot; rel=&quot;nofollow&quot;&gt;Joomla Developer&lt;/a&gt; | &lt;a href=&quot;http://www.commercebees.com/services/#magento-development&quot; rel=&quot;nofollow&quot;&gt;Magento Development&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.ameexusa.com/sharpoint&quot; rel=&quot;nofollow&quot;&gt;Sharepoint Consulting&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;
</description>
 <comments>https://www.webmaster-forums.net/web-programming-and-application-development/unable-move-or-copy-one-library-another-library-sharepio#comments</comments>
 <category domain="https://www.webmaster-forums.net/taxonomy/term/1000001">Web Programming and Application Development</category>
 <pubDate>Mon, 04 Aug 2014 11:16:51 +0000</pubDate>
 <dc:creator>mohamedismail</dc:creator>
 <guid isPermaLink="false">1060068 at https://www.webmaster-forums.net</guid>
</item>
<item>
 <title>SharePoint Thread</title>
 <link>https://www.webmaster-forums.net/web-programming-and-application-development/sharepoint-thread</link>
 <description> &lt;p&gt;What are the different management concepts used in Sharepoint 2010?How is it possible to integrate the service applications in Sharepoint 2010?&lt;/p&gt;
 </description>
 <comments>https://www.webmaster-forums.net/web-programming-and-application-development/sharepoint-thread#comments</comments>
 <category domain="https://www.webmaster-forums.net/taxonomy/term/1000001">Web Programming and Application Development</category>
 <pubDate>Tue, 22 Jul 2014 10:16:33 +0000</pubDate>
 <dc:creator>mohamedismail</dc:creator>
 <guid isPermaLink="false">1060033 at https://www.webmaster-forums.net</guid>
</item>
<item>
 <title>Need Help to Develop Mobile App !</title>
 <link>https://www.webmaster-forums.net/web-programming-and-application-development/need-help-develop-mobile-app</link>
 <description> &lt;p&gt;I have just joined a software outsourcing company and a task is been assigned to me is developing mobile apps using Xcode technology. I have used many technologies but i am unfamiliar about Xcode syntax.&lt;br /&gt;
And i don&#039;t have any clear idea about how to use it.&lt;/p&gt;
&lt;p&gt;Please suggest how to do it.&lt;/p&gt;
&lt;p&gt;Any help would be much appreciated.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
 &lt;div class=&quot;signature&quot;&gt;&lt;p&gt;&lt;a href=&quot;http://www.seasiainfotech.com/&quot; rel=&quot;nofollow&quot;&gt;Seasia Infotech&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;
</description>
 <comments>https://www.webmaster-forums.net/web-programming-and-application-development/need-help-develop-mobile-app#comments</comments>
 <category domain="https://www.webmaster-forums.net/taxonomy/term/1000001">Web Programming and Application Development</category>
 <pubDate>Wed, 09 Jul 2014 09:05:00 +0000</pubDate>
 <dc:creator>Seasia1</dc:creator>
 <guid isPermaLink="false">1059998 at https://www.webmaster-forums.net</guid>
</item>
<item>
 <title>How can I quickly improve my programming skills?</title>
 <link>https://www.webmaster-forums.net/web-programming-and-application-development/how-can-i-quickly-improve-my-programming-skills</link>
 <description> &lt;p&gt;Try to enhance the code you create doing many versions of it. Try to express yourself better, think about other methods to implement something.&lt;br /&gt;
 - When you can&#039;t discover a better way to do it ask someone for a critique.&lt;br /&gt;
- Understand more advanced language functions and development paradigms.&lt;br /&gt;
- Understand new &#039;languages&#039; that do factors in a different way just to understand to think in a different way.&lt;br /&gt;
- Learn collections of libraries, tutorials and frameworks to be proficient in them. This creates you much quicker.&lt;/p&gt;
 </description>
 <comments>https://www.webmaster-forums.net/web-programming-and-application-development/how-can-i-quickly-improve-my-programming-skills#comments</comments>
 <category domain="https://www.webmaster-forums.net/taxonomy/term/1000001">Web Programming and Application Development</category>
 <pubDate>Wed, 21 May 2014 12:01:30 +0000</pubDate>
 <dc:creator>surferserves</dc:creator>
 <guid isPermaLink="false">1059877 at https://www.webmaster-forums.net</guid>
</item>
</channel>
</rss>
