<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet href="/css/rss20.xsl" type="text/xsl"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:pheedo="http://www.pheedo.com/namespace/pheedo">
	<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, 08 Nov 2009 18:36:12 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://sitepointstatic.com/forums/images/misc/rss.jpg</url>
			<title>SitePoint Forums</title>
			<link>http://www.sitepoint.com/forums</link>
		</image>
		<item>
			<title>how can i insert image in header?</title>
			<link>http://www.pheedcontent.com/click.phdo?i=11a8b01d62d8d146f1d46a4368d1fd33</link>
			<pheedo:origLink>http://www.sitepoint.com/forums/showthread.php?t=646189&amp;amp;goto=newpost</pheedo:origLink>
			<pubDate>Sun, 08 Nov 2009 18:20:16 GMT</pubDate>
			<description>hi
friends
i need your help! i wanted to add the image in replace of text and secondly , i wanted to add the adsense unit under the header
can any one help me
this is my blog http://jokewallpaper.blogspot.com/

thanks in advance&lt;br clear=&quot;both&quot; style=&quot;clear: both;&quot;/&gt;
&lt;br clear=&quot;both&quot; style=&quot;clear: both;&quot;/&gt;
&lt;a href=&quot;http://ads.pheedo.com/click.phdo?s=11a8b01d62d8d146f1d46a4368d1fd33&amp;p=1&quot;&gt;&lt;img alt=&quot;&quot; style=&quot;border: 0;&quot; border=&quot;0&quot; src=&quot;http://ads.pheedo.com/img.phdo?s=11a8b01d62d8d146f1d46a4368d1fd33&amp;p=1&quot;/&gt;&lt;/a&gt;
&lt;img alt=&quot;&quot; height=&quot;0&quot; width=&quot;0&quot; border=&quot;0&quot; style=&quot;display:none&quot; src=&quot;http://a.rfihub.com/eus.gif?eui=2225&quot;/&gt;</description>
			<content:encoded><![CDATA[<div>hi<br />
friends<br />
i need your help! i wanted to add the image in replace of text and secondly , i wanted to add the adsense unit under the header<br />
can any one help me<br />
this is my blog <a href="http://jokewallpaper.blogspot.com/" target="_blank">http://jokewallpaper.blogspot.com/</a><br />
<br />
thanks in advance</div>

<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=11a8b01d62d8d146f1d46a4368d1fd33&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=11a8b01d62d8d146f1d46a4368d1fd33&p=1"/></a>
<img alt="" height="0" width="0" border="0" style="display:none" src="http://a.rfihub.com/eus.gif?eui=2225"/>]]></content:encoded>
			<category domain="http://www.sitepoint.com/forums/forumdisplay.php?f=53">CSS</category>
			<dc:creator>aliqayyum</dc:creator>
			<guid isPermaLink="false">http://www.sitepoint.com/forums/showthread.php?t=646189</guid>
		</item>
		<item>
			<title>is there a php validator</title>
			<link>http://www.pheedcontent.com/click.phdo?i=bca0eb4c95c0c441a83b2171db703e1a</link>
			<pheedo:origLink>http://www.sitepoint.com/forums/showthread.php?t=646188&amp;amp;goto=newpost</pheedo:origLink>
			<pubDate>Sun, 08 Nov 2009 18:17:09 GMT</pubDate>
			<description>Does any one knows of a php validator?&lt;br clear=&quot;both&quot; style=&quot;clear: both;&quot;/&gt;
&lt;br clear=&quot;both&quot; style=&quot;clear: both;&quot;/&gt;
&lt;a href=&quot;http://ads.pheedo.com/click.phdo?s=bca0eb4c95c0c441a83b2171db703e1a&amp;p=1&quot;&gt;&lt;img alt=&quot;&quot; style=&quot;border: 0;&quot; border=&quot;0&quot; src=&quot;http://ads.pheedo.com/img.phdo?s=bca0eb4c95c0c441a83b2171db703e1a&amp;p=1&quot;/&gt;&lt;/a&gt;
&lt;img alt=&quot;&quot; height=&quot;0&quot; width=&quot;0&quot; border=&quot;0&quot; style=&quot;display:none&quot; src=&quot;http://a.rfihub.com/eus.gif?eui=2225&quot;/&gt;</description>
			<content:encoded><![CDATA[<div>Does any one knows of a php validator?</div>

<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=bca0eb4c95c0c441a83b2171db703e1a&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=bca0eb4c95c0c441a83b2171db703e1a&p=1"/></a>
<img alt="" height="0" width="0" border="0" style="display:none" src="http://a.rfihub.com/eus.gif?eui=2225"/>]]></content:encoded>
			<category domain="http://www.sitepoint.com/forums/forumdisplay.php?f=34">PHP</category>
			<dc:creator>co.ador</dc:creator>
			<guid isPermaLink="false">http://www.sitepoint.com/forums/showthread.php?t=646188</guid>
		</item>
		<item>
			<title>css/js files not linking properly</title>
			<link>http://www.pheedcontent.com/click.phdo?i=74dab4f9d26198af387deb3a14904e77</link>
			<pheedo:origLink>http://www.sitepoint.com/forums/showthread.php?t=646187&amp;amp;goto=newpost</pheedo:origLink>
			<pubDate>Sun, 08 Nov 2009 18:03:35 GMT</pubDate>
			<description>Hey,

I have this rule


