<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>SitePoint Forums</title>
		<link>http://www.sitepoint.com/forums/</link>
		<description>Webmaster Forums for Design, CSS, XHTML, PHP, Ruby, JavaScript, Affiliate Marketing, ASP.NET, Promotion</description>
		<language>en</language>
		<lastBuildDate>Sun, 19 May 2013 02:07:24 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.sitepoint.com/forums/images/sitepoint/misc/rss.png</url>
			<title>SitePoint Forums</title>
			<link>http://www.sitepoint.com/forums/</link>
		</image>
		<item>
			<title>redirect to URL with PHP</title>
			<link>http://www.sitepoint.com/forums/showthread.php?1071874-redirect-to-URL-with-PHP&amp;goto=newpost</link>
			<pubDate>Sun, 19 May 2013 02:03:54 GMT</pubDate>
			<description><![CDATA[I have a form at index.php that takes in user input, it the includes and sends the user input to another php file for processing. 
 
Here is the code of index.php: 
 
 
Code: 
--------- 
<?php 
if(isset($_GET['q'])){ 
    include_once "form.php";]]></description>
			<content:encoded><![CDATA[<div>I have a form at index.php that takes in user input, it the includes and sends the user input to another php file for processing.<br />
<br />
Here is the code of index.php:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&lt;?php<br />
if(isset($_GET['q'])){<br />
&nbsp; &nbsp; include_once &quot;form.php&quot;;<br />
&nbsp; &nbsp; exit(0);<br />
}<br />
?&gt;<br />
&lt;!Doctype HTML&gt;<br />
&lt;html lang=&quot;en&quot;&gt;<br />
&nbsp; &nbsp; &lt;head&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta charset=&quot;utf-8&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;title&gt;Search&lt;/title&gt;<br />
&nbsp; &nbsp; &lt;/head&gt;<br />
&nbsp; &nbsp; &lt;body&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;form method=&quot;get&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  &lt;input type=&quot;text&quot; name=&quot;q&quot; /&gt;<br />
&nbsp; &nbsp; &lt;/form&gt;<br />
&nbsp; &nbsp; &lt;/body&gt;<br />
&nbsp;&lt;/html&gt;</code><hr />
</div>When one submits the form it goes to <a href="http://mysite.com/?q=textUserEntered" target="_blank" rel="nofollow">http://mysite.com/?q=textUserEntered</a> (if just the domain was visited before) or <a href="http://mysite.com/index.php?q=textUserEntered" target="_blank" rel="nofollow">http://mysite.com/index.php?q=textUserEntered</a> (if index.php is visited before)<br />
<br />
How can I get it to go to <a href="http://mysite.com/form?q=textUserEntered" target="_blank" rel="nofollow">http://mysite.com/form?q=textUserEntered</a> or <a href="http://mysite.com/index.php/form?q=textUserEntered" target="_blank" rel="nofollow">http://mysite.com/index.php/form?q=textUserEntered</a> while still passing the form data to form.php<br />
<br />
I tried this in the beginning index.php and form.php, it navigates to the URL but doesn't pass the data to form.php and instead goes to a 404 error page.<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">if(!empty($_GET['q']))<br />
{<br />
&nbsp; &nbsp; header(&quot;Location: form?q=&quot;.rawurlencode($_GET['q']));<br />
&nbsp; &nbsp; exit;<br />
}</code><hr />
</div>Update:<br />
<br />
I can't use the action attribute because adding form.php to the value of the action attribute would make the URL <a href="http://mysite.com/form.php?q=userEnteredText" target="_blank" rel="nofollow">http://mysite.com/form.php?q=userEnteredText</a> not <a href="http://mysite.com/form?q=userEnteredText" target="_blank" rel="nofollow">http://mysite.com/form?q=userEnteredText</a></div>

]]></content:encoded>
			<category domain="http://www.sitepoint.com/forums/forumdisplay.php?34-PHP">PHP</category>
			<dc:creator>team1504</dc:creator>
			<guid isPermaLink="true">http://www.sitepoint.com/forums/showthread.php?1071874-redirect-to-URL-with-PHP</guid>
		</item>
		<item>
			<title>How much should I charge for copywriting service?</title>
			<link>http://www.sitepoint.com/forums/showthread.php?1071768-How-much-should-I-charge-for-copywriting-service&amp;goto=newpost</link>
			<pubDate>Sun, 19 May 2013 01:24:00 GMT</pubDate>
			<description>I consider myself as good writer because I have studied  from well known copywriters.I am offering email, sales letter, autorespsonder or any promotional piece. 
What should I charge for my services? Should I charge an hourly rate or create half day, day packages? Your help would be much...</description>
			<content:encoded><![CDATA[<div>I consider myself as good writer because I have studied  from well known copywriters.I am offering email, sales letter, autorespsonder or any promotional piece.<br />
What should I charge for my services? Should I charge an hourly rate or create half day, day packages? Your help would be much appreciated.<br />
<br />
<br />
Bruke Ferguson, BSc</div>

]]></content:encoded>
			<category domain="http://www.sitepoint.com/forums/forumdisplay.php?434-Web-Content">Web Content</category>
			<dc:creator>brukeferguson</dc:creator>
			<guid isPermaLink="true">http://www.sitepoint.com/forums/showthread.php?1071768-How-much-should-I-charge-for-copywriting-service</guid>
		</item>
		<item>
			<title>VPS and Memory Usage</title>
			<link>http://www.sitepoint.com/forums/showthread.php?1071676-VPS-and-Memory-Usage&amp;goto=newpost</link>
			<pubDate>Sun, 19 May 2013 00:56:50 GMT</pubDate>
			<description><![CDATA[Okay, so I run two very small sites on a VPS (both are Wordpress using W3 Total Cache) running Apache. I've seen a prior thread very similar to what is happening with my server, but I want to approach the topic differently. 
 
First of all, I want to try and identify the culprit causing the memory...]]></description>
			<content:encoded><![CDATA[<div>Okay, so I run two very small sites on a VPS (both are Wordpress using W3 Total Cache) running Apache. I've seen a prior thread very similar to what is happening with my server, but I want to approach the topic differently.<br />
<br />
First of all, I want to try and identify the culprit causing the memory usage, but before I get into that, here are a few key details:<br />
2 GHz CPU with 300 MB of RAM<br />
It has 2 wordpress sites, the first had 1224 entries in the access.log for today and the second had a dismal 406 entries (let's face it both are dismal).<br />
The entries for the first wordpress site are primarily trying to hack its way in by guessing an account to automatically login to wp-login.php, the latter site all seem to be legitimate requests for access.<br />
<br />
Lastly, the requests are for example.net which is a mirror domain for mydomain.com. example.net doesn't really server any web presence purpose, so I could probably block all requests to that domain and that would kill all of the wp-login.php attacks (example.net is primarily kept for e-mail purposes).<br />
<br />
Okay, so what that out of the way, I'm trying to figure out how to identify what is causing the spike in memory usage. Supposedly it spiked at 1:00 AM PST, so they automatically bumped the memory limit by 25% to handle the excess load. They are telling me to throw more RAM on it, but that is the dumbest thing I've heard of. To quote my reply: &quot;That's like stating to throw more wood on a fire because the flame is too high. Sure it will lower the flame for a while, but once it catches up, its not much more fiercer than it was prior.&quot;<br />
<br />
I really need to identify the cause for the spike. Considering my fire analogy, the reason for the increase flame could be an accelerant (think pine cone, lint, paper, etc) or a pocket of air that became available, feeding the flame. You have to analyze the fire to figure out which it is (sometimes waiting till the fire has died to see remnants of the cause).<br />
<br />
So what tools/processes do you use to identify high memory usage on your web servers?</div>

]]></content:encoded>
			<category domain="http://www.sitepoint.com/forums/forumdisplay.php?97-Server-Configuration-Apache-amp-URL-Rewriting"><![CDATA[Server Configuration, Apache & URL Rewriting]]></category>
			<dc:creator>cpradio</dc:creator>
			<guid isPermaLink="true">http://www.sitepoint.com/forums/showthread.php?1071676-VPS-and-Memory-Usage</guid>
		</item>
		<item>
			<title>Trailing Comma Variation</title>
			<link>http://www.sitepoint.com/forums/showthread.php?1071670-Trailing-Comma-Variation&amp;goto=newpost</link>
			<pubDate>Sun, 19 May 2013 00:55:10 GMT</pubDate>
			<description><![CDATA[I need to delete not a trailing comma but this character - | 
 
This is what my display code looks like, where $Name is a list of names of national parks... 
 
 
Code: 
--------- 
echo <<<EOD 
   $Name | 
EOD;]]></description>
			<content:encoded><![CDATA[<div>I need to delete not a trailing comma but this character - |<br />
<br />
This is what my display code looks like, where $Name is a list of names of national parks...<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">echo &lt;&lt;&lt;EOD<br />
&nbsp;  $Name |<br />
EOD;</code><hr />
</div>So the actual display looks something like this: Denali | Everglades | Yellowstone | Yosemite |<br />
<br />
I'd like to delete that trailing character after Yosemite.<br />
<br />
So I modified my code slightly:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">$Name = ''.$Name.' |';<br />
<br />
echo &lt;&lt;&lt;EOD<br />
&nbsp;  $Name<br />
EOD;</code><hr />
</div>Then I added the following script, replacing the comma with an |...<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">function deleteTrailingCommas($str)<br />
{<br />
&nbsp; &nbsp; return trim(preg_replace(&quot;/(.*?)((,|\s)*)$/m&quot;, &quot;$1&quot;, $str));<br />
}<br />
<br />
echo &lt;&lt;&lt;EOD<br />
&nbsp;  $Name<br />
EOD;</code><hr />
</div>But I assumed this was tripping it up...<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">(||\s)</code><hr />
</div>However, I then discovered that even the original code (searching for a comma) triggers a &quot;cannot redeclare&quot; error. Do I get an error because I'm using the script inside a while loop?<br />
<br />
Anyway, can anyone tell me how to zap that last character in my display? Thanks.</div>

]]></content:encoded>
			<category domain="http://www.sitepoint.com/forums/forumdisplay.php?34-PHP">PHP</category>
			<dc:creator>Chavista</dc:creator>
			<guid isPermaLink="true">http://www.sitepoint.com/forums/showthread.php?1071670-Trailing-Comma-Variation</guid>
		</item>
		<item>
			<title>Need help Changing Page Semantics</title>
			<link>http://www.sitepoint.com/forums/showthread.php?1071638-Need-help-Changing-Page-Semantics&amp;goto=newpost</link>
			<pubDate>Sun, 19 May 2013 00:49:04 GMT</pubDate>
			<description><![CDATA[I could use some help re-doing the HTML Semantics for my web page. 
 
Currently, I have my Company Name as the <h1>, then a Navigation Bar composed of a <ul>, then a box in the main area with an <h2> as it's name, and finally some unrelated boxes in the right margin. 
 
 
Now here is a screen-shot...]]></description>
			<content:encoded><![CDATA[<div>I could use some help re-doing the HTML Semantics for my web page.<br />
<br />
Currently, I have my Company Name as the &lt;h1&gt;, then a Navigation Bar composed of a &lt;ul&gt;, then a box in the main area with an &lt;h2&gt; as it's name, and finally some unrelated boxes in the right margin.<br />
<br />
<br />
Now here is a screen-shot of my NEW layout...<br />
<br />
<br />
<br />
When I first created this layout 18 months ago, it worked great, because everything under my main box related to the tab selected (e.g. &quot;Finance&quot;).<br />
<br />
But since things have grown, here are my new problems...<br />
<br />
First of all, I just added the &quot;Business Structure&quot; and &quot;Seasonal&quot; boxes in the right margin, and they really relate to &quot;Finance&quot;.  (But visually and semantically, they are unrelated, which is wrong.)<br />
<br />
Secondly, I am further sub-dividing what is listed in the main box.  So the new boxes like the &quot;Economy&quot; SubSection - and others below it - really should relate to a new label called &quot;Featured (SubSections)&quot;, and not &quot;Finance&quot;.  (So the box I originally had is not longer accurate.)<br />
<br />
<br />
Here is what I would *ideally* like to do...<br />
<br />
1.) Make each &quot;Section&quot; on my Navigation Bar be an &lt;h2&gt; tag instead of &lt;a&gt; tag.<br />
<br />
2.) Semantically speaking, <b>make it so that everything beneath the chosen &quot;Section&quot; Navigation Tab is subordinate to it.</b>  (This will eliminate the need for the box I currently have called &quot;Finance&quot;.)<br />
<br />
3.) Change label of the box in the main area from &quot;&lt;h2&gt;Finance&lt;/h2&gt;&quot; to &quot;&lt;h3&gt;Featured&lt;/h3&gt;&quot;.  (However, this should semantically tie up to the &quot;Finance&quot; Navigation Tab.)<br />
<br />
4.) Make any new boxes in the Right Margin &lt;h3&gt;'s.  (Again, semantically these should tie up to the &quot;Finance&quot; Navigation Tab.)<br />
<br />
<br />
Visually this seems really straight-forward.<br />
<br />
But sematically, I'm afraid that browsers won't know what I'm doing...  (Especially since there is the concept of an &quot;active tab&quot; and &quot;inactive tabs&quot;.)  :(<br />
<br />
Hope that makes sense?!<br />
<br />
<b>So, is it possible to do what I just tried to describe??</b>  :-/<br />
<br />
Sincerely,<br />
<br />
<br />
Debbie</div>


	<div style="padding:10px">

	

	

	

	

	</div>
]]></content:encoded>
			<category domain="http://www.sitepoint.com/forums/forumdisplay.php?52-(X)HTML">(X)HTML</category>
			<dc:creator>DoubleDee</dc:creator>
			<guid isPermaLink="true">http://www.sitepoint.com/forums/showthread.php?1071638-Need-help-Changing-Page-Semantics</guid>
		</item>
		<item>
			<title>learning and loving bootstrap. But was wondering</title>
			<link>http://www.sitepoint.com/forums/showthread.php?1071573-learning-and-loving-bootstrap-But-was-wondering&amp;goto=newpost</link>
			<pubDate>Sun, 19 May 2013 00:27:28 GMT</pubDate>
			<description>how do you change the timing on the slider? It goes just a bit too fast. 
