<?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/">
	<channel>
		<title><![CDATA[[ghc]Games Forums - Webdesign]]></title>
		<link>http://forums.ghc-games.com/</link>
		<description><![CDATA[[ghc]Games Forums - http://forums.ghc-games.com]]></description>
		<pubDate>Fri, 24 Apr 2026 00:26:05 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[Need help with Dreamweaver]]></title>
			<link>http://forums.ghc-games.com/showthread.php?tid=981</link>
			<pubDate>Sun, 02 Sep 2007 12:30:53 -0700</pubDate>
			<guid isPermaLink="false">http://forums.ghc-games.com/showthread.php?tid=981</guid>
			<description><![CDATA[Hi again guys!  I used to be able to write some pretty good html code by hand.  But 10 years later, I have no idea what I\'m doing anymore.<br />
<br />
This year at school I\'m doing a near doctorate study of the construction management process of a building in New Jersey.  One of the things I must do is to maintain a pretty good looking website documenting the process and reports of mine.<br />
<br />
<br />
So I\'m working on cranking out a pretty good template to start from.<br />
<br />
Here\'s my site so far: <a href="http://www.engr.psu.edu/ae/thesis/portfolios/2008/jsw225/" target="_blank">http://www.engr.psu.edu/ae/thesis/portfo...08/jsw225/</a> .<br />
<br />
The paragraphs on the main page came with the basic template.<br />
<br />
Does anyone have any advice so far?  Or possibly some tricks to employ?<br />
<br />
<br />
Anyone who does help will get credits and thanks during my final presentation.]]></description>
			<content:encoded><![CDATA[Hi again guys!  I used to be able to write some pretty good html code by hand.  But 10 years later, I have no idea what I\'m doing anymore.<br />
<br />
This year at school I\'m doing a near doctorate study of the construction management process of a building in New Jersey.  One of the things I must do is to maintain a pretty good looking website documenting the process and reports of mine.<br />
<br />
<br />
So I\'m working on cranking out a pretty good template to start from.<br />
<br />
Here\'s my site so far: <a href="http://www.engr.psu.edu/ae/thesis/portfolios/2008/jsw225/" target="_blank">http://www.engr.psu.edu/ae/thesis/portfo...08/jsw225/</a> .<br />
<br />
The paragraphs on the main page came with the basic template.<br />
<br />
Does anyone have any advice so far?  Or possibly some tricks to employ?<br />
<br />
<br />
Anyone who does help will get credits and thanks during my final presentation.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[What?]]></title>
			<link>http://forums.ghc-games.com/showthread.php?tid=804</link>
			<pubDate>Wed, 26 Apr 2006 21:23:14 -0700</pubDate>
			<guid isPermaLink="false">http://forums.ghc-games.com/showthread.php?tid=804</guid>
			<description><![CDATA[<blockquote><cite>Quote:</cite>We are sorry but we cannot process your post. The administrator has specified you are only allowed to post once every %1&#36;s seconds.</blockquote>
<br />
That would be how many seconds?<br />
<br />
SC]]></description>
			<content:encoded><![CDATA[<blockquote><cite>Quote:</cite>We are sorry but we cannot process your post. The administrator has specified you are only allowed to post once every %1&#36;s seconds.</blockquote>
<br />
That would be how many seconds?<br />
<br />
SC]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Random Sites]]></title>
			<link>http://forums.ghc-games.com/showthread.php?tid=765</link>
			<pubDate>Fri, 09 Dec 2005 03:15:47 -0800</pubDate>
			<guid isPermaLink="false">http://forums.ghc-games.com/showthread.php?tid=765</guid>
			<description><![CDATA[Rarrrrrrrrrrrrrrrrrrrrrrrrrr some random webdesigns i\'ve done.<br />
<br />
PTG Clan v1<br />
<img src="http://www.pugsx.webdockers.com/noxious/nox_junk/PTG.jpg" border="0" alt="[Image: PTG.jpg]" /><br />
<br />
PTG Clan v2<br />
<img src="http://www.pugsx.webdockers.com/noxious/nox_junk/PTGv2.jpg" border="0" alt="[Image: PTGv2.jpg]" /><br />
<br />
Portfolio Idea v1<br />
<img src="http://www.pugsx.webdockers.com/noxious/nox_junk/Portfolio%20Test%202.jpg" border="0" alt="[Image: Portfolio%20Test%202.jpg]" /><br />
<br />
Idea v2<br />
<img src="http://www.pugsx.webdockers.com/noxious/nox_junk/Portfolio%20Test%203.jpg" border="0" alt="[Image: Portfolio%20Test%203.jpg]" /><br />
<br />
Idea v3<br />
<img src="http://www.pugsx.webdockers.com/noxious/nox_junk/Portfolio%20Test%204.jpg" border="0" alt="[Image: Portfolio%20Test%204.jpg]" />]]></description>
			<content:encoded><![CDATA[Rarrrrrrrrrrrrrrrrrrrrrrrrrr some random webdesigns i\'ve done.<br />
<br />
PTG Clan v1<br />
<img src="http://www.pugsx.webdockers.com/noxious/nox_junk/PTG.jpg" border="0" alt="[Image: PTG.jpg]" /><br />
<br />
PTG Clan v2<br />
<img src="http://www.pugsx.webdockers.com/noxious/nox_junk/PTGv2.jpg" border="0" alt="[Image: PTGv2.jpg]" /><br />
<br />
Portfolio Idea v1<br />
<img src="http://www.pugsx.webdockers.com/noxious/nox_junk/Portfolio%20Test%202.jpg" border="0" alt="[Image: Portfolio%20Test%202.jpg]" /><br />
<br />
Idea v2<br />
<img src="http://www.pugsx.webdockers.com/noxious/nox_junk/Portfolio%20Test%203.jpg" border="0" alt="[Image: Portfolio%20Test%203.jpg]" /><br />
<br />
Idea v3<br />
<img src="http://www.pugsx.webdockers.com/noxious/nox_junk/Portfolio%20Test%204.jpg" border="0" alt="[Image: Portfolio%20Test%204.jpg]" />]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Opera free]]></title>
			<link>http://forums.ghc-games.com/showthread.php?tid=620</link>
			<pubDate>Tue, 20 Sep 2005 03:01:49 -0700</pubDate>
			<guid isPermaLink="false">http://forums.ghc-games.com/showthread.php?tid=620</guid>
			<description><![CDATA[Newsflash: As of today, Norwegian browser maker Opera is free of charge, thus removing the advertising from its earlier freeware versions. Rejoice!]]></description>
			<content:encoded><![CDATA[Newsflash: As of today, Norwegian browser maker Opera is free of charge, thus removing the advertising from its earlier freeware versions. Rejoice!]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[forum question]]></title>
			<link>http://forums.ghc-games.com/showthread.php?tid=400</link>
			<pubDate>Thu, 09 Jun 2005 03:02:38 -0700</pubDate>
			<guid isPermaLink="false">http://forums.ghc-games.com/showthread.php?tid=400</guid>
			<description><![CDATA[hey<br />
<br />
I have some questions about a forum like this one. <br />
I need a forum for my mod \"all out fairy tale\" which is going to come out of it\'s slumber quite soon but I don\'t know what to take.<br />
<br />
I don\'t want to pay so I considered MyBBoard (like this one) or PHPBBoard (like my previous).<br />
The quarrel i have with phpbb is that it\'s easily hackable and I had a nasty invasion of russian spam whatevers on my previous forum.<br />
mybboard looks good but all the modification sites i seem to find are down<br />
<br />
My question now is which one to take and which kind of mods are crucial for a forum and most of all which mods are good... I need some mods already: calender, rules, ... any nifty features are welcome.<br />
<br />
Id appreciate it if you could help with your insight and tips about this. ASAP <img src="images/smilies/tongue.gif" style="vertical-align: middle;" border="0" alt="Tongue" title="Tongue" /><br />
<br />
<br />
Greets]]></description>
			<content:encoded><![CDATA[hey<br />
<br />
I have some questions about a forum like this one. <br />
I need a forum for my mod \"all out fairy tale\" which is going to come out of it\'s slumber quite soon but I don\'t know what to take.<br />
<br />
I don\'t want to pay so I considered MyBBoard (like this one) or PHPBBoard (like my previous).<br />
The quarrel i have with phpbb is that it\'s easily hackable and I had a nasty invasion of russian spam whatevers on my previous forum.<br />
mybboard looks good but all the modification sites i seem to find are down<br />
<br />
My question now is which one to take and which kind of mods are crucial for a forum and most of all which mods are good... I need some mods already: calender, rules, ... any nifty features are welcome.<br />
<br />
Id appreciate it if you could help with your insight and tips about this. ASAP <img src="images/smilies/tongue.gif" style="vertical-align: middle;" border="0" alt="Tongue" title="Tongue" /><br />
<br />
<br />
Greets]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[how to make a small window unresizeable?]]></title>
			<link>http://forums.ghc-games.com/showthread.php?tid=253</link>
			<pubDate>Sun, 27 Mar 2005 15:19:12 -0800</pubDate>
			<guid isPermaLink="false">http://forums.ghc-games.com/showthread.php?tid=253</guid>
			<description><![CDATA[Heya, Im still working on this site for a school project, and I have this id?a but can\'t seem to fix the right code =/ <br />
<br />
I\'ve used a javascript for making a popup window, but u can still resize it... I would like ; When you click on this link a new window open lets say about 640*480 and which u can\'t resize.<br />
<br />
Anyone knows? =/<br />
Thanks in advance]]></description>
			<content:encoded><![CDATA[Heya, Im still working on this site for a school project, and I have this id?a but can\'t seem to fix the right code =/ <br />
<br />
I\'ve used a javascript for making a popup window, but u can still resize it... I would like ; When you click on this link a new window open lets say about 640*480 and which u can\'t resize.<br />
<br />
Anyone knows? =/<br />
Thanks in advance]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Opera CTO to Microsoft: Take the Acid2 challenge]]></title>
			<link>http://forums.ghc-games.com/showthread.php?tid=232</link>
			<pubDate>Sat, 19 Mar 2005 14:43:09 -0800</pubDate>
			<guid isPermaLink="false">http://forums.ghc-games.com/showthread.php?tid=232</guid>
			<description><![CDATA[Hakon Wium Lie, CTO of Opera Software, has written a piece for C|net about the lack of interoperability of Microsoft\'s Internet Explorer (IE) and how IE 7 will deal with this issue.<br />
<br />
Lie proposed an acid test to ensure that IE 7 does not become another failed promise, the Web community will issue a challenge to Microsoft. \"We will produce a test page, code-named Acid2, that will actively use features Web designers crave, such as fixed positioning of elements.\"<br />
<br />
\"Microsoft now has the chance to redeem itself with regard to Web interoperability. All it needs to do is make sure IE 7 passes the Acid2 test before shipping\", wrote Lie.<br />
<br />
The Acid2 test will be sponsored by the <a href="http://www.webstandards.org/" target="_blank">Web Standards Project</a>, which is a grassroots coalition fighting for Web standards. Its integrity is unchallenged in the Web community, and its presence will ensure that Acid2 will be fair for all. It might even smoke out some bugs in other browsers.<br />
<br />
As the test name implies, this will be the second acid test put forward for Web browsers. The original acid test, created by Todd Fahrner in 1997, was instrumental in ensuring interoperability between browsers in their CSS1 implementations. The existence of the acid test forced browser vendors to fix their implementations or face embarrassment; the test was created so that testers could easily see which browsers failed the test.<br />
<br />
Even Microsoft made sure IE 6 passed the acid test. As a result of the acid test, CSS became usable and has changed the way Web sites are authored.<br />
<br />
<a href="http://news.com.com/The+Acid2+challenge+to+Microsoft/2010-1032_3-5618723.html" target="_blank">Read the full article</a>]]></description>
			<content:encoded><![CDATA[Hakon Wium Lie, CTO of Opera Software, has written a piece for C|net about the lack of interoperability of Microsoft\'s Internet Explorer (IE) and how IE 7 will deal with this issue.<br />
<br />
Lie proposed an acid test to ensure that IE 7 does not become another failed promise, the Web community will issue a challenge to Microsoft. \"We will produce a test page, code-named Acid2, that will actively use features Web designers crave, such as fixed positioning of elements.\"<br />
<br />
\"Microsoft now has the chance to redeem itself with regard to Web interoperability. All it needs to do is make sure IE 7 passes the Acid2 test before shipping\", wrote Lie.<br />
<br />
The Acid2 test will be sponsored by the <a href="http://www.webstandards.org/" target="_blank">Web Standards Project</a>, which is a grassroots coalition fighting for Web standards. Its integrity is unchallenged in the Web community, and its presence will ensure that Acid2 will be fair for all. It might even smoke out some bugs in other browsers.<br />
<br />
As the test name implies, this will be the second acid test put forward for Web browsers. The original acid test, created by Todd Fahrner in 1997, was instrumental in ensuring interoperability between browsers in their CSS1 implementations. The existence of the acid test forced browser vendors to fix their implementations or face embarrassment; the test was created so that testers could easily see which browsers failed the test.<br />
<br />
Even Microsoft made sure IE 6 passed the acid test. As a result of the acid test, CSS became usable and has changed the way Web sites are authored.<br />
<br />
<a href="http://news.com.com/The+Acid2+challenge+to+Microsoft/2010-1032_3-5618723.html" target="_blank">Read the full article</a>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[need help with one thing]]></title>
			<link>http://forums.ghc-games.com/showthread.php?tid=223</link>
			<pubDate>Thu, 10 Mar 2005 14:57:12 -0800</pubDate>
			<guid isPermaLink="false">http://forums.ghc-games.com/showthread.php?tid=223</guid>
			<description><![CDATA[Hi, im doing this little school project, were I make an internet company.<br />
And I have this nice idea for the design, but there is one problem... <br />
<br />
Im writing layers to build the site up, and I want them to have borders around them, but I can\'t seem to code it right =/<br />
<br />
Anyone know how to make a border on a layer?]]></description>
			<content:encoded><![CDATA[Hi, im doing this little school project, were I make an internet company.<br />
And I have this nice idea for the design, but there is one problem... <br />
<br />
Im writing layers to build the site up, and I want them to have borders around them, but I can\'t seem to code it right =/<br />
<br />
Anyone know how to make a border on a layer?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[XML]]></title>
			<link>http://forums.ghc-games.com/showthread.php?tid=201</link>
			<pubDate>Tue, 22 Feb 2005 01:30:38 -0800</pubDate>
			<guid isPermaLink="false">http://forums.ghc-games.com/showthread.php?tid=201</guid>
			<description><![CDATA[Anyone of you know something about XML? Maybe even a lot?<br />
<br />
I\'m currently working with creating a homepage based on XML and I keep running into small problems - something I see as the whole point of it <img src="images/smilies/smile.gif" style="vertical-align: middle;" border="0" alt="Smile" title="Smile" /> - and I\'m looking for answers, tips and hints.<br />
<br />
At the moment I\'m working on creating a news system based on an XSL style sheet that will display titles/headlines from files in a numbered sequence (F00001.xml -&gt; Fxxxxx.xml). This will ensure a news system that is easily updated by simply uploading a singe file to the server and the XSL style sheet will take care of the rest. <br />
<br />
I\'m also working on upgrading my photo gallery to be somewhat similar in function. Basically divide the pictures into galleries and let a XSL sort it out.<br />
<br />
The whole consept is based on \"as simple as possible\", no .net functions, no java, no nothing except XML and XSL.<br />
<br />
My current \"problem\" to solve is how to select language. I have both norwegian and english titles, descriptions etc in a single file, but I can\'t figure out how to pass that information along to the XSL for processing.<br />
<br />
Anyways, just thought I see if anyone here might know a little something <img src="images/smilies/biggrin.gif" style="vertical-align: middle;" border="0" alt="Big Grin" title="Big Grin" />]]></description>
			<content:encoded><![CDATA[Anyone of you know something about XML? Maybe even a lot?<br />
<br />
I\'m currently working with creating a homepage based on XML and I keep running into small problems - something I see as the whole point of it <img src="images/smilies/smile.gif" style="vertical-align: middle;" border="0" alt="Smile" title="Smile" /> - and I\'m looking for answers, tips and hints.<br />
<br />
At the moment I\'m working on creating a news system based on an XSL style sheet that will display titles/headlines from files in a numbered sequence (F00001.xml -&gt; Fxxxxx.xml). This will ensure a news system that is easily updated by simply uploading a singe file to the server and the XSL style sheet will take care of the rest. <br />
<br />
I\'m also working on upgrading my photo gallery to be somewhat similar in function. Basically divide the pictures into galleries and let a XSL sort it out.<br />
<br />
The whole consept is based on \"as simple as possible\", no .net functions, no java, no nothing except XML and XSL.<br />
<br />
My current \"problem\" to solve is how to select language. I have both norwegian and english titles, descriptions etc in a single file, but I can\'t figure out how to pass that information along to the XSL for processing.<br />
<br />
Anyways, just thought I see if anyone here might know a little something <img src="images/smilies/biggrin.gif" style="vertical-align: middle;" border="0" alt="Big Grin" title="Big Grin" />]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Ideas and test needed]]></title>
			<link>http://forums.ghc-games.com/showthread.php?tid=102</link>
			<pubDate>Sat, 22 Jan 2005 15:58:12 -0800</pubDate>
			<guid isPermaLink="false">http://forums.ghc-games.com/showthread.php?tid=102</guid>
			<description><![CDATA[ok, so those who know me and websites know that once i get going i wont leave one alone, so the UFF website is now in its 3rd or 4th version, and ive given it a complete re-write and overhaul with comments system, blogs and mostly a load of useless admin stuff that only i see.. but i need ideas to keep people coming to the site, so have a browse through, sign up if you want (you have to sign up seperatly for forums simply because phpbb logins annoy me and i dont want it near my site) do whatever..<br />
<br />
<a href="http://www.uffclub.com" target="_blank">http://www.uffclub.com</a><br />
<br />
i need ideas!]]></description>
			<content:encoded><![CDATA[ok, so those who know me and websites know that once i get going i wont leave one alone, so the UFF website is now in its 3rd or 4th version, and ive given it a complete re-write and overhaul with comments system, blogs and mostly a load of useless admin stuff that only i see.. but i need ideas to keep people coming to the site, so have a browse through, sign up if you want (you have to sign up seperatly for forums simply because phpbb logins annoy me and i dont want it near my site) do whatever..<br />
<br />
<a href="http://www.uffclub.com" target="_blank">http://www.uffclub.com</a><br />
<br />
i need ideas!]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Multiple image uploads]]></title>
			<link>http://forums.ghc-games.com/showthread.php?tid=101</link>
			<pubDate>Sat, 22 Jan 2005 11:32:03 -0800</pubDate>
			<guid isPermaLink="false">http://forums.ghc-games.com/showthread.php?tid=101</guid>
			<description><![CDATA[I recently started learning PHP, so I\'m what you could call a big n00b at it still. Nonetheless , I\'m trying to create something...<br />
<br />
<br />
<span style="font-weight: bold;">What I want to achieve:</span><br />
I want to have a script with 4 upload fields &amp; 1 submit button to simultaniously upload 4 images to a folder somewhere on the server. <span style="color: green;"><span style="font-weight: bold;">- Done, no problem</span></span><br />
<br />
But I also need the filename of each image to be stored in the database in a different row, <span style="font-style: italic;">under the same ID</span> <span style="color: red;"><span style="font-weight: bold;">- Not done, and my big problem</span></span><br />
<br />
(see image below for some more clarification)<br />
<img src="http://users.pandora.be/wurtel/images_table.gif" border="0" alt="[Image: images_table.gif]" /><br />
<br />
<br />
<span style="font-weight: bold;">Some extra info:</span><br />
Let\'s assume our files are image1.jpg, image2.jpg, image3.jpg &amp; image4.jpg<br />
<br />
The script uploads the files and inserts their filename in the database, but it inserts:<br />
<br />
- image1.jpg under row image0 in id 4<br />
- image2.jpg under row image1 in id 5<br />
- image3.jpg under row image2 in id 6<br />
- image4.jpg under row image3 in id 7<br />
<br />
(see image below for some more clarification)<br />
<img src="http://users.pandora.be/wurtel/images_table2.gif" border="0" alt="[Image: images_table2.gif]" /><br />
<br />
<span style="font-weight: bold;">This is what I have for my database, I fear the problem may lie here?</span><br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>CREATE TABLE test (<br />
&nbsp;&nbsp;id tinyint (4) NOT NULL auto_increment,<br />
&nbsp;&nbsp;image0 varchar (250) NOT NULL default &#92;'&#92;',<br />
&nbsp;&nbsp;image1 varchar (250) NOT NULL default &#92;'&#92;',<br />
&nbsp;&nbsp;image2 varchar (250) NOT NULL default &#92;'&#92;',<br />
&nbsp;&nbsp;image3 varchar (250) NOT NULL default &#92;'&#92;',<br />
&nbsp;&nbsp;PRIMARY KEY (id),<br />
&nbsp;&nbsp;UNIQUE id (id)<br />
);<br />
<br />
INSERT INTO test VALUES (2,&#92;'yarr0.jpg&#92;',&#92;'yarr1.jpg&#92;',&#92;'yarr2.jpg&#92;',&#92;'yarr3.jpg&#92;');<br />
INSERT INTO test VALUES (3,&#92;'yii0.jpg&#92;',&#92;'yii1.jpg&#92;',&#92;'yii2.jpg&#92;',&#92;'yii3.jpg&#92;');</code></div></div>
<br />
<span style="font-weight: bold;">This is my php code so far</span><br />
<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>&lt;html&gt;<br />
&lt;body&gt;<br />
<br />
&lt;?php require (&#92;'config.php&#92;'); // data to connect to the DB ?&gt; <br />
<br />
&lt;?php&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;echo &#92;"&lt;form name=&#92;&#92;&#92;"image_upload&#92;&#92;&#92;" enctype=&#92;&#92;&#92;"multipart/form-data&#92;&#92;&#92;" method=&#92;&#92;&#92;"post&#92;&#92;&#92;" action=&#92;&#92;&#92;"&#36;PHP_SELF&#92;&#92;&#92;"&gt;&#92;&#92;n&#92;";<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&#36;fields = 4; // number of upload fields<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;for(&#36;x=0;&#36;x&lt;&#36;fields;&#36;x++){ // start of dynamic form (loop)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo &#92;"&lt;input name=&#92;&#92;&#92;"image&#36;x&#92;&#92;&#92;" size=&#92;&#92;&#92;"50&#92;&#92;&#92;" type=&#92;&#92;&#92;"file&#92;&#92;&#92;" id=&#92;&#92;&#92;"image&#36;x&#92;&#92;&#92;"&gt;&lt;br&gt;&#92;&#92;n&#92;";<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;} // end for loop to create 4 input fields<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo &#92;"&lt;input type=&#92;&#92;&#92;"submit&#92;&#92;&#92;" name=&#92;&#92;&#92;"submit&#92;&#92;&#92;" value=&#92;&#92;&#92;"Verstuur&#92;&#92;&#92;"&gt;&#92;&#92;n&#92;";<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo &#92;"&lt;/form&gt;&#92;";<br />
<br />
if(&#36;_POST[&#92;'submit&#92;']) { // form has been submitted<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;for(&#36;x=0;&#36;x&lt;&#36;fields;&#36;x++){ // start for loop<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&#36;file_name = &#36;_FILES[&#92;'image&#92;'. &#36;x][&#92;'name&#92;'];<br />
&nbsp;&nbsp;&nbsp;&nbsp;&#36;uploads = &#92;'upload&#92;'; // directory to upload to<br />
&nbsp;&nbsp;&nbsp;&nbsp;&#36;copy = copy(&#36;_FILES[&#92;'image&#92;'. &#36;x][&#92;'tmp_name&#92;'],&#36;uploads.&#92;'/&#92;'.&#36;file_name);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(&#36;copy) { // check if successfuly copied<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#36;sql = &#92;"INSERT INTO test (image&#36;x) VALUES (&#92;'&#36;file_name&#92;')&#92;";&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#36;result = mysql_query(&#36;sql); // run SQL query against DB<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo &#92;"&#36;file_name | uploaded successfuly!&lt;br&gt;&#92;&#92;n&#92;";<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}else{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo &#92;"&#36;file_name | could not be uploaded!&lt;br&gt;&#92;&#92;n&#92;";<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;} // end for loop<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
} // end of submit statement<br />
<br />
<br />
?&gt;<br />
<br />
&lt;/body&gt;<br />
&lt;/html&gt;</code></div></div>
<br />
I know there\'s no virtually no validation yet, but my first priority is to get it to work. If there\'s anyone that can help me, please have a look because I\'m in dire need of this script!<br />
<br />
Thanks in advance.]]></description>
			<content:encoded><![CDATA[I recently started learning PHP, so I\'m what you could call a big n00b at it still. Nonetheless , I\'m trying to create something...<br />
<br />
<br />
<span style="font-weight: bold;">What I want to achieve:</span><br />
I want to have a script with 4 upload fields &amp; 1 submit button to simultaniously upload 4 images to a folder somewhere on the server. <span style="color: green;"><span style="font-weight: bold;">- Done, no problem</span></span><br />
<br />
But I also need the filename of each image to be stored in the database in a different row, <span style="font-style: italic;">under the same ID</span> <span style="color: red;"><span style="font-weight: bold;">- Not done, and my big problem</span></span><br />
<br />
(see image below for some more clarification)<br />
<img src="http://users.pandora.be/wurtel/images_table.gif" border="0" alt="[Image: images_table.gif]" /><br />
<br />
<br />
<span style="font-weight: bold;">Some extra info:</span><br />
Let\'s assume our files are image1.jpg, image2.jpg, image3.jpg &amp; image4.jpg<br />
<br />
The script uploads the files and inserts their filename in the database, but it inserts:<br />
<br />
- image1.jpg under row image0 in id 4<br />
- image2.jpg under row image1 in id 5<br />
- image3.jpg under row image2 in id 6<br />
- image4.jpg under row image3 in id 7<br />
<br />
(see image below for some more clarification)<br />
<img src="http://users.pandora.be/wurtel/images_table2.gif" border="0" alt="[Image: images_table2.gif]" /><br />
<br />
<span style="font-weight: bold;">This is what I have for my database, I fear the problem may lie here?</span><br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>CREATE TABLE test (<br />
&nbsp;&nbsp;id tinyint (4) NOT NULL auto_increment,<br />
&nbsp;&nbsp;image0 varchar (250) NOT NULL default &#92;'&#92;',<br />
&nbsp;&nbsp;image1 varchar (250) NOT NULL default &#92;'&#92;',<br />
&nbsp;&nbsp;image2 varchar (250) NOT NULL default &#92;'&#92;',<br />
&nbsp;&nbsp;image3 varchar (250) NOT NULL default &#92;'&#92;',<br />
&nbsp;&nbsp;PRIMARY KEY (id),<br />
&nbsp;&nbsp;UNIQUE id (id)<br />
);<br />
<br />
INSERT INTO test VALUES (2,&#92;'yarr0.jpg&#92;',&#92;'yarr1.jpg&#92;',&#92;'yarr2.jpg&#92;',&#92;'yarr3.jpg&#92;');<br />
INSERT INTO test VALUES (3,&#92;'yii0.jpg&#92;',&#92;'yii1.jpg&#92;',&#92;'yii2.jpg&#92;',&#92;'yii3.jpg&#92;');</code></div></div>
<br />
<span style="font-weight: bold;">This is my php code so far</span><br />
<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>&lt;html&gt;<br />
&lt;body&gt;<br />
<br />
&lt;?php require (&#92;'config.php&#92;'); // data to connect to the DB ?&gt; <br />
<br />
&lt;?php&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;echo &#92;"&lt;form name=&#92;&#92;&#92;"image_upload&#92;&#92;&#92;" enctype=&#92;&#92;&#92;"multipart/form-data&#92;&#92;&#92;" method=&#92;&#92;&#92;"post&#92;&#92;&#92;" action=&#92;&#92;&#92;"&#36;PHP_SELF&#92;&#92;&#92;"&gt;&#92;&#92;n&#92;";<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&#36;fields = 4; // number of upload fields<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;for(&#36;x=0;&#36;x&lt;&#36;fields;&#36;x++){ // start of dynamic form (loop)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo &#92;"&lt;input name=&#92;&#92;&#92;"image&#36;x&#92;&#92;&#92;" size=&#92;&#92;&#92;"50&#92;&#92;&#92;" type=&#92;&#92;&#92;"file&#92;&#92;&#92;" id=&#92;&#92;&#92;"image&#36;x&#92;&#92;&#92;"&gt;&lt;br&gt;&#92;&#92;n&#92;";<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;} // end for loop to create 4 input fields<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo &#92;"&lt;input type=&#92;&#92;&#92;"submit&#92;&#92;&#92;" name=&#92;&#92;&#92;"submit&#92;&#92;&#92;" value=&#92;&#92;&#92;"Verstuur&#92;&#92;&#92;"&gt;&#92;&#92;n&#92;";<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo &#92;"&lt;/form&gt;&#92;";<br />
<br />
if(&#36;_POST[&#92;'submit&#92;']) { // form has been submitted<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;for(&#36;x=0;&#36;x&lt;&#36;fields;&#36;x++){ // start for loop<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&#36;file_name = &#36;_FILES[&#92;'image&#92;'. &#36;x][&#92;'name&#92;'];<br />
&nbsp;&nbsp;&nbsp;&nbsp;&#36;uploads = &#92;'upload&#92;'; // directory to upload to<br />
&nbsp;&nbsp;&nbsp;&nbsp;&#36;copy = copy(&#36;_FILES[&#92;'image&#92;'. &#36;x][&#92;'tmp_name&#92;'],&#36;uploads.&#92;'/&#92;'.&#36;file_name);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(&#36;copy) { // check if successfuly copied<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#36;sql = &#92;"INSERT INTO test (image&#36;x) VALUES (&#92;'&#36;file_name&#92;')&#92;";&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#36;result = mysql_query(&#36;sql); // run SQL query against DB<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo &#92;"&#36;file_name | uploaded successfuly!&lt;br&gt;&#92;&#92;n&#92;";<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}else{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo &#92;"&#36;file_name | could not be uploaded!&lt;br&gt;&#92;&#92;n&#92;";<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;} // end for loop<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
} // end of submit statement<br />
<br />
<br />
?&gt;<br />
<br />
&lt;/body&gt;<br />
&lt;/html&gt;</code></div></div>
<br />
I know there\'s no virtually no validation yet, but my first priority is to get it to work. If there\'s anyone that can help me, please have a look because I\'m in dire need of this script!<br />
<br />
Thanks in advance.]]></content:encoded>
		</item>
	</channel>
</rss>