<?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 for Joshua Lückers</title>
	<atom:link href="http://joshualuckers.nl/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://joshualuckers.nl</link>
	<description></description>
	<lastBuildDate>Fri, 03 Feb 2012 12:48:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on PHP: &#8220;Increment&#8221; alphabet characters by ajit</title>
		<link>http://joshualuckers.nl/2010/03/02/php-increment-alphabet-characters/comment-page-1/#comment-8932</link>
		<dc:creator>ajit</dc:creator>
		<pubDate>Fri, 03 Feb 2012 12:48:29 +0000</pubDate>
		<guid isPermaLink="false">http://joshualuckers.nl/?p=371#comment-8932</guid>
		<description>simple but not of use</description>
		<content:encoded><![CDATA[<p>simple but not of use</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Regular expression to match raw IRC messages by Joshua</title>
		<link>http://joshualuckers.nl/2010/01/10/regular-expression-to-match-raw-irc-messages/comment-page-1/#comment-8520</link>
		<dc:creator>Joshua</dc:creator>
		<pubDate>Sun, 15 Jan 2012 14:16:27 +0000</pubDate>
		<guid isPermaLink="false">http://joshualuckers.nl/?p=249#comment-8520</guid>
		<description>It has been a while since I had to use this regex expression so it might need improvement.</description>
		<content:encoded><![CDATA[<p>It has been a while since I had to use this regex expression so it might need improvement.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Regular expression to match raw IRC messages by Gold Monster</title>
		<link>http://joshualuckers.nl/2010/01/10/regular-expression-to-match-raw-irc-messages/comment-page-1/#comment-8519</link>
		<dc:creator>Gold Monster</dc:creator>
		<pubDate>Sun, 15 Jan 2012 14:10:18 +0000</pubDate>
		<guid isPermaLink="false">http://joshualuckers.nl/?p=249#comment-8519</guid>
		<description>Hmm, it seems the regex expression doesn&#039;t seem to parse JOIN messages correctly.

Group(3) would be null.</description>
		<content:encoded><![CDATA[<p>Hmm, it seems the regex expression doesn&#8217;t seem to parse JOIN messages correctly.</p>
<p>Group(3) would be null.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP: &#8220;Increment&#8221; alphabet characters by Andy Enty</title>
		<link>http://joshualuckers.nl/2010/03/02/php-increment-alphabet-characters/comment-page-1/#comment-6541</link>
		<dc:creator>Andy Enty</dc:creator>
		<pubDate>Wed, 05 Oct 2011 14:53:51 +0000</pubDate>
		<guid isPermaLink="false">http://joshualuckers.nl/?p=371#comment-6541</guid>
		<description>Have renamed the copy() function as this wasn&#039;t allowed, and have removed the mysql_close($con);  as this wasn&#039;t required.
Have also added an echo &quot;done&quot;; to check the page is working, but the actual script isn&#039;t doing anything. Although I get no errors ??</description>
		<content:encoded><![CDATA[<p>Have renamed the copy() function as this wasn&#8217;t allowed, and have removed the mysql_close($con);  as this wasn&#8217;t required.<br />
Have also added an echo &#8220;done&#8221;; to check the page is working, but the actual script isn&#8217;t doing anything. Although I get no errors ??</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP: &#8220;Increment&#8221; alphabet characters by Andy Enty</title>
		<link>http://joshualuckers.nl/2010/03/02/php-increment-alphabet-characters/comment-page-1/#comment-6540</link>
		<dc:creator>Andy Enty</dc:creator>
		<pubDate>Wed, 05 Oct 2011 14:12:21 +0000</pubDate>
		<guid isPermaLink="false">http://joshualuckers.nl/?p=371#comment-6540</guid>
		<description>OPEN CONNECTION

 include (&quot;connect.php&quot;); 
$id = $_GET[&#039;id&#039;]; 
$qP = &quot;SELECT * FROM source_table WHERE id = &#039;$id&#039;  &quot;;  

function find() 
{ 
$findit = mysql_query(&quot;SELECT * FROM source_table WHERE id=&#039;id&#039;&quot;); 
} 
function copy() 
{ 
$copyit = mysql_query(&quot;CREATE temp_table SELECT * FROM source_table WHERE id=&#039;$id&#039;&quot;); 
} 
function alter() 
{ 
$alterit = mysql_query(&quot;ALTER TABLE temp_table DROP COLUMN id&quot;); 
} 
function increment() 
{ 
$revision++; 
$incrementit = mysql_query(&quot;UPDATE temp_table.revision SET revision=&#039;$revision&#039;&quot;); 
} 
function insert() 
{ 
$insertit = mysql_query(&quot;INSERT INTO source_table SELECT null, * FROM temp_table&quot;); 
} 
function drop()
{
$dropit = mysql_query(&quot;DROP temp_table&quot;); 
}

mysql_close($con); 

CLOSE CONNECTION</description>
		<content:encoded><![CDATA[<p>OPEN CONNECTION</p>
<p> include (&#8220;connect.php&#8221;);<br />
$id = $_GET['id'];<br />
$qP = &#8220;SELECT * FROM source_table WHERE id = &#8216;$id&#8217;  &#8220;;  </p>
<p>function find()<br />
{<br />
$findit = mysql_query(&#8220;SELECT * FROM source_table WHERE id=&#8217;id&#8217;&#8221;);<br />
}<br />
function copy()<br />
{<br />
$copyit = mysql_query(&#8220;CREATE temp_table SELECT * FROM source_table WHERE id=&#8217;$id&#8217;&#8221;);<br />
}<br />
function alter()<br />
{<br />
$alterit = mysql_query(&#8220;ALTER TABLE temp_table DROP COLUMN id&#8221;);<br />
}<br />
function increment()<br />
{<br />
$revision++;<br />
$incrementit = mysql_query(&#8220;UPDATE temp_table.revision SET revision=&#8217;$revision&#8217;&#8221;);<br />
}<br />
function insert()<br />
{<br />
$insertit = mysql_query(&#8220;INSERT INTO source_table SELECT null, * FROM temp_table&#8221;);<br />
}<br />
function drop()<br />
{<br />
$dropit = mysql_query(&#8220;DROP temp_table&#8221;);<br />
}</p>
<p>mysql_close($con); </p>
<p>CLOSE CONNECTION</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP: &#8220;Increment&#8221; alphabet characters by Andy Enty</title>
		<link>http://joshualuckers.nl/2010/03/02/php-increment-alphabet-characters/comment-page-1/#comment-6539</link>
		<dc:creator>Andy Enty</dc:creator>
		<pubDate>Wed, 05 Oct 2011 14:11:11 +0000</pubDate>
		<guid isPermaLink="false">http://joshualuckers.nl/?p=371#comment-6539</guid>
		<description>Not sure if i can use so many stacked functions to do this, but have tried the following code, by using thispage.php?id=1 and tested it, but its still not working.

  

Think i&#039;m on the right track, with creating a temp_table and doing the work there, but its not working.</description>
		<content:encoded><![CDATA[<p>Not sure if i can use so many stacked functions to do this, but have tried the following code, by using thispage.php?id=1 and tested it, but its still not working.</p>
<p>Think i&#8217;m on the right track, with creating a temp_table and doing the work there, but its not working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP: &#8220;Increment&#8221; alphabet characters by Andy Enty</title>
		<link>http://joshualuckers.nl/2010/03/02/php-increment-alphabet-characters/comment-page-1/#comment-6538</link>
		<dc:creator>Andy Enty</dc:creator>
		<pubDate>Wed, 05 Oct 2011 13:03:49 +0000</pubDate>
		<guid isPermaLink="false">http://joshualuckers.nl/?p=371#comment-6538</guid>
		<description>Think I may be onto something with the following link:

http://stackoverflow.com/questions/1632680/duplicate-a-record-in-mysql

Will let you know.

Thanks</description>
		<content:encoded><![CDATA[<p>Think I may be onto something with the following link:</p>
<p><a href="http://stackoverflow.com/questions/1632680/duplicate-a-record-in-mysql" rel="nofollow">http://stackoverflow.com/questions/1632680/duplicate-a-record-in-mysql</a></p>
<p>Will let you know.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP: &#8220;Increment&#8221; alphabet characters by Andy Enty</title>
		<link>http://joshualuckers.nl/2010/03/02/php-increment-alphabet-characters/comment-page-1/#comment-6537</link>
		<dc:creator>Andy Enty</dc:creator>
		<pubDate>Wed, 05 Oct 2011 12:33:41 +0000</pubDate>
		<guid isPermaLink="false">http://joshualuckers.nl/?p=371#comment-6537</guid>
		<description>Thanks Joshua

Unfortunately, I don&#039;t need to create any new tables, I want to add the data I already have, to the database again, but changing a small number of variables (eg the revision level afrom A to B). Have been using a similar script as that found on your link, but my trouble comes in adding the data to the same table.

-------------------------------------------------------
&#124;    ID         &#124;        Part Number       &#124;   Revision   &#124;
-------------------------------------------------------
&#124;    1          &#124;     123456                 &#124;        A          &#124;
&#124;    2          &#124;      456789                &#124;        A          &#124;
-------------------------------------------------------

What I need, is a way to auto increment the part number to rev B, create a new ID, in this case 3, but keep the part number the same.  And add the whole lot, back into the tablea as follows.

-------------------------------------------------------
&#124;    ID         &#124;        Part Number       &#124;   Revision   &#124;
-------------------------------------------------------
&#124;    1          &#124;     123456                 &#124;        A          &#124;
&#124;    2          &#124;      456789                &#124;        A          &#124;
&#124;    3          &#124;      456789                &#124;        B          &#124;
-------------------------------------------------------

From what I know of PHP, the following script should work, but when you try to initiate it, I get nothing back but errors.  Assume I have just three columns, ID, Part Number, and Revision, the following should work.

INSERT INTO tablea (partnumber, revision) SELECT * FROM tablea WHERE id=&#039;id&#039;

Any ideas ?</description>
		<content:encoded><![CDATA[<p>Thanks Joshua</p>
<p>Unfortunately, I don&#8217;t need to create any new tables, I want to add the data I already have, to the database again, but changing a small number of variables (eg the revision level afrom A to B). Have been using a similar script as that found on your link, but my trouble comes in adding the data to the same table.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
|    ID         |        Part Number       |   Revision   |<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
|    1          |     123456                 |        A          |<br />
|    2          |      456789                |        A          |<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>What I need, is a way to auto increment the part number to rev B, create a new ID, in this case 3, but keep the part number the same.  And add the whole lot, back into the tablea as follows.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
|    ID         |        Part Number       |   Revision   |<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
|    1          |     123456                 |        A          |<br />
|    2          |      456789                |        A          |<br />
|    3          |      456789                |        B          |<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>From what I know of PHP, the following script should work, but when you try to initiate it, I get nothing back but errors.  Assume I have just three columns, ID, Part Number, and Revision, the following should work.</p>
<p>INSERT INTO tablea (partnumber, revision) SELECT * FROM tablea WHERE id=&#8217;id&#8217;</p>
<p>Any ideas ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP: &#8220;Increment&#8221; alphabet characters by Joshua</title>
		<link>http://joshualuckers.nl/2010/03/02/php-increment-alphabet-characters/comment-page-1/#comment-6534</link>
		<dc:creator>Joshua</dc:creator>
		<pubDate>Wed, 05 Oct 2011 10:39:59 +0000</pubDate>
		<guid isPermaLink="false">http://joshualuckers.nl/?p=371#comment-6534</guid>
		<description>I think you want something like explained here: http://www.plus2net.com/sql_tutorial/sql_copy_table.php</description>
		<content:encoded><![CDATA[<p>I think you want something like explained here: <a href="http://www.plus2net.com/sql_tutorial/sql_copy_table.php" rel="nofollow">http://www.plus2net.com/sql_tutorial/sql_copy_table.php</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP: &#8220;Increment&#8221; alphabet characters by Andy Enty</title>
		<link>http://joshualuckers.nl/2010/03/02/php-increment-alphabet-characters/comment-page-1/#comment-6533</link>
		<dc:creator>Andy Enty</dc:creator>
		<pubDate>Wed, 05 Oct 2011 09:36:49 +0000</pubDate>
		<guid isPermaLink="false">http://joshualuckers.nl/?p=371#comment-6533</guid>
		<description>How would I use this in the context of a whole page ?

I&#039;ve tried to add it to an existing php script, but it isn&#039;t working.  I think the way I have it formatted is wrong, but could really use an example as all of the info I have found on this so far, only includes snippets, which are difficult to piece together for a PHP newbie like myself.

What I would like to do, is copy a row from a table, and insert most of the content into the same table, but with an incremented value as follows.  Copy Part_number 1 Revision A, Insert Into same table as Revision B.  Thats it.  It sounds easy enough, but getting it to work is becoming a pain.
I&#039;m self taught, and starting to think i&#039;m missing some fundamental PHP knowledge which most people would take for granted.

I was under the impression I&#039;d be able to use something like:

$id = $_GET[&#039;id&#039;];
$select = &quot;SELECT * FROM table WHERE id = &#039;$id&#039;  &quot;;

$revision=&quot;revision&quot;;
$revision++;

TO CREATE
PartNumber Rev A [ COPY BUTTON ]
PartNumber Rev B

Incrementing an existing row with a new revision sounds straightforward enough, but actually writing the script to allow it is proving very difficult. Does anyone have a full script, which I may be able to tinker with? The simpler the better please.

I&#039;m afraid I can&#039;t post what I have so far, as (1) its complete garbage, and (2) its for a client who values their privacy.

Any help you could provide would be greatly appreciated.</description>
		<content:encoded><![CDATA[<p>How would I use this in the context of a whole page ?</p>
<p>I&#8217;ve tried to add it to an existing php script, but it isn&#8217;t working.  I think the way I have it formatted is wrong, but could really use an example as all of the info I have found on this so far, only includes snippets, which are difficult to piece together for a PHP newbie like myself.</p>
<p>What I would like to do, is copy a row from a table, and insert most of the content into the same table, but with an incremented value as follows.  Copy Part_number 1 Revision A, Insert Into same table as Revision B.  Thats it.  It sounds easy enough, but getting it to work is becoming a pain.<br />
I&#8217;m self taught, and starting to think i&#8217;m missing some fundamental PHP knowledge which most people would take for granted.</p>
<p>I was under the impression I&#8217;d be able to use something like:</p>
<p>$id = $_GET['id'];<br />
$select = &#8220;SELECT * FROM table WHERE id = &#8216;$id&#8217;  &#8220;;</p>
<p>$revision=&#8221;revision&#8221;;<br />
$revision++;</p>
<p>TO CREATE<br />
PartNumber Rev A [ COPY BUTTON ]<br />
PartNumber Rev B</p>
<p>Incrementing an existing row with a new revision sounds straightforward enough, but actually writing the script to allow it is proving very difficult. Does anyone have a full script, which I may be able to tinker with? The simpler the better please.</p>
<p>I&#8217;m afraid I can&#8217;t post what I have so far, as (1) its complete garbage, and (2) its for a client who values their privacy.</p>
<p>Any help you could provide would be greatly appreciated.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