Anyone knows? 
D</description>
			<content:encoded><![CDATA[<div>how do you change the timing on the slider? It goes just a bit too fast.<br />
Anyone knows?<br />
D</div>

]]></content:encoded>
			<category domain="http://www.sitepoint.com/forums/forumdisplay.php?53-CSS-amp-Page-Layout"><![CDATA[CSS & Page Layout]]></category>
			<dc:creator>pdxSherpa</dc:creator>
			<guid isPermaLink="true">http://www.sitepoint.com/forums/showthread.php?1071573-learning-and-loving-bootstrap-But-was-wondering</guid>
		</item>
		<item>
			<title>problem passing datetime variable with colon via url</title>
			<link>http://www.sitepoint.com/forums/showthread.php?1071572-problem-passing-datetime-variable-with-colon-via-url&amp;goto=newpost</link>
			<pubDate>Sun, 19 May 2013 00:07:20 GMT</pubDate>
			<description><![CDATA[Hi, 
My seemingly simple requirement is to send a datetime variable (amongst other variables) which includes a colon (e.g. 2013-07-01T13:30) to a partner's website via an URL for an availability query. This I need to do via a form and the GET method. However, when the form is submitted, everything...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
My seemingly simple requirement is to send a datetime variable (amongst other variables) which includes a colon (e.g. 2013-07-01T13:30) to a partner's website via an URL for an availability query. This I need to do via a form and the GET method. However, when the form is submitted, everything is OK in the destination URL EXCEPT the colon which is changed to %3A (in example above, 2013-07-01T13%3A30), and the availability query subsequently fails with an invalid datetime error. How can I get around this?<br />
<br />
Hope someone can help as much googling hasn't come up with a solution.<br />
<br />
cheers</div>

]]></content:encoded>
			<category domain="http://www.sitepoint.com/forums/forumdisplay.php?34-PHP">PHP</category>
			<dc:creator>andrew1234567</dc:creator>
			<guid isPermaLink="true">http://www.sitepoint.com/forums/showthread.php?1071572-problem-passing-datetime-variable-with-colon-via-url</guid>
		</item>
		<item>
			<title>woocomerce problem</title>
			<link>http://www.sitepoint.com/forums/showthread.php?1071571-woocomerce-problem&amp;goto=newpost</link>
			<pubDate>Sat, 18 May 2013 23:31:20 GMT</pubDate>
			<description>hi , im having a  problem with *woocomerce* and the  *pricing table* ,my problem is i cant make the pricing table work properly with woocomerce  