Code:
---------
Options +FollowSymlinks
Options +Indexes&lt;br clear=&quot;both&quot; style=&quot;clear: both;&quot;/&gt;
&lt;br clear=&quot;both&quot; style=&quot;clear: both;&quot;/&gt;
&lt;a href=&quot;http://ads.pheedo.com/click.phdo?s=74dab4f9d26198af387deb3a14904e77&amp;p=1&quot;&gt;&lt;img alt=&quot;&quot; style=&quot;border: 0;&quot; border=&quot;0&quot; src=&quot;http://ads.pheedo.com/img.phdo?s=74dab4f9d26198af387deb3a14904e77&amp;p=1&quot;/&gt;&lt;/a&gt;
&lt;img alt=&quot;&quot; height=&quot;0&quot; width=&quot;0&quot; border=&quot;0&quot; style=&quot;display:none&quot; src=&quot;http://a.rfihub.com/eus.gif?eui=2225&quot;/&gt;</description>
			<content:encoded><![CDATA[<div>Hey,<br />
<br />
I have this rule<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">Options +FollowSymlinks<br />
Options +Indexes<br />
<br />
#news.php?ref=string -&gt; news/string<br />
RewriteEngine on<br />
RewriteRule ^news/([^/]+).php /news.php?ref=$1 [NC]<br />
<br />
#Remove the file extension<br />
RewriteCond %{SCRIPT_FILENAME} !-d<br />
RewriteRule ^([^\.]+)$ $1.php [NC,L]</code><hr />
</div>When I do <a href="http://www.example.com/news/example" target="_blank">www.example.com/news/example</a><br />
<br />
It translate into <a href="http://www.example.com/news.php?ref=example" target="_blank">www.example.com/news.php?ref=example</a><br />
<br />
Problem is that my CSS/JS don't reference correctly when I do that. If I just do <a href="http://www.example.com/news" target="_blank">www.example.com/news</a> it works correctly.<br />
<br />
Is there a way to fix this?<br />
<br />
thanks</div>

<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=74dab4f9d26198af387deb3a14904e77&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=74dab4f9d26198af387deb3a14904e77&p=1"/></a>
<img alt="" height="0" width="0" border="0" style="display:none" src="http://a.rfihub.com/eus.gif?eui=2225"/>]]></content:encoded>
			<category domain="http://www.sitepoint.com/forums/forumdisplay.php?f=199">Apache Configuration</category>
			<dc:creator>9three</dc:creator>
			<guid isPermaLink="false">http://www.sitepoint.com/forums/showthread.php?t=646187</guid>
		</item>
		<item>
			<title>mysql_real_escape_string not working</title>
			<link>http://www.pheedcontent.com/click.phdo?i=1db4fa046ec065166f762fca5931c32a</link>
			<pheedo:origLink>http://www.sitepoint.com/forums/showthread.php?t=646186&amp;amp;goto=newpost</pheedo:origLink>
			<pubDate>Sun, 08 Nov 2009 18:02:10 GMT</pubDate>
			<description><![CDATA[I'm trying to use mysql_real_escape_string to make some user input safe for insertion into a MySQL table.  However, I am getting an error when I do it.  

I've tried it two different ways, and received two different errors.  Here's the first...


PHP:
---------
$conn = DBManager::getConn();...<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=1db4fa046ec065166f762fca5931c32a&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=1db4fa046ec065166f762fca5931c32a&p=1"/></a>
<img alt="" height="0" width="0" border="0" style="display:none" src="http://a.rfihub.com/eus.gif?eui=2225"/>]]></description>
			<content:encoded><![CDATA[<div>I'm trying to use mysql_real_escape_string to make some user input safe for insertion into a MySQL table.  However, I am getting an error when I do it.  <br />
<br />
I've tried it two different ways, and received two different errors.  Here's the first...<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
	<div class="alt2">
		<hr />
		<code style="white-space:nowrap">
		<div dir="ltr" style="text-align:left;">
			<!-- php buffer start --><code><font color="#000000">
<font color="#0000BB">$conn </font><font color="#007700">= </font><font color="#0000BB">DBManager</font><font color="#007700">::</font><font color="#0000BB">getConn</font><font color="#007700">(); <br /></font><font color="#0000BB">$username </font><font color="#007700">= </font><font color="#0000BB">mysql_real_escape_string</font><font color="#007700">(</font><font color="#0000BB">$in_username</font><font color="#007700">); <br /></font><font color="#0000BB"></font>
</font>
</code><!-- php buffer end -->
		</div>
		</code>
		<hr />
	</div>
</div>Note that the first line definitely successfully opens a connection.  Here is the errors I get when I try this..<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\wamp\www\awesome\awesome\includes\usermgr.php on line 187<br />
<br />
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in C:\wamp\www\awesome\awesome\includes\usermgr.php on line 187
			
			<hr />
		</td>
	</tr>
	</table>
</div>Here is the second way I tried it..<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
	<div class="alt2">
		<hr />
		<code style="white-space:nowrap">
		<div dir="ltr" style="text-align:left;">
			<!-- php buffer start --><code><font color="#000000">
<font color="#0000BB">$conn </font><font color="#007700">= </font><font color="#0000BB">DBManager</font><font color="#007700">::</font><font color="#0000BB">getConn</font><font color="#007700">();<br /></font><font color="#0000BB">$username </font><font color="#007700">= </font><font color="#0000BB">$conn</font><font color="#007700">-&gt;</font><font color="#0000BB">mysql_real_escape_string</font><font color="#007700">(</font><font color="#0000BB">$in_username</font><font color="#007700">); <br /></font><font color="#0000BB"></font>
</font>
</code><!-- php buffer end -->
		</div>
		</code>
		<hr />
	</div>
</div>This generates the following error..<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				Fatal error: Call to undefined method mysqli::mysql_real_escape_string() in C:\wamp\www\awesome\awesome\includes\usermgr.php on line 187
			
			<hr />
		</td>
	</tr>
	</table>
</div>Can anyone tell me what I'm doing wrong?</div>

<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=1db4fa046ec065166f762fca5931c32a&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=1db4fa046ec065166f762fca5931c32a&p=1"/></a>
<img alt="" height="0" width="0" border="0" style="display:none" src="http://a.rfihub.com/eus.gif?eui=2225"/>]]></content:encoded>
			<category domain="http://www.sitepoint.com/forums/forumdisplay.php?f=34">PHP</category>
			<dc:creator>anonymousdude</dc:creator>
			<guid isPermaLink="false">http://www.sitepoint.com/forums/showthread.php?t=646186</guid>
		</item>
		<item>
			<title>Recognize this font for me please</title>
			<link>http://www.pheedcontent.com/click.phdo?i=78708ec7b1da9ae0c6d814c9c71e74d6</link>
			<pheedo:origLink>http://www.sitepoint.com/forums/showthread.php?t=646185&amp;amp;goto=newpost</pheedo:origLink>
			<pubDate>Sun, 08 Nov 2009 17:54:04 GMT</pubDate>
			<description>Some montths ago I created this logo using some font but now I dont remember the font I used.

