<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Musings of a code slave &#187; MySQL</title>
	<atom:link href="http://foundationphp.com/blog/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://foundationphp.com/blog</link>
	<description></description>
	<lastBuildDate>Tue, 24 Apr 2012 09:46:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Using num_rows with a MySQLi prepared statement</title>
		<link>http://foundationphp.com/blog/2011/09/24/using-num_rows-with-a-mysqli-prepared-statement/</link>
		<comments>http://foundationphp.com/blog/2011/09/24/using-num_rows-with-a-mysqli-prepared-statement/#comments</comments>
		<pubDate>Sat, 24 Sep 2011 12:48:02 +0000</pubDate>
		<dc:creator>David Powers</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://foundationphp.com/blog/?p=259</guid>
		<description><![CDATA[While refactoring some code that I had written about six years ago, I was puzzled by the MySQLi num_rows property constantly returning 0, even though I knew there were matching records in the database. It turns out that the problem &#8230; <a href="http://foundationphp.com/blog/2011/09/24/using-num_rows-with-a-mysqli-prepared-statement/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>While refactoring some code that I had written about six years ago, I was puzzled by the MySQLi <code>num_rows</code> property constantly returning 0, even though I knew there were matching records in the database. It turns out that the problem was caused by using a prepared statement, but not storing the result before attempting to access <code>num_rows</code>. I hadn&#8217;t bothered to store the result because all I wanted to know was if there were any matching records. This is the code I was using:</p>
<p><code>$stmt = $db->stmt_init();<br />
$sql = 'SELECT username FROM users WHERE username = ?';<br />
$stmt->prepare($sql);<br />
$stmt->bind_param('s', $_POST['username']);<br />
$stmt->execute();<br />
$numrows = $stmt->num_rows;</code></p>
<p>The code worked without error, so it wasn&#8217;t immediately obvious why <code>$numrows</code> was always 0. So, I checked the <a href="http://docs.php.net/manual/en/mysqli-stmt.num-rows.php">PHP documentation for <code>mysqli_stmt::num_rows</code></a>. The description is rather ambiguous in that it refers only to the need to store the result when using the procedural style, but the object-oriented example makes it clear that you need to call the <code>store_result()</code> method before accessing the <code>num_rows</code> property. When I changed my code like this, I got the expected result:</p>
<p><code>$stmt = $db->stmt_init();<br />
$sql = 'SELECT username FROM users WHERE username = ?';<br />
$stmt->prepare($sql);<br />
$stmt->bind_param('s', $_POST['username']);<br />
$stmt->execute();<br />
// store result of prepared statement<br />
$stmt->store_result();<br />
$numrows = $stmt->num_rows;</code></p>
<p>At first, it seemed counterintuitive to store a result that I was going to throw away, but that&#8217;s how <code>num_rows</code> works with a MySQLi prepared statement. Thinking about it a bit more, it makes sense because if you use the MySQLi <code>query()</code> method instead of a prepared statement, you store the result in a <code>MySQLi_Result</code> object and get the number of rows from the result like this:</p>
<p><code>$sql = 'SELECT user_id, name, username FROM users';<br />
$result = $db->query($sql);<br />
$numrows = $result->num_rows;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://foundationphp.com/blog/2011/09/24/using-num_rows-with-a-mysqli-prepared-statement/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Join others learning PHP with PHP Solutions</title>
		<link>http://foundationphp.com/blog/2011/08/25/join-others-learning-php-with-php-solutions/</link>
		<comments>http://foundationphp.com/blog/2011/08/25/join-others-learning-php-with-php-solutions/#comments</comments>
		<pubDate>Thu, 25 Aug 2011 13:42:51 +0000</pubDate>
		<dc:creator>David Powers</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://foundationphp.com/blog/?p=231</guid>
		<description><![CDATA[So far, more than 90 people have signed up to join a self-study group organized by Boston PHP to learn PHP with the help of my book, PHP Solutions: Dynamic Web Design Made Easy, 2nd Edition. This is the third &#8230; <a href="http://foundationphp.com/blog/2011/08/25/join-others-learning-php-with-php-solutions/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So far, more than 90 people have signed up to join a self-study group organized by <a href="http://www.meetup.com/bostonphp/">Boston PHP</a> to learn PHP with the help of my book, <a href="/phpsolutions/"><cite>PHP Solutions: Dynamic Web Design Made Easy, 2nd Edition</cite></a>. This is the third time that Boston PHP has run this scheme known as <a href="http://www.meetup.com/bostonphp/events/28906641/">PHP Percolate</a>, which begins again <time datetime="2011-09-01">next Thursday (September 1)</time>. I understand that nearly 200 have taken part in the previous two seasons. The fact that they&#8217;re running it again—and that so many have signed up—indicates that it must be a pretty successful way of learning PHP.</p>
<p>There&#8217;s no charge to participate. The only cost is buying a copy of my book. Although I have Amazon affiliate links on my website, I encourage you to buy it through the <a href="http://astore.amazon.com/boph-20">Boston PHP Store</a>. That way, the organizers get a small commission that helps support the activities of Boston PHP.</p>
<p>The way it works is that you commit to reading one chapter of the book (there are 17) and completing the exercises each week. There&#8217;s no classroom instruction, but you can get online support through a dedicated forum for each chapter. Also, if you live in the Boston area (the one in Massachusetts, not the one in Lincolnshire or more than a dozen other places), you can get hands-on help at the PHP Percolate Coffee Club, which is usually held every Saturday morning at a Starbucks. Boston PHP also runs occasional all-day events known as <a href="http://www.meetup.com/bostonphp/events/27206091/">Developer Dorm Room</a> in Cambridge, Massachusetts, where you can get help with PHP problems or just bounce ideas about projects off each other.</p>
<p>Although PHP Percolate is based on my book, this isn&#8217;t a wacky marketing idea that has been dreamed up by me or my publisher. It&#8217;s an idea that Boston PHP came up with independently. In fact, I didn&#8217;t learn about it until quite recently. According to the President of Boston PHP, Michael Bourque, Boston PHP is the largest and most active PHP tech community in the world, with more than 1,900 members. It has a focus on education and adoption of open source technology like PHP. Last year, they were looking for the best possible book to learn PHP, and mine was the one they chose. Naturally, I&#8217;m delighted, and I have agreed to help in whatever way I can.</p>
<p>Unfortunately, there&#8217;s a small matter of the Atlantic Ocean lying between me and Boston, so I won&#8217;t be able to attend the PHP Percolate Coffee Club or Developer Dorm Room in person. But that&#8217;s one of the joys of the internet. You don&#8217;t need to be there in person to share ideas and cooperate with others. From what I understand, PHP Percolate has also attracted people from other countries to join in. A book and an internet connection is all you need.</p>
<p>Committing to working through 17 chapters in as many weeks is a lot to ask. Work, family, and other obligations get in the way. So, not everybody manages to last the whole course. But since there&#8217;s no cost (apart from the book), there&#8217;s little to lose. In fact, I see that some of the people who dropped out part of the way through season 2 have signed up again for season 3. As one of them said, &#8220;It&#8217;s fun!&#8221;</p>
<p>So, if you&#8217;re looking for a little bit of moral support in your efforts to learn PHP, check out <a href="http://www.meetup.com/bostonphp/events/28906641/">PHP Percolate Season 3</a> with Boston PHP.</p>
]]></content:encoded>
			<wfw:commentRss>http://foundationphp.com/blog/2011/08/25/join-others-learning-php-with-php-solutions/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>PHP Solutions second edition now available</title>
		<link>http://foundationphp.com/blog/2010/11/27/php-solutions-second-edition-now-available/</link>
		<comments>http://foundationphp.com/blog/2010/11/27/php-solutions-second-edition-now-available/#comments</comments>
		<pubDate>Sat, 27 Nov 2010 17:46:06 +0000</pubDate>
		<dc:creator>David Powers</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[phpMyAdmin]]></category>

		<guid isPermaLink="false">http://foundationphp.com/blog/?p=166</guid>
		<description><![CDATA[It&#8217;s almost exactly four years since PHP Solutions: Dynamic Web Design Made Easy was first published. The book has proved extremely popular, but a lot has happened in PHP since it was first published. Support for PHP 4 was abandoned &#8230; <a href="http://foundationphp.com/blog/2010/11/27/php-solutions-second-edition-now-available/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s almost exactly four years since <cite>PHP Solutions: Dynamic Web Design Made Easy</cite> was first published. The book has proved extremely popular, but a lot has happened in PHP since it was first published. Support for PHP 4 was abandoned in August 2008, and major improvements were made to PHP in versions 5.2 and 5.3. So, it was time to dust off the code, and bring it up to date.</p>
<p>I spent most of the summer going through every chapter and all the code line by line, correcting errors and making the code more efficient. The result is a major rewrite, <a href="/phpsolutions/"><cite>PHP Solutions: Dynamic Web Design Made Easy, Second Edition</cite></a>, which is now in stock at Amazon in the United States, and should be available elsewhere soon. It&#8217;s also available in electronic form as a Kindle version, or as a PDF from <a href="http://www.friendsofed.com/book.html?isbn=9781430232490">the friends of ED website</a>.</p>
<p>There&#8217;s a <a href="/phpsolutions/">detailed description of what the book covers</a> and how it differs from the first edition elsewhere on this site. If you have recently bought the first edition, don&#8217;t worry. There&#8217;s nothing actually wrong with the original code, but do make sure you check the <a href="/phpsolutions/updates.php">updates on my site</a>, as well as the <a href="http://www.friendsofed.com/errata.html?isbn=1590597311">corrections on the friends of ED site</a>.</p>
<p>When downloading the accompanying files from friends of ED, make sure you get the files for the correct edition:</p>
<ul>
<li><a href="http://www.friendsofed.com/download.html?isbn=1430232498">Download files for PHP Solutions, Second Edition</a></li>
<li><a href="http://www.friendsofed.com/download.html?isbn=1590597311">Download files for PHP Solutions, First Edition</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://foundationphp.com/blog/2010/11/27/php-solutions-second-edition-now-available/feed/</wfw:commentRss>
		<slash:comments>57</slash:comments>
		</item>
		<item>
		<title>DW CS5 with PHP book on Rough Cuts</title>
		<link>http://foundationphp.com/blog/2010/05/03/dw-cs5-with-php-book-on-rough-cuts/</link>
		<comments>http://foundationphp.com/blog/2010/05/03/dw-cs5-with-php-book-on-rough-cuts/#comments</comments>
		<pubDate>Mon, 03 May 2010 15:01:23 +0000</pubDate>
		<dc:creator>David Powers</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[Dreamweaver]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://foundationphp.com/blog/?p=138</guid>
		<description><![CDATA[If you would like to get early access to my next book &#8220;Adobe Dreamweaver CS5 with PHP: Training from the Source&#8221;, the first six chapters (of 12) are now available as Rough Cuts in Creative Edge and Safari Books Online. &#8230; <a href="http://foundationphp.com/blog/2010/05/03/dw-cs5-with-php-book-on-rough-cuts/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you would like to get early access to my next book <a title="See a detailed description of the book" href="/phpcs5/">&#8220;Adobe Dreamweaver CS5 with PHP:  Training from the Source&#8221;</a>, the first six chapters (of 12) are now  available as Rough Cuts in <a href="http://www.creativeedge.com/9780132117906">Creative Edge</a> and <a href="http://my.safaribooksonline.com/9780132117906">Safari  Books Online</a>.</p>
<p>If you have a Safari Library subscription, you can  view the chapters free of charge, and see new ones as they&#8217;re added.  Without a subscription, you can get access to the book in PDF format for  $34.99, including the finished ebook version when the book is complete.  You can also opt for the Rough Cuts PDF and Print bundle for $67.48.  The print version is expected to be released in early August.</p>
<p>The chapters currently available are Lessons 1-3 and 4-7, covering the following subjects:</p>
<ul>
<li>An in-depth look at all the PHP features in Dreamweaver CS5</li>
<li>Instructions for setting up a local PHP development environment</li>
<li>A quick PHP crash course (or refresher)</li>
<li>Creating your own database in MySQL</li>
<li>Using Dreamweaver server behaviors for automatic code generation</li>
<li>Building a robust user registration system with Zend_Validate and Zend_Db</li>
</ul>
<p>Chapters still to come concentrate heavily on using selected modules of the Zend Framework for sending email, uploading files, and building a content management system. (To avoid any misunderstanding, the book does not use the MVC design pattern—it follows what the ZF documentation calls &#8220;use at will&#8221; design, making use of individual components.)</p>
]]></content:encoded>
			<wfw:commentRss>http://foundationphp.com/blog/2010/05/03/dw-cs5-with-php-book-on-rough-cuts/feed/</wfw:commentRss>
		<slash:comments>35</slash:comments>
		</item>
		<item>
		<title>New tutorials and articles</title>
		<link>http://foundationphp.com/blog/2010/01/23/new-tutorials-and-articles/</link>
		<comments>http://foundationphp.com/blog/2010/01/23/new-tutorials-and-articles/#comments</comments>
		<pubDate>Sat, 23 Jan 2010 18:34:46 +0000</pubDate>
		<dc:creator>David Powers</dc:creator>
				<category><![CDATA[AJAX/JavaScript]]></category>
		<category><![CDATA[Dreamweaver]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://foundationphp.com/blog/?p=118</guid>
		<description><![CDATA[I have just added to my site a tutorial on converting a Spry Menu Bar into a server-side include. I have also been busy adding a bunch of brief articles to the Dreamweaver Cookbook on the Adobe site. I answer &#8230; <a href="http://foundationphp.com/blog/2010/01/23/new-tutorials-and-articles/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have just added to my site a tutorial on <a href="/tutorials/sprymenu/ssi.php">converting a Spry Menu Bar into a server-side include</a>. I have also been busy adding a bunch of brief articles to the <a href="http://cookbooks.adobe.com/dreamweaver">Dreamweaver Cookbook on the Adobe site</a>.</p>
<p>I answer a lot of questions in the Dreamweaver forums, and realized that a lot of the solutions I was coming up with for people weren&#8217;t easy to find after a couple of days. So, rather than letting them disappear into cyberoblivion, I decided to add any of general interest to the cookbook when I had a few spare moments. The Dreamweaver Cookbook is intended for code samples, and doesn&#8217;t have the capability of including screenshots, so I&#8217;ll continue posting longer tutorials on my own site. But I hope you&#8217;ll find my contributions to the cookbook useful.</p>
<p>Here are direct links to some of the articles I have added to the Dreamweaver Cookbook:</p>
<ul>
<li><a href="http://cookbooks.adobe.com/post_Create_nested_lists_from_a_recordset__PHP_-16720.html">Create nested lists from a recordset</a></li>
<li><a href="http://cookbooks.adobe.com/post_Set_a_time_limit_on_a_login_session__PHP_-16701.html">Set a time limit on a login session</a></li>
<li><a href="http://cookbooks.adobe.com/post_Registration_system_that_requires_the_user_to_vali-16646.html">Registration system that requires the user to validate the email address</a> (in two parts)</li>
<li><a href="http://cookbooks.adobe.com/post_Alternate_colors_for_table_rows-16650.html">Alternate colours for table rows</a> (using PHP, Spry, or jQuery)</li>
<li><a href="http://cookbooks.adobe.com/post_Upload_image_to_website__PHP_-16389.html">Upload image to website</a></li>
<li><a href="http://cookbooks.adobe.com/post_Format_dates_for_entry_into_MySQL_using_PHP-16644.html">Format date for insertion into MySQL</a></li>
<li><a href="http://cookbooks.adobe.com/post_Format_dates_stored_in_MySQL-16641.html">Formatting dates stored in MySQL</a></li>
</ul>
<p>The Dreamweaver Cookbook is open to anyone to either request recipes or contribute recipes of their own. It could turn into a very useful resource if people start using it regularly. Check it out!</p>
]]></content:encoded>
			<wfw:commentRss>http://foundationphp.com/blog/2010/01/23/new-tutorials-and-articles/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>New setup procedure for phpMyAdmin 3.1.x</title>
		<link>http://foundationphp.com/blog/2008/12/07/new-setup-procedure-for-phpmyadmin-31x/</link>
		<comments>http://foundationphp.com/blog/2008/12/07/new-setup-procedure-for-phpmyadmin-31x/#comments</comments>
		<pubDate>Sun, 07 Dec 2008 15:52:07 +0000</pubDate>
		<dc:creator>David Powers</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[Dreamweaver]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[phpMyAdmin]]></category>

		<guid isPermaLink="false">http://foundationphp.com/blog/?p=64</guid>
		<description><![CDATA[I seem to be jinxed with the way phpMyAdmin &#8220;celebrates&#8221; the publication of one of my books by changing its setup process. It happened twice with Foundation PHP for Dreamweaver 8. I updated the instructions between the first and second &#8230; <a href="http://foundationphp.com/blog/2008/12/07/new-setup-procedure-for-phpmyadmin-31x/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I seem to be jinxed with the way <a title="Go to the phpMyAdmin site" href="http://phpmyadmin.net/">phpMyAdmin</a> &#8220;celebrates&#8221; the publication of one of my books by changing its setup process. It happened twice with <a title="Go to the book's description on my site" href="/dreamweaver8/"><em>Foundation PHP for Dreamweaver 8</em></a>. I updated the instructions between the first and second printings, but was caught out by a second change. Now it&#8217;s happened with <a title="Go to the book's description on my site" href="/dwcs4/"><em>The Essential Guide to Dreamweaver CS4 with CSS, Ajax, and PHP</em></a>. The book was published on 1 December, and on the very same day phpMyAdmin 3.1.0 was released, changing the setup procedure yet again.</p>
<p>I&#8217;ll create a full tutorial on the revised procedure when I get time, but you can find a summary of the main differences on the <a title="Go to the book's updates page" href="/dwcs4/updates.php">updates page for <em>The Essential Guide to Dreamweaver CS4</em></a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://foundationphp.com/blog/2008/12/07/new-setup-procedure-for-phpmyadmin-31x/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Problem with PHP 5.2.7</title>
		<link>http://foundationphp.com/blog/2008/12/07/problem-with-php-527/</link>
		<comments>http://foundationphp.com/blog/2008/12/07/problem-with-php-527/#comments</comments>
		<pubDate>Sun, 07 Dec 2008 15:35:32 +0000</pubDate>
		<dc:creator>David Powers</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://foundationphp.com/blog/?p=59</guid>
		<description><![CDATA[PHP 5.2.7, which was released last Thursday (4 December), has a bug that prevents &#8220;magic quotes&#8221; from working. If you rely on magic quotes, do not install PHP 5.2.7. Either revert to PHP 5.2.6 or wait until a fix is &#8230; <a href="http://foundationphp.com/blog/2008/12/07/problem-with-php-527/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>PHP 5.2.7, which was released last Thursday (4 December), has a bug that prevents &#8220;magic quotes&#8221; from working. If you rely on magic quotes, do <strong>not</strong> install PHP 5.2.7. <del datetime="2008-12-16T19:08:12+00:00">Either revert to PHP 5.2.6 or wait until a fix is released.</del> The bug has been fixed in <ins datetime="2008-12-16T19:08:12+00:00">PHP 5.2.8. </ins> <del datetime="2008-12-16T19:08:12+00:00">the &#8220;snapshot&#8221; version of PHP, which can be obtained at <a href="http://snaps.php.net/">http://snaps.php.net/</a></del></p>
<p>If you turn magic quotes off in PHP—which you should—you won&#8217;t be affected by this bug. It serves as a reminder that magic quotes are due to be removed in PHP 6. Magic quotes were originally introduced to make life &#8220;easier&#8221; for inexperienced developers by automatically inserting a backslash in front of single and double quotes in user input to prevent problems with database insertion. However, they have proved more trouble than they&#8217;re worth. Instead of magic quotes, you should use dedicated functions, such as <a title="See description of this function in the PHP online manual" href="http://docs.php.net/manual/en/function.mysql-real-escape-string.php">mysql_real_escape_string()</a>, or prepared statements with <a title="Go to the PHP online documentation" href="http://docs.php.net/manual/en/intro.mysqli.php">MySQLi</a> or <a title="Go to the PHP online documentation" href="http://docs.php.net/manual/en/book.pdo.php">PDO</a> to handle quotes and other special characters and protect your database from SQL injection attacks.</p>
]]></content:encoded>
			<wfw:commentRss>http://foundationphp.com/blog/2008/12/07/problem-with-php-527/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Changes in phpMyAdmin 3.0</title>
		<link>http://foundationphp.com/blog/2008/10/05/changes-in-phpmyadmin-30/</link>
		<comments>http://foundationphp.com/blog/2008/10/05/changes-in-phpmyadmin-30/#comments</comments>
		<pubDate>Sun, 05 Oct 2008 09:20:29 +0000</pubDate>
		<dc:creator>David Powers</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[phpMyAdmin]]></category>

		<guid isPermaLink="false">http://foundationphp.com/blog/?p=56</guid>
		<description><![CDATA[phpMyAdmin, the popular front-end to the MySQL database, has issued the first stable release of the version 3.0 series. The basic functionality remains unchanged, but there are some important differences. To begin with, phpMyAdmin 3.0 requires a minimum of PHP &#8230; <a href="http://foundationphp.com/blog/2008/10/05/changes-in-phpmyadmin-30/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>phpMyAdmin, the popular front-end to the MySQL database, has issued the first stable release of the version 3.0 series. The basic functionality remains unchanged, but there are some important differences. To begin with, phpMyAdmin 3.0 requires a minimum of PHP 5.2 and MySQL 5.0. Don&#8217;t try installing it with earlier versions of PHP or MySQL—it won&#8217;t work.</p>
<p>The main changes affecting the phpMyAdmin user interface concern the creation of new tables. They can be summarized as follows:</p>
<ul>
<li>When setting a default value for a column (field), you need to select a value from the drop-down menu. The options are <code>None</code>, <code>As defined</code>, <code>NULL</code>, or <code>CURRENT_TIMESTAMP</code>. If you select <code>As defined</code>, type the default value you want the column to have in the field immediately below.</li>
<li>As before, phpMyAdmin treats all columns as <code>NOT NULL</code>. In other words, all columns require a value to be inserted in them. To make a column optional, select the <code>Null</code> checkbox. In the version 2 series, this was a drop-down menu.</li>
<li>To set an index on a column, choose the appropriate index type from the <code>Index</code> drop-down menu. The choices are <code>PRIMARY</code>, <code>UNIQUE</code>, <code>INDEX</code>, and <code>FULLTEXT</code>. In the version 2 series, these were represented by radio buttons.</li>
<li>To create an auto incrementing column (normally used in conjunction with a primary key), select the <code>A_I</code> checkbox. In the version 2 series, this was a drop-down menu called <code>Extra</code>.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://foundationphp.com/blog/2008/10/05/changes-in-phpmyadmin-30/feed/</wfw:commentRss>
		<slash:comments>44</slash:comments>
		</item>
		<item>
		<title>Adobe releases PHP hotfix for Dreamweaver 8.0.2</title>
		<link>http://foundationphp.com/blog/2006/08/28/adobe-releases-php-hotfix-for-dreamweaver-802/</link>
		<comments>http://foundationphp.com/blog/2006/08/28/adobe-releases-php-hotfix-for-dreamweaver-802/#comments</comments>
		<pubDate>Mon, 28 Aug 2006 22:58:12 +0000</pubDate>
		<dc:creator>David Powers</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[Dreamweaver]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://foundationphp.com/blog/2006/08/28/adobe-releases-php-hotfix-for-dreamweaver-802/</guid>
		<description><![CDATA[At long last, Adobe has released a hotfix for a number of serious issues affecting the PHP MySQL server model in Dreamweaver 8.0.2. Unfortunately, you can&#8217;t just go to the Adobe site and download it. You need to contact Adobe &#8230; <a href="http://foundationphp.com/blog/2006/08/28/adobe-releases-php-hotfix-for-dreamweaver-802/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>At long last, Adobe has released a hotfix for a number of serious issues affecting the PHP MySQL server model in Dreamweaver 8.0.2. Unfortunately, you can&#8217;t just go to the Adobe site and download it. You need to contact Adobe support and ask for it. Officially, the reason is because Adobe wants to know how many people have been affected by the problems that it solves, and it wants to check that the solution &#8220;works for them&#8221;.</p>
<p>Anybody using my book <em><a href="http://foundationphp.com/dreamweaver8/">Foundation PHP for Dreamweaver 8</a></em> should get the hotfix pronto, as it solves two problems affecting Chapters 9 and 12:</p>
<ul>
<li>Without the hotfix, Dreamweaver 8.0.2 strips CONCAT() out of SQL queries.</li>
<li>Changes in the way PHP 5.1.4 and above handles XML resulted in the XSL Transformatiion server behavior reporting incorrectly that the source was not a valid XML document.</li>
</ul>
<p>The hotfix also solves a couple of other important problems, so if you have Dreamweaver 8.0.2 or have been putting off updating to 8.0.2, I strongly urge you to get in touch with Adobe support and get the hotfix. You can find full details in <a href="http://www.adobe.com/go/b6c2ae2a">this technote on the Adobe site</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://foundationphp.com/blog/2006/08/28/adobe-releases-php-hotfix-for-dreamweaver-802/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>DATE_FORMAT() problem was with my data, not 8.0.2 updater</title>
		<link>http://foundationphp.com/blog/2006/05/14/date_format-problem-was-with-my-data-not-802-updater/</link>
		<comments>http://foundationphp.com/blog/2006/05/14/date_format-problem-was-with-my-data-not-802-updater/#comments</comments>
		<pubDate>Sun, 14 May 2006 13:08:34 +0000</pubDate>
		<dc:creator>David Powers</dc:creator>
				<category><![CDATA[Dreamweaver]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://foundationphp.com/blog/2006/05/14/date_format-problem-was-with-my-data-not-802-updater/</guid>
		<description><![CDATA[When the Dreamweaver 8.0.2 updater came out, I originally reported that it mishandles the MySQL DATE_FORMAT() function in the Test SQL Statement panel. After further testing, and some help from Alexandru Costin of InterAKT, I&#8217;ve discovered the problem was with &#8230; <a href="http://foundationphp.com/blog/2006/05/14/date_format-problem-was-with-my-data-not-802-updater/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When the Dreamweaver 8.0.2 updater came out, I originally reported that it mishandles the MySQL DATE_FORMAT() function in the Test SQL Statement panel. After further testing, and some help from Alexandru Costin of InterAKT, I&#8217;ve discovered the problem was with the dates in a test table that I was using. Oops!</p>
<p>The dates had been entered incorrectly into the test table, so the actual values were 0000-00-00 00:00:00. No wonder that DATE_FORMAT() wasn&#8217;t able to convert them. However, the nasty problem with Dreamweaver 8.0.2 corrupting SQL queries that use CONCAT() has been confirmed by several people. Let&#8217;s hope it gets fixed soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://foundationphp.com/blog/2006/05/14/date_format-problem-was-with-my-data-not-802-updater/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