so when the user pick the product from the pricing table it will be redirected directly to the shopping cart with the product that he choose on it not to...</description>
			<content:encoded><![CDATA[<div>hi , im having a  problem with <b>woocomerce</b> and the  <b>pricing table</b> ,my problem is i cant make the pricing table work properly with woocomerce <br />
so when the user pick the product from the pricing table it will be redirected directly to the shopping cart with the product that he choose on it not to the product page . im using woocomerce 2.0.10 and seem that nobody now how to make this work . i will be very thankful if you show me how to make this work . thank you in advance :)</div>

]]></content:encoded>
			<category domain="http://www.sitepoint.com/forums/forumdisplay.php?266-CMS-amp-Wordpress"><![CDATA[CMS & Wordpress]]></category>
			<dc:creator>medlife</dc:creator>
			<guid isPermaLink="true">http://www.sitepoint.com/forums/showthread.php?1071571-woocomerce-problem</guid>
		</item>
		<item>
			<title>removing index.php from url</title>
			<link>http://www.sitepoint.com/forums/showthread.php?1071570-removing-index-php-from-url&amp;goto=newpost</link>
			<pubDate>Sat, 18 May 2013 22:40:18 GMT</pubDate>
			<description><![CDATA[I have a magento site which has index.php appended to the url you click  on. I googled a lot to find the solution and i did what i could find.To  clear my my doubts i uploaded htaccess file fresh copy from magento copy  and made the url rewrite in configuation>system>web to yes and  clear the cache...]]></description>
			<content:encoded><![CDATA[<div>I have a magento site which has index.php appended to the url you click  on. I googled a lot to find the solution and i did what i could find.To  clear my my doubts i uploaded htaccess file fresh copy from magento copy  and made the url rewrite in configuation&gt;system&gt;web to yes and  clear the cache too but still it put index.php in url.I have also double  checked secure and unsecure link to see if it contain any index.php  which it doesn't  I can do all what i can to do research and applied it but no change.  What can i do or what can be wrong?</div>

]]></content:encoded>
			<category domain="http://www.sitepoint.com/forums/forumdisplay.php?5-eCommerce">eCommerce</category>
			<dc:creator>nofel</dc:creator>
			<guid isPermaLink="true">http://www.sitepoint.com/forums/showthread.php?1071570-removing-index-php-from-url</guid>
		</item>
		<item>
			<title>Database Content Metadata</title>
			<link>http://www.sitepoint.com/forums/showthread.php?1071140-Database-Content-Metadata&amp;goto=newpost</link>
			<pubDate>Sat, 18 May 2013 20:22:13 GMT</pubDate>
			<description>Hi All, 
 