This is the picture:

andrepcg(_dot_)com(_dot_)sapo(_dot_)pt/andrepcg.png&lt;br clear=&quot;both&quot; style=&quot;clear: both;&quot;/&gt;
&lt;br clear=&quot;both&quot; style=&quot;clear: both;&quot;/&gt;
&lt;a href=&quot;http://ads.pheedo.com/click.phdo?s=78708ec7b1da9ae0c6d814c9c71e74d6&amp;p=1&quot;&gt;&lt;img alt=&quot;&quot; style=&quot;border: 0;&quot; border=&quot;0&quot; src=&quot;http://ads.pheedo.com/img.phdo?s=78708ec7b1da9ae0c6d814c9c71e74d6&amp;p=1&quot;/&gt;&lt;/a&gt;
&lt;img alt=&quot;&quot; height=&quot;0&quot; width=&quot;0&quot; border=&quot;0&quot; style=&quot;display:none&quot; src=&quot;http://a.rfihub.com/eus.gif?eui=2225&quot;/&gt;</description>
			<content:encoded><![CDATA[<div>Some montths ago I created this logo using some font but now I dont remember the font I used.<br />
<br />
This is the picture:<br />
<br />
andrepcg(_dot_)com(_dot_)sapo(_dot_)pt/andrepcg.png</div>

<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=78708ec7b1da9ae0c6d814c9c71e74d6&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=78708ec7b1da9ae0c6d814c9c71e74d6&p=1"/></a>
<img alt="" height="0" width="0" border="0" style="display:none" src="http://a.rfihub.com/eus.gif?eui=2225"/>]]></content:encoded>
			<category domain="http://www.sitepoint.com/forums/forumdisplay.php?f=8">Graphics</category>
			<dc:creator>andrepcg</dc:creator>
			<guid isPermaLink="false">http://www.sitepoint.com/forums/showthread.php?t=646185</guid>
		</item>
		<item>
			<title><![CDATA[How a counter of users ? such as --->   (231 Viewing)]]></title>
			<link>http://www.pheedcontent.com/click.phdo?i=6ace9dd289ec8d83ef98f63e09224431</link>
			<pheedo:origLink>http://www.sitepoint.com/forums/showthread.php?t=646184&amp;amp;goto=newpost</pheedo:origLink>
			<pubDate>Sun, 08 Nov 2009 17:35:27 GMT</pubDate>
			<description>I want to count how many users are actually viewing the page, How is that possible?
