<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: New tutorials and articles</title>
	<atom:link href="http://foundationphp.com/blog/2010/01/23/new-tutorials-and-articles/feed/" rel="self" type="application/rss+xml" />
	<link>http://foundationphp.com/blog/2010/01/23/new-tutorials-and-articles/</link>
	<description></description>
	<lastBuildDate>Fri, 03 Feb 2012 11:06:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Hisam</title>
		<link>http://foundationphp.com/blog/2010/01/23/new-tutorials-and-articles/comment-page-1/#comment-17358</link>
		<dc:creator>Hisam</dc:creator>
		<pubDate>Tue, 06 Sep 2011 08:50:14 +0000</pubDate>
		<guid isPermaLink="false">http://foundationphp.com/blog/?p=118#comment-17358</guid>
		<description>Hi David,
Thanks for the tutorial.
How to create multi level nested list from php mysql using dreamweaver?
thanks</description>
		<content:encoded><![CDATA[<p>Hi David,<br />
Thanks for the tutorial.<br />
How to create multi level nested list from php mysql using dreamweaver?<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Powers</title>
		<link>http://foundationphp.com/blog/2010/01/23/new-tutorials-and-articles/comment-page-1/#comment-16983</link>
		<dc:creator>David Powers</dc:creator>
		<pubDate>Mon, 18 Apr 2011 07:20:32 +0000</pubDate>
		<guid isPermaLink="false">http://foundationphp.com/blog/?p=118#comment-16983</guid>
		<description>If you can create a script to upload files and you can create a script to enter details in a database, you already have sufficient knowledge to do what you want. The form contains text input fields for the title and event details, and a file field for the picture. When the form is submitted, the title and event details are in the $_POST array, the image is in the $_FILES array. The processing script should handle the $_FILES array first. If the image is successfully uploaded, get the name of the image (assuming the file field is called &quot;image&quot;, it&#039;s $_FILES[&#039;image&#039;][&#039;name&#039;]), and insert it in the database with the other information from the $_POST array.

I cover file uploads in detail in &lt;a href=&quot;http://foundationphp.com/phpsolutions/&quot; rel=&quot;nofollow&quot;&gt;PHP Solutions, 2nd Edition&lt;/a&gt;, although I don&#039;t cover this particular scenario. However, it is covered in &lt;a href=&quot;http://foundationphp.com/phpcs5/&quot; rel=&quot;nofollow&quot;&gt;Dreamweaver CS5 with PHP: Training from the Source&lt;/a&gt;, using the Zend Framework.</description>
		<content:encoded><![CDATA[<p>If you can create a script to upload files and you can create a script to enter details in a database, you already have sufficient knowledge to do what you want. The form contains text input fields for the title and event details, and a file field for the picture. When the form is submitted, the title and event details are in the $_POST array, the image is in the $_FILES array. The processing script should handle the $_FILES array first. If the image is successfully uploaded, get the name of the image (assuming the file field is called &#8220;image&#8221;, it&#8217;s $_FILES['image']['name']), and insert it in the database with the other information from the $_POST array.</p>
<p>I cover file uploads in detail in <a href="http://foundationphp.com/phpsolutions/" rel="nofollow">PHP Solutions, 2nd Edition</a>, although I don&#8217;t cover this particular scenario. However, it is covered in <a href="http://foundationphp.com/phpcs5/" rel="nofollow">Dreamweaver CS5 with PHP: Training from the Source</a>, using the Zend Framework.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brentkeithtaylor@gmail.com</title>
		<link>http://foundationphp.com/blog/2010/01/23/new-tutorials-and-articles/comment-page-1/#comment-16982</link>
		<dc:creator>brentkeithtaylor@gmail.com</dc:creator>
		<pubDate>Mon, 18 Apr 2011 05:32:52 +0000</pubDate>
		<guid isPermaLink="false">http://foundationphp.com/blog/?p=118#comment-16982</guid>
		<description>Hi David,  
   
I have followed a lot of your tutorials and they are extremely good.  At the moment I am trying to create a form that will upload data to MYSQL as well as an image that is stored in a folder on the site and trying to link the image into the MYSQL database all in one step.  I am creating this form in the CMS of a website that will be used by people that have no experience at webdesign or management.  I need to make it so that they can enter a title, details of an event and upload a picture that is linked to this data all in one form.  I can create a form to enter the data no problem, I can create a form to upload the picture no problem, but I can not link the picture to the relative data.  I can upload the image into the database, but it becomes somewhat bloated.  
Any help you may be able to provide would be much appreciated as I have been trying for about a week and am pulling my hair out.  
I hope this is the appropriate place to ask you this question.
Kind Regards
Brent Taylor</description>
		<content:encoded><![CDATA[<p>Hi David,  </p>
<p>I have followed a lot of your tutorials and they are extremely good.  At the moment I am trying to create a form that will upload data to MYSQL as well as an image that is stored in a folder on the site and trying to link the image into the MYSQL database all in one step.  I am creating this form in the CMS of a website that will be used by people that have no experience at webdesign or management.  I need to make it so that they can enter a title, details of an event and upload a picture that is linked to this data all in one form.  I can create a form to enter the data no problem, I can create a form to upload the picture no problem, but I can not link the picture to the relative data.  I can upload the image into the database, but it becomes somewhat bloated.<br />
Any help you may be able to provide would be much appreciated as I have been trying for about a week and am pulling my hair out.<br />
I hope this is the appropriate place to ask you this question.<br />
Kind Regards<br />
Brent Taylor</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Powers</title>
		<link>http://foundationphp.com/blog/2010/01/23/new-tutorials-and-articles/comment-page-1/#comment-16907</link>
		<dc:creator>David Powers</dc:creator>
		<pubDate>Sun, 06 Mar 2011 19:13:27 +0000</pubDate>
		<guid isPermaLink="false">http://foundationphp.com/blog/?p=118#comment-16907</guid>
		<description>Hi Frank, Glad you like the book. My advice is to learn the basics of PHP before embarking on using a framework. Although a framework can save a lot of time and effort, you&#039;ll understand how to use it better if you have a solid understanding of how PHP works. Also, if you decide you don&#039;t like the framework, you have to start learning all over again, because each framework is different.

Another point to bear in mind is that most frameworks are quite large. The Zend Framework, for example, is 25MB. If you&#039;re planning a complex site, a framework can be very helpful; but it&#039;s often overkill for a small site. My framework of choice is Zend Framework. It&#039;s very well written, has a lot of features, and is backed by Zend, the company run by core contributors to PHP. I cover some of the main features of ZF in my book, &lt;a href=&quot;http://foundationphp.com/phpcs5/&quot; rel=&quot;nofollow&quot;&gt;Adobe Dreamweaver CS5 with PHP: Training from the Source&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Hi Frank, Glad you like the book. My advice is to learn the basics of PHP before embarking on using a framework. Although a framework can save a lot of time and effort, you&#8217;ll understand how to use it better if you have a solid understanding of how PHP works. Also, if you decide you don&#8217;t like the framework, you have to start learning all over again, because each framework is different.</p>
<p>Another point to bear in mind is that most frameworks are quite large. The Zend Framework, for example, is 25MB. If you&#8217;re planning a complex site, a framework can be very helpful; but it&#8217;s often overkill for a small site. My framework of choice is Zend Framework. It&#8217;s very well written, has a lot of features, and is backed by Zend, the company run by core contributors to PHP. I cover some of the main features of ZF in my book, <a href="http://foundationphp.com/phpcs5/" rel="nofollow">Adobe Dreamweaver CS5 with PHP: Training from the Source</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://foundationphp.com/blog/2010/01/23/new-tutorials-and-articles/comment-page-1/#comment-16906</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Sun, 06 Mar 2011 18:57:12 +0000</pubDate>
		<guid isPermaLink="false">http://foundationphp.com/blog/?p=118#comment-16906</guid>
		<description>Hi Mr. Powers,
I am going through php solutions 2nd Edition and its a great book. I look forward to creating great websites based on what you teach. My question however is about php frameworks. Many people advocate use of one framework or another. What is your view on frameworks especially for beginners, would it be better to take time to learn the php language then migrate to frameworks later on or can I use a framework while learning php? Any insights would be highly appreciated.

Thanks</description>
		<content:encoded><![CDATA[<p>Hi Mr. Powers,<br />
I am going through php solutions 2nd Edition and its a great book. I look forward to creating great websites based on what you teach. My question however is about php frameworks. Many people advocate use of one framework or another. What is your view on frameworks especially for beginners, would it be better to take time to learn the php language then migrate to frameworks later on or can I use a framework while learning php? Any insights would be highly appreciated.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Powers</title>
		<link>http://foundationphp.com/blog/2010/01/23/new-tutorials-and-articles/comment-page-1/#comment-16813</link>
		<dc:creator>David Powers</dc:creator>
		<pubDate>Wed, 05 Jan 2011 12:01:40 +0000</pubDate>
		<guid isPermaLink="false">http://foundationphp.com/blog/?p=118#comment-16813</guid>
		<description>The file is called download.php, and it was added to the ch07 folder after another reader alerted me to the problem. Download the zip file again from friends of ED. It sounds as though you downloaded it before the file was added. There&#039;s an error in the code on page 211. See http://foundationphp.com/phpsolutions/errata_2e.php.</description>
		<content:encoded><![CDATA[<p>The file is called download.php, and it was added to the ch07 folder after another reader alerted me to the problem. Download the zip file again from friends of ED. It sounds as though you downloaded it before the file was added. There&#8217;s an error in the code on page 211. See <a href="http://foundationphp.com/phpsolutions/errata_2e.php" rel="nofollow">http://foundationphp.com/phpsolutions/errata_2e.php</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Russ</title>
		<link>http://foundationphp.com/blog/2010/01/23/new-tutorials-and-articles/comment-page-1/#comment-16812</link>
		<dc:creator>Russ</dc:creator>
		<pubDate>Wed, 05 Jan 2011 03:55:55 +0000</pubDate>
		<guid isPermaLink="false">http://foundationphp.com/blog/?p=118#comment-16812</guid>
		<description>On page 212 of PHP Solutions, 2/e, section 3, you state that getdownloads.php can be found in the Chapter 7 code. I don&#039;t see it there. Would you mind adding it to the downloads at Friends of ED so I can get a copy?
Thanks</description>
		<content:encoded><![CDATA[<p>On page 212 of PHP Solutions, 2/e, section 3, you state that getdownloads.php can be found in the Chapter 7 code. I don&#8217;t see it there. Would you mind adding it to the downloads at Friends of ED so I can get a copy?<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Powers</title>
		<link>http://foundationphp.com/blog/2010/01/23/new-tutorials-and-articles/comment-page-1/#comment-16565</link>
		<dc:creator>David Powers</dc:creator>
		<pubDate>Wed, 11 Aug 2010 08:04:24 +0000</pubDate>
		<guid isPermaLink="false">http://foundationphp.com/blog/?p=118#comment-16565</guid>
		<description>Stephanie, The Dreamweaver-specific part of that script is the use of GetSQLValueString(), which checks that data type (&quot;int&quot;, &quot;text&quot;, etc) and passes the data to mysql_real_escape_string(). Sorry, but I don&#039;t have time at the moment to refactor the script. If you have a reasonable understanding of PHP, it shouldn&#039;t be too difficult to adapt.</description>
		<content:encoded><![CDATA[<p>Stephanie, The Dreamweaver-specific part of that script is the use of GetSQLValueString(), which checks that data type (&#8220;int&#8221;, &#8220;text&#8221;, etc) and passes the data to mysql_real_escape_string(). Sorry, but I don&#8217;t have time at the moment to refactor the script. If you have a reasonable understanding of PHP, it shouldn&#8217;t be too difficult to adapt.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stephanie</title>
		<link>http://foundationphp.com/blog/2010/01/23/new-tutorials-and-articles/comment-page-1/#comment-16564</link>
		<dc:creator>stephanie</dc:creator>
		<pubDate>Tue, 10 Aug 2010 22:42:37 +0000</pubDate>
		<guid isPermaLink="false">http://foundationphp.com/blog/?p=118#comment-16564</guid>
		<description>http://cookbooks.adobe.com/post_Create_search_query_with_optional_fields-16245.html

Hello Mr. Powers, 

 is there any place/book where you have the above information on searching a database with optional html input without using dreamweaver?  Only php, mysql, and html?  Thanks

Stephanie</description>
		<content:encoded><![CDATA[<p><a href="http://cookbooks.adobe.com/post_Create_search_query_with_optional_fields-16245.html" rel="nofollow">http://cookbooks.adobe.com/post_Create_search_query_with_optional_fields-16245.html</a></p>
<p>Hello Mr. Powers, </p>
<p> is there any place/book where you have the above information on searching a database with optional html input without using dreamweaver?  Only php, mysql, and html?  Thanks</p>
<p>Stephanie</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris R</title>
		<link>http://foundationphp.com/blog/2010/01/23/new-tutorials-and-articles/comment-page-1/#comment-16363</link>
		<dc:creator>Chris R</dc:creator>
		<pubDate>Fri, 30 Apr 2010 15:46:21 +0000</pubDate>
		<guid isPermaLink="false">http://foundationphp.com/blog/?p=118#comment-16363</guid>
		<description>David,

Sorry to take time from your new book. I suspect it must be the one I pre-ordered at Amazon on Dreamweaver CS5. I never look forward to the end of summer, but this year I am looking forward to August 20th.

I&#039;m building a page based on the &quot;Upload image to website&quot; recipe. Everything works great unless I try to add a duplicate image. Instead of getting the expected &quot;A file of the same name already exists&quot;, the page throws the error: &quot;Undefined variable: success in C:\vhost\filepath\upload.php on line 29&quot;. 

Line 29 is the first line of the following section:

 &lt;code&gt;       
if ($success) {
          $result = &quot;$file uploaded successfully.&quot;;
        } else {
          $result = &quot;Error uploading $file. Please try again.&quot;;
        }
   &lt;/code&gt;

Success is first mentioned on line 23 and the entire section is:
&lt;code&gt;
 $success =
move_uploaded_file($_FILES[&#039;image&#039;][&#039;tmp_name&#039;], UPLOAD_DIR .
$file);
        } else {
          $result = &#039;A file of the same name already exists.&#039;;
        }
        if ($success) {
          $result = &quot;$file uploaded successfully.&quot;;
        } else {
          $result = &quot;Error uploading $file. Please try again.&quot;;
        } 
&lt;/code&gt;

So far I&#039;ve just copy and pasted the code onto a standard blank Dreamweaver PHP page and made the changes needed for my upload directory and filesize. I haven&#039;t added any other HTML or CSS yet. Is there something else I need to change or is there a bug in the code?

Thanks,
Chris</description>
		<content:encoded><![CDATA[<p>David,</p>
<p>Sorry to take time from your new book. I suspect it must be the one I pre-ordered at Amazon on Dreamweaver CS5. I never look forward to the end of summer, but this year I am looking forward to August 20th.</p>
<p>I&#8217;m building a page based on the &#8220;Upload image to website&#8221; recipe. Everything works great unless I try to add a duplicate image. Instead of getting the expected &#8220;A file of the same name already exists&#8221;, the page throws the error: &#8220;Undefined variable: success in C:\vhost\filepath\upload.php on line 29&#8243;. </p>
<p>Line 29 is the first line of the following section:</p>
<p> <code><br />
if ($success) {<br />
          $result = "$file uploaded successfully.";<br />
        } else {<br />
          $result = "Error uploading $file. Please try again.";<br />
        }<br />
   </code></p>
<p>Success is first mentioned on line 23 and the entire section is:<br />
<code><br />
 $success =<br />
move_uploaded_file($_FILES['image']['tmp_name'], UPLOAD_DIR .<br />
$file);<br />
        } else {<br />
          $result = 'A file of the same name already exists.';<br />
        }<br />
        if ($success) {<br />
          $result = "$file uploaded successfully.";<br />
        } else {<br />
          $result = "Error uploading $file. Please try again.";<br />
        }<br />
</code></p>
<p>So far I&#8217;ve just copy and pasted the code onto a standard blank Dreamweaver PHP page and made the changes needed for my upload directory and filesize. I haven&#8217;t added any other HTML or CSS yet. Is there something else I need to change or is there a bug in the code?</p>
<p>Thanks,<br />
Chris</p>
]]></content:encoded>
	</item>
</channel>
</rss>