I am trying to build a database which will find music that has similar features however to do such I need to enter metadata. I was wondering what is the best way to do such? Currently I have basic data like track name, genre, artist etc. However I want to go deeper than that and define...</description>
			<content:encoded><![CDATA[<div>Hi All,<br />
<br />
I am trying to build a database which will find music that has similar features however to do such I need to enter metadata. I was wondering what is the best way to do such? Currently I have basic data like track name, genre, artist etc. However I want to go deeper than that and define it as something like slow rockers or fast party music or even combining genres. What is the best way to achieve something like that in terms of storing the extra metadata that describes a track and then doing a query to find other tracks that match closely to it?<br />
<br />
Any help will be greatly appreciated.</div>

]]></content:encoded>
			<category domain="http://www.sitepoint.com/forums/forumdisplay.php?88-Databases-amp-MySQL"><![CDATA[Databases & MySQL]]></category>
			<dc:creator>skelleex</dc:creator>
			<guid isPermaLink="true">http://www.sitepoint.com/forums/showthread.php?1071140-Database-Content-Metadata</guid>
		</item>
		<item>
			<title>Problem with div resize of both TEXT and IMG</title>
			<link>http://www.sitepoint.com/forums/showthread.php?1071139-Problem-with-div-resize-of-both-TEXT-and-IMG&amp;goto=newpost</link>
			<pubDate>Sat, 18 May 2013 20:20:57 GMT</pubDate>
			<description><![CDATA[Hey guys, I'm having trouble with my navigation bar that includes text and images. I'm building a project site of the New Acura NSX to add to my professional portfolio, and I cannot seem to get the div containing the navi bar to resize correctly based on window size. God ive googled the problem so...]]></description>
			<content:encoded><![CDATA[<div>Hey guys, I'm having trouble with my navigation bar that includes text and images. I'm building a project site of the New Acura NSX to add to my professional portfolio, and I cannot seem to get the div containing the navi bar to resize correctly based on window size. God ive googled the problem so many times, and tried many different things, but its not working with me. Maybe im missing something? Here is a look at what im working with. <br />
<br />
This is how the site looks at a higher resolution<br />
<a href="http://www.sitepoint.com/forums/attachment.php?attachmentid=62179&amp;d=1368908182"  title="Name:  example1_zpsb286305a.jpg
Views: 6
Size:  57.4 KB">example1_zpsb286305a.jpg</a><br />
<br />
This is how the site looks at a lower resolution, resize problem.<br />
<a href="http://www.sitepoint.com/forums/attachment.php?attachmentid=62180&amp;d=1368908235"  title="Name:  example2_zps3217c650.jpg
Views: 4
Size:  126.0 KB">example2_zps3217c650.jpg</a><br />
<br />
Here is my Html<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;<br />
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;<br />
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;styling1.css&quot;/&gt;<br />
&lt;title&gt;Acura NSX&lt;/title&gt;<br />
&lt;/head&gt;<br />
<br />
&lt;body class=&quot;mainpage&quot;&gt;<br />
&lt;div class=&quot;container&quot;&gt;<br />
&lt;div class=&quot;spacer&quot;&gt;&lt;/div&gt;<br />
&lt;div class=&quot;navibar&quot;&gt;<br />
&lt;ul&gt;<br />
&lt;li&gt;&lt;a href=&quot;index.html&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;<br />
&lt;img src=&quot;photos/n.png&quot; width=&quot;35&quot; height=&quot;47&quot; /&gt;<br />
&lt;li&gt;&lt;a href=&quot;gallery.html&quot;&gt;Gallery&lt;/a&gt;&lt;/li&gt;<br />
&lt;img src=&quot;photos/s.png&quot; width=&quot;35&quot; height=&quot;47&quot; /&gt;<br />
&lt;li&gt;&lt;a href=&quot;news.html&quot;&gt;News&lt;/a&gt;&lt;/li&gt;<br />
&lt;img src=&quot;photos/x.png&quot; width=&quot;35&quot; height=&quot;47&quot; /&gt;<br />
&lt;li&gt;&lt;a href=&quot;forums.html&quot;&gt;Forums&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
<br />
&lt;/body&gt;<br />
&lt;/html&gt;</code><hr />
</div><br />
Here is my CSS<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">@charset &quot;utf-8&quot;;<br />
<br />
.mainpage {<br />
&nbsp; &nbsp; &nbsp; &nbsp; background:url(photos/background1.jpg);<br />
&nbsp; &nbsp; &nbsp; &nbsp; background-repeat:no-repeat;<br />
&nbsp; &nbsp; &nbsp; &nbsp; background-size:100%;&nbsp; &nbsp; &nbsp; &nbsp; <br />
}<br />
<br />
.headlogo {<br />
&nbsp; &nbsp; &nbsp; &nbsp; width:460px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; float:left;<br />
}<br />
<br />
.spacer {<br />
&nbsp; &nbsp; &nbsp; &nbsp; width:60%;<br />
&nbsp; &nbsp; &nbsp; &nbsp; float:left;<br />
&nbsp; &nbsp; &nbsp; &nbsp; height:100px;<br />
}<br />
<br />
.navibar {<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; margin-top:97px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
.navibar ul {<br />
&nbsp; &nbsp; &nbsp; &nbsp; list-style-type:none;<br />
&nbsp; &nbsp; &nbsp; &nbsp; margin:0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; padding:0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
}<br />
<br />
.navibar li {<br />
&nbsp; &nbsp; &nbsp; &nbsp; display:inline;<br />
&nbsp; &nbsp; &nbsp; &nbsp; margin:5px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
}<br />
<br />
.navibar img {<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
.navibar a:link { font-size:18px ; font:&quot;Arial Black&quot;, Gadget, sans-serif, Helvetica, serif; font-weight:900 ; text-decoration:none; color:#006;}&nbsp; &nbsp; &nbsp; /* unvisited link */<br />
.navibar a:visited&nbsp; { font-size:18px ; font:&quot;Arial Black&quot;, Helvetica, serif; font-weight:900 ; text-decoration:none; color:#006;}&nbsp; /* visited link */<br />
.navibar a:hover { font-size:18px ; font:&quot;Arial Black&quot;, Helvetica, serif; font-weight:900 ; text-decoration:none; color:#FFF;}&nbsp; /* mouse over link */<br />
.navibar a:active { font-size:18px ; font:&quot;Arial Black&quot;, Helvetica, serif; font-weight:900 ; text-decoration:none; color:#00C;}&nbsp; /* selected link */<br />
<br />
<br />
/* CSS Document */</code><hr />
</div><br />
ANY help would be apprecitated. THX! :)</div>


	<div style="padding:10px">

	

	

	
		<fieldset class="fieldset">
			<legend>Attached Images</legend>
			<ul>
			<li>
	<img class="inlineimg" src="http://www.sitepoint.com/forums/images/sitepoint/attach/jpg.gif" alt="File Type: jpg" />
	<a href="http://www.sitepoint.com/forums/attachment.php?attachmentid=62179&amp;d=1368908182" target="_blank">example1_zpsb286305a.jpg</a> 
(57.4 KB)
</li><li>
	<img class="inlineimg" src="http://www.sitepoint.com/forums/images/sitepoint/attach/jpg.gif" alt="File Type: jpg" />
	<a href="http://www.sitepoint.com/forums/attachment.php?attachmentid=62180&amp;d=1368908235" target="_blank">example2_zps3217c650.jpg</a> 
(126.0 KB)
</li>
			</ul>
			</fieldset>
	

	

	</div>
]]></content:encoded>
			<category domain="http://www.sitepoint.com/forums/forumdisplay.php?53-CSS-amp-Page-Layout"><![CDATA[CSS & Page Layout]]></category>
			<dc:creator>hoosekarter</dc:creator>
			<guid isPermaLink="true">http://www.sitepoint.com/forums/showthread.php?1071139-Problem-with-div-resize-of-both-TEXT-and-IMG</guid>
		</item>
		<item>
			<title>Options</title>
			<link>http://www.sitepoint.com/forums/showthread.php?1071136-Options&amp;goto=newpost</link>
			<pubDate>Sat, 18 May 2013 20:17:33 GMT</pubDate>
			<description>Hello People 
 
How make this? 
 
Image: http://i.imgur.com/pHmPqJm.png  
 
*Font:* 
 
Code: 
---------</description>
			<content:encoded><![CDATA[<div>Hello People<br />
<br />
How make this?<br />
<br />
<img src="http://i.imgur.com/pHmPqJm.png" border="0" alt="" /><br />
<br />
<b>Font:</b><br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">http://serialguru.ru/serial-legenda-ob-iskatele</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://www.sitepoint.com/forums/forumdisplay.php?15-JavaScript-amp-jQuery"><![CDATA[JavaScript & jQuery]]></category>
			<dc:creator>Fantastic5</dc:creator>
			<guid isPermaLink="true">http://www.sitepoint.com/forums/showthread.php?1071136-Options</guid>
		</item>
		<item>
			<title>INSERT SELECT statement</title>
			<link>http://www.sitepoint.com/forums/showthread.php?1070994-INSERT-SELECT-statement&amp;goto=newpost</link>
			<pubDate>Sat, 18 May 2013 19:03:11 GMT</pubDate>
			<description>Hi there, 
 
I having a problem with a MySQL INSERT .. SELECT statement: 
 
Code: 
--------- 
INSERT INTO 
`products` 
( 
  `id`,</description>
			<content:encoded><![CDATA[<div>Hi there,<br />
<br />
I having a problem with a MySQL INSERT .. SELECT statement:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">INSERT INTO<br />
`products`<br />
(<br />
&nbsp; `id`, <br />
&nbsp; `image`, <br />
&nbsp; `title`, <br />
&nbsp; `description`, <br />
&nbsp; `price`, <br />
&nbsp; `VAT`, <br />
&nbsp; `related_products`<br />
) <br />
SELECT <br />
&nbsp; 'CR25', <br />
&nbsp; `id` FROM `images` WHERE `images`.`title` = 'Some Image Title', <br />
&nbsp; 'Product Title', <br />
&nbsp; 'Product Description', <br />
&nbsp; 4.99, <br />
&nbsp; 0, <br />
&nbsp; 'CR26'</code><hr />
</div>Throws an error:<br />
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 'Product Title'<br />
<br />
I've also tried<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">INSERT INTO<br />
`products`<br />
(<br />
&nbsp; `id`, <br />
&nbsp; `image`, <br />
&nbsp; `title`, <br />
&nbsp; `description`, <br />
&nbsp; `price`, <br />
&nbsp; `VAT`, <br />
&nbsp; `related_products`<br />
) <br />
VALUES<br />
( <br />
&nbsp; 'CR25', <br />
&nbsp; (`id` FROM `images` WHERE `images`.`title` = 'Some Image Title'), <br />
&nbsp; 'Product Title', <br />
&nbsp; 'Product Description', <br />
&nbsp; 4.99, <br />
&nbsp; 0, <br />
&nbsp; 'CR26'<br />
)</code><hr />
</div>But I get a similar error message:<br />
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' '<br />
<br />
As far as I can tell I'm using the correct syntax.<br />
<br />
Any ideas?<br />
<br />
Cheers<br />
M</div>

]]></content:encoded>
			<category domain="http://www.sitepoint.com/forums/forumdisplay.php?88-Databases-amp-MySQL"><![CDATA[Databases & MySQL]]></category>
			<dc:creator>mickyginger</dc:creator>
			<guid isPermaLink="true">http://www.sitepoint.com/forums/showthread.php?1070994-INSERT-SELECT-statement</guid>
		</item>
		<item>
			<title>Can you recommend a video gallery or video carousel for web page?</title>
			<link>http://www.sitepoint.com/forums/showthread.php?1070981-Can-you-recommend-a-video-gallery-or-video-carousel-for-web-page&amp;goto=newpost</link>
			<pubDate>Sat, 18 May 2013 18:51:00 GMT</pubDate>
			<description><![CDATA[I'm looking for a recomendation for a video gallery or video carousel for a web page, where web visitors can flip-through video choices and then select one to view (mp4). Any help with that will be appreciated.]]></description>
			<content:encoded><![CDATA[<div>I'm looking for a recomendation for a video gallery or video carousel for a web page, where web visitors can flip-through video choices and then select one to view (mp4). Any help with that will be appreciated.</div>

]]></content:encoded>
			<category domain="http://www.sitepoint.com/forums/forumdisplay.php?15-JavaScript-amp-jQuery"><![CDATA[JavaScript & jQuery]]></category>
			<dc:creator>ChrisjChrisj</dc:creator>
			<guid isPermaLink="true">http://www.sitepoint.com/forums/showthread.php?1070981-Can-you-recommend-a-video-gallery-or-video-carousel-for-web-page</guid>
		</item>
		<item>
			<title>Calling all OOP architects...</title>
			<link>http://www.sitepoint.com/forums/showthread.php?1070896-Calling-all-OOP-architects&amp;goto=newpost</link>
			<pubDate>Sat, 18 May 2013 18:14:23 GMT</pubDate>
			<description><![CDATA[The thread 'Group commonly used application-wide methods in unit-test friendly way (http://www.sitepoint.com/forums/showthread.php?1063761-Group-commonly-used-application-wide-methods-in-unit-test-friendly-way)' has given me a lot to think about, maybe I'm stuck in procedural mode. But how to get...]]></description>
			<content:encoded><![CDATA[<div>The thread '<a href="http://www.sitepoint.com/forums/showthread.php?1063761-Group-commonly-used-application-wide-methods-in-unit-test-friendly-way" target="_blank">Group commonly used application-wide methods in unit-test friendly way</a>' has given me a lot to think about, maybe I'm stuck in procedural mode. But how to get out of the rut? How to think about objects? A &quot;button&quot; is an object, you can do things to it and it will respond in certain ways. An email address is not an object, it's value, a property of the account owner just like a telephone number or a name. <br />
<br />
An email address can be valid or invalid. There are many methods of validating an email address, from less precise to more precise: you can check the formatting, you can look up the MX record, you can send an email to see if it bounces, you can confirm the email address if you get a reply from that address.<br />
<br />
If you are dealing with a member, a subscriber, or an account, the email address is their property and you can use all the methods outlined above to verify the email address. If you have a mailing list the email address is still a &quot;property&quot; of the list but not as &quot;proprietary&quot; as in the first case and you can't use all the validation methods. If you are dealing with a contact form, the visitor's email address is still a &quot;property&quot; but even less &quot;proprietary&quot; that in the case of a mailing list but at least you have received direct authorization to send mail to that address.<br />
<br />
For discussion purposes let's call the validation anyone can do &quot;secondary&quot; because it's not entirely conclusive and let's call the validation that the membership scripts can do &quot;primary&quot; because they get owner feedback. If there are better terms for these things, please let me know.<br />
<br />
According to the thread mentioned above, the email validation methods should be part of the membership class that really owns the email address property. But there can be many versions or variations of the membership class and the validation methods should be in some ancestral membership class which can be used by contact class and mailing list class as static methods, for example:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB">$myList</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">valid</span><span style="color: #007700">(</span><span style="color: #DD0000">'Id15'</span><span style="color: #007700">)&nbsp;=&nbsp;</span><span style="color: #0000BB">Membership</span><span style="color: #007700">::</span><span style="color: #0000BB">validateEmail</span><span style="color: #007700">(</span><span style="color: #0000BB">$myList</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getEmail</span><span style="color: #007700">(</span><span style="color: #DD0000">'Id15'</span><span style="color: #007700">));&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code><hr />
</div>There would be a base &quot;Membership class&quot; which can be extended for specific membership needs like 'ForumMembership extends Membership&quot;<br />
<br />
This would eliminate the need for an email utility class. Each calling class would deal with errors in their particular way. This requires that the validation and feedback methods be separate.<br />
<br />
Am I making sense?</div>

]]></content:encoded>
			<category domain="http://www.sitepoint.com/forums/forumdisplay.php?34-PHP">PHP</category>
			<dc:creator>captainccs</dc:creator>
			<guid isPermaLink="true">http://www.sitepoint.com/forums/showthread.php?1070896-Calling-all-OOP-architects</guid>
		</item>
	</channel>
</rss>