Thank you guys!&lt;br clear=&quot;both&quot; style=&quot;clear: both;&quot;/&gt;
&lt;br clear=&quot;both&quot; style=&quot;clear: both;&quot;/&gt;
&lt;a href=&quot;http://ads.pheedo.com/click.phdo?s=6ace9dd289ec8d83ef98f63e09224431&amp;p=1&quot;&gt;&lt;img alt=&quot;&quot; style=&quot;border: 0;&quot; border=&quot;0&quot; src=&quot;http://ads.pheedo.com/img.phdo?s=6ace9dd289ec8d83ef98f63e09224431&amp;p=1&quot;/&gt;&lt;/a&gt;
&lt;img alt=&quot;&quot; height=&quot;0&quot; width=&quot;0&quot; border=&quot;0&quot; style=&quot;display:none&quot; src=&quot;http://a.rfihub.com/eus.gif?eui=2225&quot;/&gt;</description>
			<content:encoded><![CDATA[<div>I want to count how many users are actually viewing the page, How is that possible?<br />
Thank you guys!</div>

<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=6ace9dd289ec8d83ef98f63e09224431&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=6ace9dd289ec8d83ef98f63e09224431&p=1"/></a>
<img alt="" height="0" width="0" border="0" style="display:none" src="http://a.rfihub.com/eus.gif?eui=2225"/>]]></content:encoded>
			<category domain="http://www.sitepoint.com/forums/forumdisplay.php?f=34">PHP</category>
			<dc:creator>co.ador</dc:creator>
			<guid isPermaLink="false">http://www.sitepoint.com/forums/showthread.php?t=646184</guid>
		</item>
		<item>
			<title><![CDATA[Changing &eacute; into html entities without touching the html elements ?]]></title>
			<link>http://www.pheedcontent.com/click.phdo?i=9c8604ab3b59a3f2ea6e14e022bd386a</link>
			<pheedo:origLink>http://www.sitepoint.com/forums/showthread.php?t=646183&amp;amp;goto=newpost</pheedo:origLink>
			<pubDate>Sun, 08 Nov 2009 17:28:52 GMT</pubDate>
			<description><![CDATA[Good day to you all,
          I'm working on a script which take the text from a txt file and add his content to an php page.
          I have no problem with that part, see code below :


PHP:
---------

$textsec = file_get_contents('text.txt');
echo nl2br($textsec);<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=9c8604ab3b59a3f2ea6e14e022bd386a&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=9c8604ab3b59a3f2ea6e14e022bd386a&p=1"/></a>
<img alt="" height="0" width="0" border="0" style="display:none" src="http://a.rfihub.com/eus.gif?eui=2225"/>]]></description>
			<content:encoded><![CDATA[<div>Good day to you all,<br />
          I'm working on a script which take the text from a txt file and add his content to an php page.<br />
          I have no problem with that part, see code below :<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
	<div class="alt2">
		<hr />
		<code style="white-space:nowrap">
		<div dir="ltr" style="text-align:left;">
			<!-- php buffer start --><code><font color="#000000">
<font color="#0000BB"><br />$textsec </font><font color="#007700">= </font><font color="#0000BB">file_get_contents</font><font color="#007700">(</font><font color="#DD0000">'text.txt'</font><font color="#007700">);<br />echo </font><font color="#0000BB">nl2br</font><font color="#007700">(</font><font color="#0000BB">$textsec</font><font color="#007700">); <br /></font><font color="#0000BB"></font>
</font>
</code><!-- php buffer end -->
		</div>
		</code>
		<hr />
	</div>
</div><br />
This page can include &lt;b&gt; &lt;u&gt;... html element.<br />
<br />
Where my problem start is that it's possible that I get some :<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
	<div class="alt2">
		<hr />
		<code style="white-space:nowrap">
		<div dir="ltr" style="text-align:left;">
			<!-- php buffer start --><code><font color="#000000">
<font color="#0000BB"></font><font color="#007700">&amp;</font><font color="#0000BB">eacute</font><font color="#007700">;<br />&amp;</font><font color="#0000BB">agrave</font><font color="#007700">;<br /><br />..</font><font color="#0000BB">words with accent</font><font color="#007700">.. <br /></font><font color="#0000BB"></font>
</font>
</code><!-- php buffer end -->
		</div>
		</code>
		<hr />
	</div>
</div>How can I convert them to their respective html entitie code without touching my html element ?<br />
<br />
Thanks!</div>

<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=9c8604ab3b59a3f2ea6e14e022bd386a&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=9c8604ab3b59a3f2ea6e14e022bd386a&p=1"/></a>
<img alt="" height="0" width="0" border="0" style="display:none" src="http://a.rfihub.com/eus.gif?eui=2225"/>]]></content:encoded>
			<category domain="http://www.sitepoint.com/forums/forumdisplay.php?f=34">PHP</category>
			<dc:creator>Peuplarchie</dc:creator>
			<guid isPermaLink="false">http://www.sitepoint.com/forums/showthread.php?t=646183</guid>
		</item>
		<item>
			<title>Random username</title>
			<link>http://www.pheedcontent.com/click.phdo?i=be3dc2cf54beae3bb13fd18dc0375cdc</link>
			<pheedo:origLink>http://www.sitepoint.com/forums/showthread.php?t=646182&amp;amp;goto=newpost</pheedo:origLink>
			<pubDate>Sun, 08 Nov 2009 17:25:24 GMT</pubDate>
			<description><![CDATA[Hey,

I am taking users through a registration section on a client website. When the submit button is clicked, i need to create a ransom username for the user and insert it into the database table. I am doing a simple INSERT as so...


PHP:
---------
				$insert = "INSERT INTO tbl_members(username,...<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=be3dc2cf54beae3bb13fd18dc0375cdc&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=be3dc2cf54beae3bb13fd18dc0375cdc&p=1"/></a>
<img alt="" height="0" width="0" border="0" style="display:none" src="http://a.rfihub.com/eus.gif?eui=2225"/>]]></description>
			<content:encoded><![CDATA[<div>Hey,<br />
<br />
I am taking users through a registration section on a client website. When the submit button is clicked, i need to create a ransom username for the user and insert it into the database table. I am doing a simple INSERT as so...<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
	<div class="alt2">
		<hr />
		<code style="white-space:nowrap">
		<div dir="ltr" style="text-align:left;">
			<!-- php buffer start --><code><font color="#000000">
<font color="#0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$insert </font><font color="#007700">= </font><font color="#DD0000">"INSERT INTO tbl_members(username, password, email, gender, postcode, DOB, education, date_added) VALUES <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(<br />// Insert values here<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)"</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$add_member </font><font color="#007700">= </font><font color="#0000BB">mysql_query</font><font color="#007700">(</font><font color="#0000BB">$insert</font><font color="#007700">); <br /></font><font color="#0000BB"></font>
</font>
</code><!-- php buffer end -->
		</div>
		</code>
		<hr />
	</div>
</div>Now the username needs to be a random username, and cannot be the same as any other usernames in the same table..<br />
<br />
How can i do this?<br />
<br />
Regards</div>

<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=be3dc2cf54beae3bb13fd18dc0375cdc&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=be3dc2cf54beae3bb13fd18dc0375cdc&p=1"/></a>
<img alt="" height="0" width="0" border="0" style="display:none" src="http://a.rfihub.com/eus.gif?eui=2225"/>]]></content:encoded>
			<category domain="http://www.sitepoint.com/forums/forumdisplay.php?f=34">PHP</category>
			<dc:creator>billy_111</dc:creator>
			<guid isPermaLink="false">http://www.sitepoint.com/forums/showthread.php?t=646182</guid>
		</item>
		<item>
			<title>Clarification on closures?</title>
			<link>http://www.pheedcontent.com/click.phdo?i=46cdf76f8341652e2f81ce25656a9a9b</link>
			<pheedo:origLink>http://www.sitepoint.com/forums/showthread.php?t=646181&amp;amp;goto=newpost</pheedo:origLink>
			<pubDate>Sun, 08 Nov 2009 16:47:57 GMT</pubDate>
			<description>Hi,

Trying slowly but surely to get to grips with closures. My question really is regarding the differences between function declaration and invocation.

If I look at Example 1(below), it seems to me that when the function is called the Closure1 inner function is only be declared at that time....&lt;br clear=&quot;both&quot; style=&quot;clear: both;&quot;/&gt;
&lt;br clear=&quot;both&quot; style=&quot;clear: both;&quot;/&gt;
&lt;a href=&quot;http://ads.pheedo.com/click.phdo?s=46cdf76f8341652e2f81ce25656a9a9b&amp;p=1&quot;&gt;&lt;img alt=&quot;&quot; style=&quot;border: 0;&quot; border=&quot;0&quot; src=&quot;http://ads.pheedo.com/img.phdo?s=46cdf76f8341652e2f81ce25656a9a9b&amp;p=1&quot;/&gt;&lt;/a&gt;
&lt;img alt=&quot;&quot; height=&quot;0&quot; width=&quot;0&quot; border=&quot;0&quot; style=&quot;display:none&quot; src=&quot;http://a.rfihub.com/eus.gif?eui=2225&quot;/&gt;</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
Trying slowly but surely to get to grips with closures. My question really is regarding the differences between function declaration and invocation.<br />
<br />
If I look at Example 1(below), it seems to me that when the function is called the Closure1 inner function is only be declared at that time. Rather than invoked.<br />
<br />
From what I've read when an inner function is declared a function object is created and it is given the scope of the context in which it is declared i.e. in this case Example1.<br />
<br />
So does that mean the scope chain is assigned to it's scope property, and that the scope chain points to the Example1's activation/variable object? Does it also mean that because of this reference Example1's activation object is saved from garbage collection?<br />
<br />
I think my real question is about the preservation of the outer function's variables. In this regard does it make a difference whether an inner function is invoked or declared? It seems to me the answer is no.<br />
<br />
Additionally I've tried to breakdown the script example with comments at the bottom. If my understanding is way off I would love to know.<br />
<br />
Hopefully I'm not talking too much nonsense here. Would like to be 100% on this.<br />
<br />
Thanks<br />
<br />
RLM<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Java Code:</div>
	<pre class="alt2" style="margin:0px; padding:6px; border:1px inset; width:480px;max-width:480px;height:516px; overflow:auto"><div dir="ltr" style="text-align:left;"><div style="background:#f0f0f0;"><span style="color: #808080; font-style: italic;">// ------------- Closure Example 1</span></div><div style="">function Example1<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div><div style="background:#f0f0f0;">&nbsp; &nbsp; var a=<span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span>;</div><div style="">&nbsp; &nbsp; <span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span>var num=<span style="color: #cc66cc;">0</span>; num&lt;<span style="color: #cc66cc;">10</span>;num++<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div><div style="background:#f0f0f0;">&nbsp; &nbsp; &nbsp; &nbsp; a<span style="color: #66cc66;">&#91;</span>num<span style="color: #66cc66;">&#93;</span> = function<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><span style="color: #808080; font-style: italic;">// Closure1</span></div><div style="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">return</span> num;</div><div style="background:#f0f0f0;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>;</div><div style="">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div><div style="background:#f0f0f0;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">return</span> a;</div><div style=""><span style="color: #66cc66;">&#125;</span></div><div style="background:#f0f0f0;"><span style="color: #808080; font-style: italic;">// ------------- Closure Example 2</span></div><div style="">function Example2<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div><div style="background:#f0f0f0;">&nbsp; &nbsp; var a = <span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span>;</div><div style="">&nbsp; &nbsp; <span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span>var num=<span style="color: #cc66cc;">0</span>; num&lt;<span style="color: #cc66cc;">10</span>;num++<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div><div style="background:#f0f0f0;">&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;a<span style="color: #66cc66;">&#91;</span>num<span style="color: #66cc66;">&#93;</span> = <span style="color: #66cc66;">&#40;</span>function<span style="color: #66cc66;">&#40;</span>numVal<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><span style="color: #808080; font-style: italic;">// Closure 1</span></div><div style="">&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">return</span> function<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><span style="color: #808080; font-style: italic;">// Closure 2</span></div><div style="background:#f0f0f0;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">return</span> numVal;</div><div style="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#125;</span></div><div style="background:#f0f0f0;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#40;</span>num<span style="color: #66cc66;">&#41;</span>;</div><div style="">&nbsp; &nbsp;&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div><div style="background:#f0f0f0;">&nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">return</span> a;</div><div style=""><span style="color: #66cc66;">&#125;</span></div><div style="background:#f0f0f0;">newArray = Example1<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div><div style="">newArray2 = Example2<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div><div style="background:#f0f0f0;"><span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span>x=<span style="color: #cc66cc;">0</span>; x&lt;<span style="color: #cc66cc;">10</span>; x++<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div><div style="">&nbsp; &nbsp; console.<span style="color: #006600;">log</span> <span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'Example1 : '</span>+newArray<span style="color: #66cc66;">&#91;</span>x<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>+<span style="color: #ff0000;">'&nbsp; &nbsp;Example2 : '</span>+newArray2<span style="color: #66cc66;">&#91;</span>x<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</div><div style="background:#f0f0f0;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div><div style="">&nbsp;</div><div style="background:#f0f0f0;">&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// Output</span></div><div style="">&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// Example1: 10&nbsp; Example2 : 0</span></div><div style="background:#f0f0f0;">&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// Example1: 10&nbsp; Example2 : 1</span></div><div style="">&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// Example1: 10&nbsp; Example2 : 2</span></div><div style="background:#f0f0f0;">&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// ...</span></div><div style="">&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// Example1: 10&nbsp; Example2 : 9</span></div><div style="background:#f0f0f0;">&nbsp;</div><div style=""><span style="color: #808080; font-style: italic;">// Example 1</span></div><div style="background:#f0f0f0;"><span style="color: #808080; font-style: italic;">// Closure 1 returns a reference to the variable num. The reference to num comes from the outer function Example1.</span></div><div style=""><span style="color: #808080; font-style: italic;">// Due to the fact it's a reference any changes made to num in the outer function during it's execution will be</span></div><div style="background:#f0f0f0;"><span style="color: #808080; font-style: italic;">// reflected in Closure1's referenced variable. That's why the functions in array 'a' return the last value of num, which is 10.</span></div><div style="">&nbsp;</div><div style="background:#f0f0f0;"><span style="color: #808080; font-style: italic;">// Example 2</span></div><div style=""><span style="color: #808080; font-style: italic;">// To overcome the problem of Example 1 we pass the value of num directly into the inner function Closure1. </span></div><div style="background:#f0f0f0;"><span style="color: #808080; font-style: italic;">// The value is passed as the named argument numVal.</span></div><div style=""><span style="color: #808080; font-style: italic;">// The innermost function Closure2 which is returned, holds a reference to numVal.</span></div><div style="background:#f0f0f0;"><span style="color: #808080; font-style: italic;">// Each time Closure 1 is called a new and separate numVal argument is created.</span></div><div style=""><span style="color: #808080; font-style: italic;">// Therefore equally the returned numVal reference from Closure 2 is a different reference each time.</span></div></div></pre>
</div></div>

<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=46cdf76f8341652e2f81ce25656a9a9b&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=46cdf76f8341652e2f81ce25656a9a9b&p=1"/></a>
<img alt="" height="0" width="0" border="0" style="display:none" src="http://a.rfihub.com/eus.gif?eui=2225"/>]]></content:encoded>
			<category domain="http://www.sitepoint.com/forums/forumdisplay.php?f=15">JavaScript</category>
			<dc:creator>RLM2008</dc:creator>
			<guid isPermaLink="false">http://www.sitepoint.com/forums/showthread.php?t=646181</guid>
		</item>
		<item>
			<title>HELP! Cookie to show Div Once per 2 Days</title>
			<link>http://www.pheedcontent.com/click.phdo?i=9973d05c94e14c6c1ba84dd0f36dbb8f</link>
			<pheedo:origLink>http://www.sitepoint.com/forums/showthread.php?t=646180&amp;amp;goto=newpost</pheedo:origLink>
			<pubDate>Sun, 08 Nov 2009 16:37:34 GMT</pubDate>
			<description><![CDATA[Here's my Code:

Code:
---------
<div id="divTopLeft" style="position:absolute">
<!-- Start - put your content here --->
<!-- Begin XtremeTop100 code -->
 <a href="http://www.xtremetop100.com/in.php?site=1132295153" target="_blank">
 <img src="http://www.xtremeTop100.com/votenew.jpg" border="0"...<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=9973d05c94e14c6c1ba84dd0f36dbb8f&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=9973d05c94e14c6c1ba84dd0f36dbb8f&p=1"/></a>
<img alt="" height="0" width="0" border="0" style="display:none" src="http://a.rfihub.com/eus.gif?eui=2225"/>]]></description>
			<content:encoded><![CDATA[<div>Here's my Code:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;div id=&quot;divTopLeft&quot; style=&quot;position:absolute&quot;&gt;<br />
&lt;!-- Start - put your content here ---&gt;<br />
&lt;!-- Begin XtremeTop100 code --&gt;<br />
&nbsp;&lt;a href=&quot;http://www.xtremetop100.com/in.php?site=1132295153&quot; target=&quot;_blank&quot;&gt;<br />
&nbsp;&lt;img src=&quot;http://www.xtremeTop100.com/votenew.jpg&quot; border=&quot;0&quot; alt=&quot;PSP0P&quot;&gt;&lt;/a&gt;<br />
&nbsp;&lt;!-- End XtremeTop100 code --&gt;<br />
&lt;!-- End - put your content here ---&gt;<br />
&lt;/div&gt;<br />
<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
var ns = (navigator.appName.indexOf(&quot;Netscape&quot;) != -1);<br />
var d = document;<br />
function JSFX_FloatDiv(id, sx, sy)<br />
{<br />
&nbsp;var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];<br />
&nbsp;var px = document.layers ? &quot;&quot; : &quot;px&quot;;<br />
&nbsp;window[id + &quot;_obj&quot;] = el;<br />
&nbsp;if(d.layers)el.style=el;<br />
&nbsp;el.cx = el.sx = sx;el.cy = el.sy = sy;<br />
&nbsp;el.sP=function(x,y){this.style.left=x+px;this.style.top=y+px;};<br />
<br />
&nbsp;el.floatIt=function()<br />
&nbsp;{<br />
&nbsp;var pX, pY;<br />
&nbsp;pX = (this.sx &gt;= 0) ? 0 : ns ? innerWidth : <br />
&nbsp;document.documentElement &amp;&amp; document.documentElement.clientWidth ? <br />
&nbsp;document.documentElement.clientWidth : document.body.clientWidth;<br />
&nbsp;pY = ns ? pageYOffset : document.documentElement &amp;&amp; document.documentElement.scrollTop ? <br />
&nbsp;document.documentElement.scrollTop : document.body.scrollTop;<br />
&nbsp;if(this.sy&lt;0) <br />
&nbsp;pY += ns ? innerHeight : document.documentElement &amp;&amp; document.documentElement.clientHeight ? <br />
&nbsp;document.documentElement.clientHeight : document.body.clientHeight;<br />
&nbsp;this.cx += (pX + this.sx - this.cx)/8;this.cy += (pY + this.sy - this.cy)/8;<br />
&nbsp;this.sP(this.cx, this.cy);<br />
&nbsp;setTimeout(this.id + &quot;_obj.floatIt()&quot;, 40);<br />
&nbsp;}<br />
&nbsp;return el;<br />
}<br />
JSFX_FloatDiv(&quot;divTopLeft&quot;, 700,500).floatIt();<br />
&lt;/script&gt;</code><hr />
</div>Can someone help me insert a cookie code in there so that it only works once in 2 days? Or even once per browser session.<br />
<br />
Thanks :D</div>

<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=9973d05c94e14c6c1ba84dd0f36dbb8f&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=9973d05c94e14c6c1ba84dd0f36dbb8f&p=1"/></a>
<img alt="" height="0" width="0" border="0" style="display:none" src="http://a.rfihub.com/eus.gif?eui=2225"/>]]></content:encoded>
			<category domain="http://www.sitepoint.com/forums/forumdisplay.php?f=15">JavaScript</category>
			<dc:creator>PSP0P</dc:creator>
			<guid isPermaLink="false">http://www.sitepoint.com/forums/showthread.php?t=646180</guid>
		</item>
		<item>
			<title>java regex search sentence and ignore some words</title>
			<link>http://www.pheedcontent.com/click.phdo?i=d8211bb3330bd758b4d8b0a1222c128a</link>
			<pheedo:origLink>http://www.sitepoint.com/forums/showthread.php?t=646178&amp;amp;goto=newpost</pheedo:origLink>
			<pubDate>Sun, 08 Nov 2009 16:00:52 GMT</pubDate>
			<description><![CDATA[Hi all,

Can anyone tell me, how can i create regex pattern for this situation,

my text:

String txt = "public static final String name"


I want to just select "name" from the tst(here public static final and String shuld be optional)<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=d8211bb3330bd758b4d8b0a1222c128a&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=d8211bb3330bd758b4d8b0a1222c128a&p=1"/></a>
<img alt="" height="0" width="0" border="0" style="display:none" src="http://a.rfihub.com/eus.gif?eui=2225"/>]]></description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
Can anyone tell me, how can i create regex pattern for this situation,<br />
<br />
my text:<br />
<br />
String txt = &quot;public static final String name&quot;<br />
<br />
<br />
I want to just select &quot;name&quot; from the tst(here public static final and String shuld be optional)<br />
<br />
<br />
Thanks,<br />
<br />
Prasad</div>

<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=d8211bb3330bd758b4d8b0a1222c128a&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=d8211bb3330bd758b4d8b0a1222c128a&p=1"/></a>
<img alt="" height="0" width="0" border="0" style="display:none" src="http://a.rfihub.com/eus.gif?eui=2225"/>]]></content:encoded>
			<category domain="http://www.sitepoint.com/forums/forumdisplay.php?f=35">Java and JSP</category>
			<dc:creator>mr.zoysa</dc:creator>
			<guid isPermaLink="false">http://www.sitepoint.com/forums/showthread.php?t=646178</guid>
		</item>
		<item>
			<title>Help with pop ups</title>
			<link>http://www.pheedcontent.com/click.phdo?i=8fff6cc5bdb2d20f5caecad09b527d04</link>
			<pheedo:origLink>http://www.sitepoint.com/forums/showthread.php?t=646174&amp;amp;goto=newpost</pheedo:origLink>
			<pubDate>Sun, 08 Nov 2009 14:46:33 GMT</pubDate>
			<description><![CDATA[Can somebody give me a bit of help with the below code. The problem is that it works fine for the first pop up box but not for the other(s). I think it has something to do with the script using the getelementbyid. Can anybody help?


Code:
---------
<script type="text/javascript">
var appearance =...<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=8fff6cc5bdb2d20f5caecad09b527d04&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=8fff6cc5bdb2d20f5caecad09b527d04&p=1"/></a>
<img alt="" height="0" width="0" border="0" style="display:none" src="http://a.rfihub.com/eus.gif?eui=2225"/>]]></description>
			<content:encoded><![CDATA[<div>Can somebody give me a bit of help with the below code. The problem is that it works fine for the first pop up box but not for the other(s). I think it has something to do with the script using the getelementbyid. Can anybody help?<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;script type=&quot;text/javascript&quot;&gt;<br />
var appearance = &quot;notShown&quot;<br />
function show()<br />
{<br />
if (appearance == &quot;notShown&quot;)<br />
{<br />
document.getElementById('P1').style.display = &quot;inline&quot;;<br />
appearance = &quot;shown&quot;;<br />
}<br />
}<br />
<br />
function remove()<br />
{<br />
document.getElementById('P1').style.display = &quot;none&quot;;<br />
appearance = &quot;notShown&quot;; <br />
}<br />
&lt;/script&gt;<br />
<br />
<br />
&lt;style type=&quot;text/css&quot;&gt;<br />
p#P1 { width: 319px; height: 169px; display:none; background-color: grey; position:absolute;z-index:2; }<br />
<br />
p#P1 b { padding: 10px; float: left; }<br />
<br />
p#P1 span&nbsp; { width: 300px; float: left; padding: 10px;}<br />
<br />
button.close {float:right; margin: 5px; }<br />
&lt;/style&gt;<br />
<br />
<br />
&lt;a href=&quot;#&quot; onclick=&quot;show()&quot;&gt;box 1&lt;/a&gt;<br />
<br />
&lt;p id=&quot;P1&quot;&gt;&lt;b&gt;Lorem Ipsum&lt;/b&gt;&lt;button type=&quot;button&quot; class=&quot;close&quot; onclick=&quot;remove()&quot;&gt;X&lt;/button&gt;<br />
<br />
&lt;span&gt;Lorem ipsum ut volumus antiopam pericula vix, per nulla oblique alienum ad. No ullum convenire eos. Sit tota iusto ut, ex mentitum voluptatum inciderint est. Ex dico idque argumentum eam, ei elit meliore definiebas per, nam soleat aliquando ad.&lt;/span&gt;<br />
<br />
&lt;/p&gt;<br />
<br />
<br />
&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;<br />
<br />
<br />
&lt;a href=&quot;#&quot; onclick=&quot;show()&quot;&gt;box 2&lt;/a&gt;<br />
<br />
&lt;p id=&quot;P1&quot;&gt;&lt;b&gt;Lorem Ipsum&lt;/b&gt;&lt;button type=&quot;button&quot; class=&quot;close&quot; onclick=&quot;remove()&quot;&gt;X&lt;/button&gt;<br />
<br />
&lt;span&gt;Lorem ipsum ut volumus antiopam pericula vix, per nulla oblique alienum ad. No ullum convenire eos. Sit tota iusto ut, ex mentitum voluptatum inciderint est. Ex dico idque argumentum eam, ei elit meliore definiebas per, nam soleat aliquando ad.&lt;/span&gt;</code><hr />
</div></div>

<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=8fff6cc5bdb2d20f5caecad09b527d04&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=8fff6cc5bdb2d20f5caecad09b527d04&p=1"/></a>
<img alt="" height="0" width="0" border="0" style="display:none" src="http://a.rfihub.com/eus.gif?eui=2225"/>]]></content:encoded>
			<category domain="http://www.sitepoint.com/forums/forumdisplay.php?f=15">JavaScript</category>
			<dc:creator>murrayprice</dc:creator>
			<guid isPermaLink="false">http://www.sitepoint.com/forums/showthread.php?t=646174</guid>
		</item>
		<item>
			<title>Dabbling in MVC</title>
			<link>http://www.pheedcontent.com/click.phdo?i=5adc380406e0dc707237176497823955</link>
			<pheedo:origLink>http://www.sitepoint.com/forums/showthread.php?t=646171&amp;amp;goto=newpost</pheedo:origLink>
			<pubDate>Sun, 08 Nov 2009 14:28:40 GMT</pubDate>
			<description><![CDATA[I'm looking to get deeper into MVC and began dabbling a bit.  Am I correct in thinking that to access a server control you choose "convert to web application" which creates the designer files?  Is there any downside to taking this step?  

Of course adding a server control to an MVC app adds the...<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=5adc380406e0dc707237176497823955&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=5adc380406e0dc707237176497823955&p=1"/></a>
<img alt="" height="0" width="0" border="0" style="display:none" src="http://a.rfihub.com/eus.gif?eui=2225"/>]]></description>
			<content:encoded><![CDATA[<div>I'm looking to get deeper into MVC and began dabbling a bit.  Am I correct in thinking that to access a server control you choose &quot;convert to web application&quot; which creates the designer files?  Is there any downside to taking this step?  <br />
<br />
Of course adding a server control to an MVC app adds the viewstate to the page.  Is that inappropriate for an MVC app?</div>

<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=5adc380406e0dc707237176497823955&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=5adc380406e0dc707237176497823955&p=1"/></a>
<img alt="" height="0" width="0" border="0" style="display:none" src="http://a.rfihub.com/eus.gif?eui=2225"/>]]></content:encoded>
			<category domain="http://www.sitepoint.com/forums/forumdisplay.php?f=141">.NET</category>
			<dc:creator>NAWA-mark</dc:creator>
			<guid isPermaLink="false">http://www.sitepoint.com/forums/showthread.php?t=646171</guid>
		</item>
		<item>
			<title>New Google ranking: 59th to 3rd after my mark-up makeover?</title>
			<link>http://www.pheedcontent.com/click.phdo?i=f37aefb87c1698fd8120ff096da59e4a</link>
			<pheedo:origLink>http://www.sitepoint.com/forums/showthread.php?t=646167&amp;amp;goto=newpost</pheedo:origLink>
			<pubDate>Sun, 08 Nov 2009 14:11:27 GMT</pubDate>
			<description><![CDATA[For both of my two main target keywords, I have jumped to near the top of the listing. 

My Google Rankings two weeks ago:
59th for a worldwide search. Today I'm third.
33rd for a UK search. Today I'm second.

(24th on Bing for a UK search but I never recorded where I was on their pages).

I...<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=f37aefb87c1698fd8120ff096da59e4a&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=f37aefb87c1698fd8120ff096da59e4a&p=1"/></a>
<img alt="" height="0" width="0" border="0" style="display:none" src="http://a.rfihub.com/eus.gif?eui=2225"/>]]></description>
			<content:encoded><![CDATA[<div>For both of my two main target keywords, I have jumped to near the top of the listing. <br />
<br />
My Google Rankings two weeks ago:<br />
59th for a worldwide search. Today I'm third.<br />
33rd for a UK search. Today I'm second.<br />
<br />
(24th on Bing for a UK search but I never recorded where I was on their pages).<br />
<br />
I changed all the markup to valid xhtml (style sheets aren't valid). I got rid of javascript for menu mouseovers and instead used an ordered list with css to give feedback.<br />
<br />
I added a few more testimonials to the testimonials-page (one of only seven content pages), which probably added about 15-20% to the total text on the site. <br />
<br />
I completely got rid of two pages dedicated to outbound links - although I need to take a look at those and perhaps put a few links back once I've taken a look if some were reciprocal arrangements. These two links pages weren't directly linked by my home page, they were on a third-tier... home page &gt; page in main menu &gt; links page.<br />
<br />
And, for what it's worth, I changed the address to hcard format.<br />
<br />
So I'm interested in what might have had the most effect. Although I'm a little puzzled because the listing in google still uses the the old page title followed by the old meta description, and I would have thought that if the site had been re-indexed that the new page title and meta information would have been used?</div>

<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=f37aefb87c1698fd8120ff096da59e4a&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=f37aefb87c1698fd8120ff096da59e4a&p=1"/></a>
<img alt="" height="0" width="0" border="0" style="display:none" src="http://a.rfihub.com/eus.gif?eui=2225"/>]]></content:encoded>
			<category domain="http://www.sitepoint.com/forums/forumdisplay.php?f=3">Search Engine Optimization</category>
			<dc:creator>Brocberry</dc:creator>
			<guid isPermaLink="false">http://www.sitepoint.com/forums/showthread.php?t=646167</guid>
		</item>
		<item>
			<title>Top margin in Firefox and IE8</title>
			<link>http://www.pheedcontent.com/click.phdo?i=3caedf78ae8a314b90c09330a0a8b873</link>
			<pheedo:origLink>http://www.sitepoint.com/forums/showthread.php?t=646160&amp;amp;goto=newpost</pheedo:origLink>
			<pubDate>Sun, 08 Nov 2009 13:01:36 GMT</pubDate>
			<description>Hey,

I have an issue with my homepage. Take a look at this page:-

http://www.fatzk.com/fatz/index.php

Look at the top right #sign-up element. In IE7 it looks about right. But in Firefox and IE8 it pushes the navigation down. I simply want it to have a margin at the top and bottom giving it some...&lt;br clear=&quot;both&quot; style=&quot;clear: both;&quot;/&gt;
&lt;br clear=&quot;both&quot; style=&quot;clear: both;&quot;/&gt;
&lt;a href=&quot;http://ads.pheedo.com/click.phdo?s=3caedf78ae8a314b90c09330a0a8b873&amp;p=1&quot;&gt;&lt;img alt=&quot;&quot; style=&quot;border: 0;&quot; border=&quot;0&quot; src=&quot;http://ads.pheedo.com/img.phdo?s=3caedf78ae8a314b90c09330a0a8b873&amp;p=1&quot;/&gt;&lt;/a&gt;
&lt;img alt=&quot;&quot; height=&quot;0&quot; width=&quot;0&quot; border=&quot;0&quot; style=&quot;display:none&quot; src=&quot;http://a.rfihub.com/eus.gif?eui=2225&quot;/&gt;</description>
			<content:encoded><![CDATA[<div>Hey,<br />
<br />
I have an issue with my homepage. Take a look at this page:-<br />
<br />
<a href="http://www.fatzk.com/fatz/index.php" target="_blank">http://www.fatzk.com/fatz/index.php</a><br />
<br />
Look at the top right #sign-up element. In IE7 it looks about right. But in Firefox and IE8 it pushes the navigation down. I simply want it to have a margin at the top and bottom giving it some space..<br />
<br />
Is there a quick fix for this?<br />
<br />
Regards</div>

<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=3caedf78ae8a314b90c09330a0a8b873&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=3caedf78ae8a314b90c09330a0a8b873&p=1"/></a>
<img alt="" height="0" width="0" border="0" style="display:none" src="http://a.rfihub.com/eus.gif?eui=2225"/>]]></content:encoded>
			<category domain="http://www.sitepoint.com/forums/forumdisplay.php?f=53">CSS</category>
			<dc:creator>billy_111</dc:creator>
			<guid isPermaLink="false">http://www.sitepoint.com/forums/showthread.php?t=646160</guid>
		</item>
	</channel>
</rss>