<?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>Sat, 21 Nov 2009 21:01:46 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>Foreach xml looping</title>
			<link>http://www.pheedcontent.com/click.phdo?i=4e78abe9545828c74bd0343723eea794</link>
			<pheedo:origLink>http://www.sitepoint.com/forums/showthread.php?t=648280&amp;amp;goto=newpost</pheedo:origLink>
			<pubDate>Sat, 21 Nov 2009 20:56:18 GMT</pubDate>
			<description><![CDATA[Hi Guys,

I have connected to amazon's API which brings me back an xml file of data.

The typical xml looks like:


PHP:
---------
- <Cart><br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=4e78abe9545828c74bd0343723eea794&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=4e78abe9545828c74bd0343723eea794&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 Guys,<br />
<br />
I have connected to amazon's API which brings me back an xml file of data.<br />
<br />
The typical xml looks like:<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"></font><font color="#007700">- &lt;</font><font color="#0000BB">Cart</font><font color="#007700">&gt;<br />- &lt;</font><font color="#0000BB">Request</font><font color="#007700">&gt;<br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">IsValid</font><font color="#007700">&gt;</font><font color="#0000BB">True</font><font color="#007700">&lt;/</font><font color="#0000BB">IsValid</font><font color="#007700">&gt; <br />- &lt;</font><font color="#0000BB">CartGetRequest</font><font color="#007700">&gt;<br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">CartId</font><font color="#007700">&gt;</font><font color="#0000BB">279</font><font color="#007700">-</font><font color="#0000BB">2081375</font><font color="#007700">-</font><font color="#0000BB">2479704</font><font color="#007700">&lt;/</font><font color="#0000BB">CartId</font><font color="#007700">&gt; <br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">HMAC</font><font color="#007700">&gt;</font><font color="#0000BB">m06qU</font><font color="#007700">/</font><font color="#0000BB">U1YoqmUqbkpzz9yHrC4Bs</font><font color="#007700">=&lt;/</font><font color="#0000BB">HMAC</font><font color="#007700">&gt; <br />&nbsp;&nbsp;&lt;/</font><font color="#0000BB">CartGetRequest</font><font color="#007700">&gt;<br />&nbsp;&nbsp;&lt;/</font><font color="#0000BB">Request</font><font color="#007700">&gt;<br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">CartId</font><font color="#007700">&gt;</font><font color="#0000BB">279</font><font color="#007700">-</font><font color="#0000BB">2081375</font><font color="#007700">-</font><font color="#0000BB">2479704</font><font color="#007700">&lt;/</font><font color="#0000BB">CartId</font><font color="#007700">&gt; <br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">HMAC</font><font color="#007700">&gt;</font><font color="#0000BB">m06qU</font><font color="#007700">/</font><font color="#0000BB">U1YoqmUqbkpzz9yHrC4Bs</font><font color="#007700">=&lt;/</font><font color="#0000BB">HMAC</font><font color="#007700">&gt; <br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">URLEncodedHMAC</font><font color="#007700">&gt;</font><font color="#0000BB">m06qU</font><font color="#007700">&amp;</font><font color="#FF8000">#37;2FU1YoqmUqbkpzz9yHrC4Bs%3D&lt;/URLEncodedHMAC&gt; <br />&nbsp;&nbsp;</font><font color="#007700">&lt;</font><font color="#0000BB">PurchaseURL</font><font color="#007700">&gt;</font><font color="#0000BB">https</font><font color="#007700">:</font><font color="#FF8000">//www.amazon.co.uk/gp/cart/aws-merge.html?cart-id=279-2081375-2479704%26associate-id=firschoishop-21%26hmac=m06qU/U1YoqmUqbkpzz9yHrC4Bs=%26SubscriptionId=AKIAI4FF5RJXRBLUF6FQ%26MergeCart=False&lt;/PurchaseURL&gt; <br /></font><font color="#007700">- &lt;</font><font color="#0000BB">SubTotal</font><font color="#007700">&gt;<br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">Amount</font><font color="#007700">&gt;</font><font color="#0000BB">1740</font><font color="#007700">&lt;/</font><font color="#0000BB">Amount</font><font color="#007700">&gt; <br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">CurrencyCode</font><font color="#007700">&gt;</font><font color="#0000BB">GBP</font><font color="#007700">&lt;/</font><font color="#0000BB">CurrencyCode</font><font color="#007700">&gt; <br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">FormattedPrice</font><font color="#007700">&gt;&amp;</font><font color="#FF8000">#163;17.40&lt;/FormattedPrice&gt; <br />&nbsp;&nbsp;</font><font color="#007700">&lt;/</font><font color="#0000BB">SubTotal</font><font color="#007700">&gt;<br />- &lt;</font><font color="#0000BB">CartItems</font><font color="#007700">&gt;<br />- &lt;</font><font color="#0000BB">SubTotal</font><font color="#007700">&gt;<br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">Amount</font><font color="#007700">&gt;</font><font color="#0000BB">1740</font><font color="#007700">&lt;/</font><font color="#0000BB">Amount</font><font color="#007700">&gt; <br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">CurrencyCode</font><font color="#007700">&gt;</font><font color="#0000BB">GBP</font><font color="#007700">&lt;/</font><font color="#0000BB">CurrencyCode</font><font color="#007700">&gt; <br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">FormattedPrice</font><font color="#007700">&gt;&amp;</font><font color="#FF8000">#163;17.40&lt;/FormattedPrice&gt; <br />&nbsp;&nbsp;</font><font color="#007700">&lt;/</font><font color="#0000BB">SubTotal</font><font color="#007700">&gt;<br />- &lt;</font><font color="#0000BB">CartItem</font><font color="#007700">&gt;<br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">CartItemId</font><font color="#007700">&gt;</font><font color="#0000BB">UN0O09FHOC9E2</font><font color="#007700">&lt;/</font><font color="#0000BB">CartItemId</font><font color="#007700">&gt; <br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">ASIN</font><font color="#007700">&gt;</font><font color="#0000BB">1844139328</font><font color="#007700">&lt;/</font><font color="#0000BB">ASIN</font><font color="#007700">&gt; <br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">MerchantId</font><font color="#007700">&gt;</font><font color="#0000BB">A3P5ROKL5A1OLE</font><font color="#007700">&lt;/</font><font color="#0000BB">MerchantId</font><font color="#007700">&gt; <br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">SellerId</font><font color="#007700">&gt;</font><font color="#0000BB">A3P5ROKL5A1OLE</font><font color="#007700">&lt;/</font><font color="#0000BB">SellerId</font><font color="#007700">&gt; <br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">SellerNickname</font><font color="#007700">&gt;</font><font color="#0000BB">Amazon</font><font color="#007700">.</font><font color="#0000BB">co</font><font color="#007700">.</font><font color="#0000BB">uk</font><font color="#007700">&lt;/</font><font color="#0000BB">SellerNickname</font><font color="#007700">&gt; <br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">Quantity</font><font color="#007700">&gt;</font><font color="#0000BB">1</font><font color="#007700">&lt;/</font><font color="#0000BB">Quantity</font><font color="#007700">&gt; <br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">Title</font><font color="#007700">&gt;</font><font color="#0000BB">Michelangelo </font><font color="#007700">and </font><font color="#0000BB">the Pope</font><font color="#DD0000">'s Ceiling&lt;/Title&gt; <br />&nbsp;&nbsp;&lt;ProductGroup&gt;Book&lt;/ProductGroup&gt; <br />- &lt;Price&gt;<br />&nbsp;&nbsp;&lt;Amount&gt;648&lt;/Amount&gt; <br />&nbsp;&nbsp;&lt;CurrencyCode&gt;GBP&lt;/CurrencyCode&gt; <br />&nbsp;&nbsp;&lt;FormattedPrice&gt;&#163;6.48&lt;/FormattedPrice&gt; <br />&nbsp;&nbsp;&lt;/Price&gt;<br />- &lt;ItemTotal&gt;<br />&nbsp;&nbsp;&lt;Amount&gt;648&lt;/Amount&gt; <br />&nbsp;&nbsp;&lt;CurrencyCode&gt;GBP&lt;/CurrencyCode&gt; <br />&nbsp;&nbsp;&lt;FormattedPrice&gt;&#163;6.48&lt;/FormattedPrice&gt; <br />&nbsp;&nbsp;&lt;/ItemTotal&gt;<br />&nbsp;&nbsp;&lt;/CartItem&gt;<br />- &lt;CartItem&gt;<br />&nbsp;&nbsp;&lt;CartItemId&gt;U1P550NP6R6STI&lt;/CartItemId&gt; <br />&nbsp;&nbsp;&lt;ASIN&gt;0199537615&lt;/ASIN&gt; <br />&nbsp;&nbsp;&lt;MerchantId&gt;A3P5ROKL5A1OLE&lt;/MerchantId&gt; <br />&nbsp;&nbsp;&lt;SellerId&gt;A3P5ROKL5A1OLE&lt;/SellerId&gt; <br />&nbsp;&nbsp;&lt;SellerNickname&gt;Amazon.co.uk&lt;/SellerNickname&gt; <br />&nbsp;&nbsp;&lt;Quantity&gt;1&lt;/Quantity&gt; <br />&nbsp;&nbsp;&lt;Title&gt;The Major Works: including The Rape of the Lock and The Dunciad (Oxford World'</font><font color="#0000BB">s Classics</font><font color="#007700">)&lt;/</font><font color="#0000BB">Title</font><font color="#007700">&gt; <br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">ProductGroup</font><font color="#007700">&gt;</font><font color="#0000BB">Book</font><font color="#007700">&lt;/</font><font color="#0000BB">ProductGroup</font><font color="#007700">&gt; <br />- &lt;</font><font color="#0000BB">Price</font><font color="#007700">&gt;<br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">Amount</font><font color="#007700">&gt;</font><font color="#0000BB">604</font><font color="#007700">&lt;/</font><font color="#0000BB">Amount</font><font color="#007700">&gt; <br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">CurrencyCode</font><font color="#007700">&gt;</font><font color="#0000BB">GBP</font><font color="#007700">&lt;/</font><font color="#0000BB">CurrencyCode</font><font color="#007700">&gt; <br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">FormattedPrice</font><font color="#007700">&gt;&amp;</font><font color="#FF8000">#163;6.04&lt;/FormattedPrice&gt; <br />&nbsp;&nbsp;</font><font color="#007700">&lt;/</font><font color="#0000BB">Price</font><font color="#007700">&gt;<br />- &lt;</font><font color="#0000BB">ItemTotal</font><font color="#007700">&gt;<br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">Amount</font><font color="#007700">&gt;</font><font color="#0000BB">604</font><font color="#007700">&lt;/</font><font color="#0000BB">Amount</font><font color="#007700">&gt; <br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">CurrencyCode</font><font color="#007700">&gt;</font><font color="#0000BB">GBP</font><font color="#007700">&lt;/</font><font color="#0000BB">CurrencyCode</font><font color="#007700">&gt; <br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">FormattedPrice</font><font color="#007700">&gt;&amp;</font><font color="#FF8000">#163;6.04&lt;/FormattedPrice&gt; <br />&nbsp;&nbsp;</font><font color="#007700">&lt;/</font><font color="#0000BB">ItemTotal</font><font color="#007700">&gt;<br />&nbsp;&nbsp;&lt;/</font><font color="#0000BB">CartItem</font><font color="#007700">&gt;<br />- &lt;</font><font color="#0000BB">CartItem</font><font color="#007700">&gt;<br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">CartItemId</font><font color="#007700">&gt;</font><font color="#0000BB">UIF9S0HDA158R</font><font color="#007700">&lt;/</font><font color="#0000BB">CartItemId</font><font color="#007700">&gt; <br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">ASIN</font><font color="#007700">&gt;</font><font color="#0000BB">0141042699</font><font color="#007700">&lt;/</font><font color="#0000BB">ASIN</font><font color="#007700">&gt; <br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">MerchantId</font><font color="#007700">&gt;</font><font color="#0000BB">A3P5ROKL5A1OLE</font><font color="#007700">&lt;/</font><font color="#0000BB">MerchantId</font><font color="#007700">&gt; <br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">SellerId</font><font color="#007700">&gt;</font><font color="#0000BB">A3P5ROKL5A1OLE</font><font color="#007700">&lt;/</font><font color="#0000BB">SellerId</font><font color="#007700">&gt; <br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">SellerNickname</font><font color="#007700">&gt;</font><font color="#0000BB">Amazon</font><font color="#007700">.</font><font color="#0000BB">co</font><font color="#007700">.</font><font color="#0000BB">uk</font><font color="#007700">&lt;/</font><font color="#0000BB">SellerNickname</font><font color="#007700">&gt; <br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">Quantity</font><font color="#007700">&gt;</font><font color="#0000BB">1</font><font color="#007700">&lt;/</font><font color="#0000BB">Quantity</font><font color="#007700">&gt; <br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">Title</font><font color="#007700">&gt;</font><font color="#0000BB">The Last Pope</font><font color="#007700">&lt;/</font><font color="#0000BB">Title</font><font color="#007700">&gt; <br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">ProductGroup</font><font color="#007700">&gt;</font><font color="#0000BB">Book</font><font color="#007700">&lt;/</font><font color="#0000BB">ProductGroup</font><font color="#007700">&gt; <br />- &lt;</font><font color="#0000BB">Price</font><font color="#007700">&gt;<br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">Amount</font><font color="#007700">&gt;</font><font color="#0000BB">488</font><font color="#007700">&lt;/</font><font color="#0000BB">Amount</font><font color="#007700">&gt; <br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">CurrencyCode</font><font color="#007700">&gt;</font><font color="#0000BB">GBP</font><font color="#007700">&lt;/</font><font color="#0000BB">CurrencyCode</font><font color="#007700">&gt; <br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">FormattedPrice</font><font color="#007700">&gt;&amp;</font><font color="#FF8000">#163;4.88&lt;/FormattedPrice&gt; <br />&nbsp;&nbsp;</font><font color="#007700">&lt;/</font><font color="#0000BB">Price</font><font color="#007700">&gt;<br />- &lt;</font><font color="#0000BB">ItemTotal</font><font color="#007700">&gt;<br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">Amount</font><font color="#007700">&gt;</font><font color="#0000BB">488</font><font color="#007700">&lt;/</font><font color="#0000BB">Amount</font><font color="#007700">&gt; <br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">CurrencyCode</font><font color="#007700">&gt;</font><font color="#0000BB">GBP</font><font color="#007700">&lt;/</font><font color="#0000BB">CurrencyCode</font><font color="#007700">&gt; <br />&nbsp;&nbsp;&lt;</font><font color="#0000BB">FormattedPrice</font><font color="#007700">&gt;&amp;</font><font color="#FF8000">#163;4.88&lt;/FormattedPrice&gt; <br />&nbsp;&nbsp;</font><font color="#007700">&lt;/</font><font color="#0000BB">ItemTotal</font><font color="#007700">&gt;<br />&nbsp;&nbsp;&lt;/</font><font color="#0000BB">CartItem</font><font color="#007700">&gt;<br />&nbsp;&nbsp;&lt;/</font><font color="#0000BB">CartItems</font><font color="#007700">&gt;<br />&nbsp;&nbsp;&lt;/</font><font color="#0000BB">Cart</font><font color="#007700">&gt;<br />&nbsp;&nbsp;&lt;/</font><font color="#0000BB">CartGetResponse</font><font color="#007700">&gt; <br /></font><font color="#0000BB"></font>
</font>
</code><!-- php buffer end -->
		</div>
		</code>
		<hr />
	</div>
</div>my code for retrieving the data:<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">&lt;?php<br /> <br />&nbsp;&nbsp;</font><font color="#FF8000">// Check if the customer has an amazon order in the database, if so show it<br />&nbsp;&nbsp;</font><font color="#007700">if (</font><font color="#0000BB">amazon_cart_not_empty</font><font color="#007700">(</font><font color="#0000BB">$cusSessionID</font><font color="#007700">))<br />&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;</font><font color="#FF8000">// If the cart isn't empty retrieve the cartID and HAC ID<br />&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$cartID </font><font color="#007700">= </font><font color="#0000BB">amazon_unique_cart_id</font><font color="#007700">(</font><font color="#0000BB">$cusSessionID</font><font color="#007700">);<br />&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$cartHI </font><font color="#007700">= </font><font color="#0000BB">amazon_unique_hwac</font><font color="#007700">(</font><font color="#0000BB">$cusSessionID</font><font color="#007700">);<br />&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;</font><font color="#FF8000">// Display top half<br />&nbsp;&nbsp;&nbsp;</font><font color="#007700">print </font><font color="#DD0000">'&lt;form onSubmit="return updateCartCheck();" action="cart.php?do=update" name="fcsShoppingCart" method="POST" /&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type="hidden" name="cusSessionID" value="" /&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;table border="1" class="CartContents Stylize General" cellspacing="0" cellpadding="0"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;thead&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;th colspan="2"&gt;Cart Items&lt;/th&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;th style="text-align: center; white-space: nowrap;"&gt;Qty&lt;/th&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;th style="text-align: center; white-space: nowrap;"&gt;Item Price&lt;/th&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;th style="text-align: right; white-space: nowrap;"&gt;Item Total&lt;/th&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/tr&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/thead&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;tbody&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&gt;'</font><font color="#007700">;<br />&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#FF8000">// Credentials<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$PublicKey&nbsp;&nbsp;&nbsp;</font><font color="#007700">= </font><font color="#DD0000">"ccccccccccccccccccc"</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$PrivateKey&nbsp;&nbsp;</font><font color="#007700">= </font><font color="#DD0000">"ccccccccccccccccccccccccccc"</font><font color="#007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#FF8000">// Prarameters we need to send to the function<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$parameters </font><font color="#007700">= array(<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'AssociateTag'&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#007700">=&gt; </font><font color="#DD0000">'firschoishop-21'</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'Operation'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#007700">=&gt; </font><font color="#DD0000">'CartGet'</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'CartId'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#007700">=&gt; </font><font color="#0000BB">$cartID</font><font color="#007700">,&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'HMAC'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#007700">=&gt; </font><font color="#0000BB">$cartHI</font><font color="#007700">,&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#FF8000">// Execute the function to return our URL<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$url </font><font color="#007700">= </font><font color="#0000BB">amazon_signed_request</font><font color="#007700">(</font><font color="#DD0000">"co.uk"</font><font color="#007700">, </font><font color="#0000BB">$parameters</font><font color="#007700">, </font><font color="#0000BB">$PublicKey</font><font color="#007700">, </font><font color="#0000BB">$PrivateKey</font><font color="#007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print </font><font color="#0000BB">$url</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#FF8000">// Load the results and get the contents&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$response </font><font color="#007700">= </font><font color="#0000BB">simplexml_load_file</font><font color="#007700">(</font><font color="#0000BB">$url</font><font color="#007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#FF8000">// Loop through the xml nodes<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#007700">foreach (</font><font color="#0000BB">$response</font><font color="#007700">-&gt;</font><font color="#0000BB">Cart </font><font color="#007700">as </font><font color="#0000BB">$item</font><font color="#007700">) <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#FF8000">// Whats our cart id?<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$cartID </font><font color="#007700">= </font><font color="#0000BB">$item</font><font color="#007700">-&gt;</font><font color="#0000BB">CartId</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$cartNM </font><font color="#007700">= </font><font color="#0000BB">$item</font><font color="#007700">-&gt;</font><font color="#0000BB">CartItems</font><font color="#007700">-&gt;</font><font color="#0000BB">CartItem</font><font color="#007700">-&gt;</font><font color="#0000BB">Title</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$cartQY </font><font color="#007700">= </font><font color="#0000BB">$item</font><font color="#007700">-&gt;</font><font color="#0000BB">CartItems</font><font color="#007700">-&gt;</font><font color="#0000BB">CartItem</font><font color="#007700">-&gt;</font><font color="#0000BB">Quantity</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$cartPR </font><font color="#007700">= </font><font color="#0000BB">$item</font><font color="#007700">-&gt;</font><font color="#0000BB">SubTotal</font><font color="#007700">-&gt;</font><font color="#0000BB">FormattedPrice</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#FF8000">// What product group<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$cartPG </font><font color="#007700">= </font><font color="#0000BB">$item</font><font color="#007700">-&gt;</font><font color="#0000BB">CartItems</font><font color="#007700">-&gt;</font><font color="#0000BB">CartItem</font><font color="#007700">-&gt;</font><font color="#0000BB">ProductGroup</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#FF8000">//print $cartPG;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// We need to use the function to determine what item number we need<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#007700">if (</font><font color="#0000BB">$cartPG </font><font color="#007700">== </font><font color="#DD0000">"Book"</font><font color="#007700">){<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$identificationNumber </font><font color="#007700">= </font><font color="#0000BB">$item</font><font color="#007700">-&gt;</font><font color="#0000BB">CartItems</font><font color="#007700">-&gt;</font><font color="#0000BB">CartItem</font><font color="#007700">-&gt;</font><font color="#0000BB">ASIN</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} elseif(</font><font color="#0000BB">$cartPG </font><font color="#007700">== </font><font color="#DD0000">"DVD"</font><font color="#007700">){<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$identificationNumber </font><font color="#007700">= </font><font color="#0000BB">$item</font><font color="#007700">-&gt;</font><font color="#0000BB">ItemAttributes</font><font color="#007700">-&gt;</font><font color="#0000BB">ISBN</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#FF8000">//print $cartNM;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#007700">print </font><font color="#DD0000">'&lt;td class="CartThumb"&gt;'</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print </font><font color="#DD0000">' &lt;img src="imgProducts/img-th/thumb-Eczema-Free-Forever-1250421912.jpg" border=\"0\"/&gt;&lt;/a&gt;'</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print </font><font color="#DD0000">'&nbsp;&nbsp;&lt;/td&gt;'</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print </font><font color="#DD0000">'&nbsp;&nbsp;&nbsp;&nbsp; &lt;td class="ProductName" colspan="1"&gt;'</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print </font><font color="#DD0000">' &nbsp;&nbsp;&nbsp;&nbsp;'</font><font color="#007700">.</font><font color="#0000BB">amazon_friendly_url</font><font color="#007700">(</font><font color="#0000BB">$cartNM</font><font color="#007700">, </font><font color="#0000BB">$identificationNumber</font><font color="#007700">).</font><font color="#DD0000">' &lt;b&gt;- &lt;/b&gt;(&lt;a href=\"cart.php?do=remove&amp;amp;product-id=$cartProdID&amp;amp;customer-id=$cusSessionID\" onclick=\"return confirm(\'Are you sure you want to delete this item?\')\"&gt;&lt;span class=\"fcs-message-intro-w\"&gt;X&lt;/span&gt;&lt;/a&gt;)'</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print </font><font color="#DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;br /&gt;'</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print </font><font color="#DD0000">'&nbsp;&nbsp;&nbsp;&lt;/td&gt;'</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print </font><font color="#DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/td&gt;'</font><font color="#007700">;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print </font><font color="#DD0000">'&lt;td align="center"&gt;'</font><font color="#007700">.</font><font color="#0000BB">$cartQY</font><font color="#007700">.</font><font color="#DD0000">'&lt;/td&gt;'</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print </font><font color="#DD0000">'&lt;td align="right"&gt;&lt;em class="ProductPrice"&gt;'</font><font color="#007700">.</font><font color="#0000BB">$cartPR</font><font color="#007700">.</font><font color="#DD0000">'&lt;/em&gt;&lt;/td&gt;'</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print </font><font color="#DD0000">'&lt;/tr&gt;'</font><font color="#007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#FF8000">// Display bottom<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#007700">print </font><font color="#DD0000">'&lt;table border="0" cellpadding="5" cellspacing="0" /&gt;'</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print </font><font color="#DD0000">' &lt;tr&gt;'</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print </font><font color="#DD0000">'&nbsp;&nbsp;&lt;td class="fcs-proceed-checkout-border" align="right" colspan="2"&gt;&lt;input type="image" src="img/img-update-cart.png" alt="Update Cart" /&gt;&lt;/span&gt;&lt;a href="checkout.php" onClick="return cartCheck()" title="Click here to proceed to checkout"&gt;&lt;img src="img/img-proceed-checkout.png" alt="Click here to proceed to checkout" border="0" /&gt;&lt;/a&gt;&lt;/td&gt;'</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print </font><font color="#DD0000">' &lt;/tr&gt;'</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print </font><font color="#DD0000">'&lt;/table&gt;'</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;</font><font color="#FF8000">// We don't want the script to execute any further<br />&nbsp;&nbsp;&nbsp;</font><font color="#007700">include(</font><font color="#DD0000">"inc/inc-footer.php"</font><font color="#007700">);<br />&nbsp;&nbsp;&nbsp;exit;<br />&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;} <br /> <br /></font><font color="#0000BB">?&gt;</font>
</font>
</code><!-- php buffer end -->
		</div>
		</code>
		<hr />
	</div>
</div>The problem is, my code as it is above is only bringing me back the latest set of results from the xml when infact there is 3 items in the xml cart code.<br />
<br />
any help would be appreciated<br />
<br />
thanks guys<br />
<br />
Graham</div>

<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=4e78abe9545828c74bd0343723eea794&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=4e78abe9545828c74bd0343723eea794&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>graham23s</dc:creator>
			<guid isPermaLink="false">http://www.sitepoint.com/forums/showthread.php?t=648280</guid>
		</item>
		<item>
			<title>Sample MVC App</title>
			<link>http://www.pheedcontent.com/click.phdo?i=4a52fa6723b63681489154c282343dcf</link>
			<pheedo:origLink>http://www.sitepoint.com/forums/showthread.php?t=648279&amp;amp;goto=newpost</pheedo:origLink>
			<pubDate>Sat, 21 Nov 2009 20:55:45 GMT</pubDate>
			<description><![CDATA[Originally sent a few moments ago to Mark...
 
This sample application is actually my "testbed" for ideas. It's fairly plain and simple, though goes far beyond the sample apps at asp.net .mvc, with two caveats: I don't use ajax and jquery in it. It demonstrates the following:
 
abstracted linq...<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=4a52fa6723b63681489154c282343dcf&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=4a52fa6723b63681489154c282343dcf&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>Originally sent a few moments ago to Mark...<br />
 <br />
<font face="Arial"><font size="2">This sample application is actually my &quot;testbed&quot; for ideas. It's fairly plain and simple, though goes far beyond the sample apps at asp.net .mvc, with two caveats: I don't use ajax and jquery in it. It demonstrates the following:</font></font><br />
 <br />
<font face="Arial"><font size="2">abstracted linq repositories (no need for a custom data context)</font></font><br />
 <br />
<font face="Arial"><font size="2">the specification pattern for validation (I don't like sending the ModelState to services, even in a wrapper, it makes the service at least partially mvc aware)</font></font><br />
 <br />
<font face="Arial"><font size="2">good folder / namespace structure (they build on one another from base downwards to web)</font></font><br />
 <br />
<font face="Arial"><font size="2">use of presentations, extension methods, and html helpers</font></font><br />
 <br />
<font face="Arial"><font size="2">custom controller factory, system bootstrap and registry (your ioc and di stuff)</font></font><br />
 <br />
<font face="Arial"><font size="2">custom view engine to support easy-mode theme switching with defaults and fallbacks</font></font><br />
 <br />
As stated, this was the project I learned on. The reason I kept it around is because it shows a great deal that the common samples do not, minus the ajax and jquery. By the time I got to those elements, I'd moved on to another project. There are also no tests here. Again, that part came later. This is intended merely as a reference for others who may be new to MVC, and want to see something in action and have the code available to step through.<br />
 <br />
I hope it helps others, as it did me, while learning.</div>


	<br />
	<div style="padding:6px">

	

	

	

	
		<fieldset class="fieldset">
			<legend>Attached Files</legend>
			<table cellpadding="0" cellspacing="3" border="0">
			<tr>
	<td><img class="inlineimg" src="http://sitepointstatic.com/forums/images/attach/zip.gif" alt="File Type: zip" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
	<td><a href="http://www.sitepoint.com/forums/attachment.php?attachmentid=53332&amp;d=1258836933">Library.zip</a> (684.1 KB)</td>
</tr>
			</table>
		</fieldset>
	

	</div>
<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=4a52fa6723b63681489154c282343dcf&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=4a52fa6723b63681489154c282343dcf&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>Serenarules</dc:creator>
			<guid isPermaLink="false">http://www.sitepoint.com/forums/showthread.php?t=648279</guid>
		</item>
		<item>
			<title>Heellooooooooooo Guys!</title>
			<link>http://www.pheedcontent.com/click.phdo?i=f7f6c8a91de0564748adf0d5505ec3af</link>
			<pheedo:origLink>http://www.sitepoint.com/forums/showthread.php?t=648278&amp;amp;goto=newpost</pheedo:origLink>
			<pubDate>Sat, 21 Nov 2009 20:47:36 GMT</pubDate>
			<description>Hi 
I am Anup Kanwar from India.19 years of age doing engineering in computer science ,i am here in this beautiful forums to gain knowledge about seo  as have made recently social bookmarking site and want to do something good for this site/forum....

Regards, Anup Kanwar&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=f7f6c8a91de0564748adf0d5505ec3af&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=f7f6c8a91de0564748adf0d5505ec3af&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 />
I am Anup Kanwar from India.19 years of age doing engineering in computer science ,i am here in this beautiful forums to gain knowledge about seo  as have made recently social bookmarking site and want to do something good for this site/forum....<br />
<br />
Regards, Anup Kanwar</div>

<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=f7f6c8a91de0564748adf0d5505ec3af&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=f7f6c8a91de0564748adf0d5505ec3af&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=51">Introductions</category>
			<dc:creator>anupkanwar</dc:creator>
			<guid isPermaLink="false">http://www.sitepoint.com/forums/showthread.php?t=648278</guid>
		</item>
		<item>
			<title>setting links</title>
			<link>http://www.pheedcontent.com/click.phdo?i=807279e7dc89d1474b9137d64e5e9357</link>
			<pheedo:origLink>http://www.sitepoint.com/forums/showthread.php?t=648277&amp;amp;goto=newpost</pheedo:origLink>
			<pubDate>Sat, 21 Nov 2009 20:24:49 GMT</pubDate>
			<description>Hello,

in css is there a way to designate that the mailto link will be white and not bold and not touch the other links?&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=807279e7dc89d1474b9137d64e5e9357&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=807279e7dc89d1474b9137d64e5e9357&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>Hello,<br />
<br />
in css is there a way to designate that the mailto link will be white and not bold and not touch the other links?</div>

<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=807279e7dc89d1474b9137d64e5e9357&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=807279e7dc89d1474b9137d64e5e9357&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=140">General Development Issues</category>
			<dc:creator>silver163</dc:creator>
			<guid isPermaLink="false">http://www.sitepoint.com/forums/showthread.php?t=648277</guid>
		</item>
		<item>
			<title>Catching the output from a recursive function</title>
			<link>http://www.pheedcontent.com/click.phdo?i=63b4bdac97f546b7cee313c0ed9f130d</link>
			<pheedo:origLink>http://www.sitepoint.com/forums/showthread.php?t=648276&amp;amp;goto=newpost</pheedo:origLink>
			<pubDate>Sat, 21 Nov 2009 20:24:06 GMT</pubDate>
			<description><![CDATA[Hello guys,

I have the following recursive function:


Code:
---------
function get_comments($parent, $level) {   
   $sql = "SELECT * FROM `comments` \n"
        . "LEFT JOIN `users` ON (`comments`.`comment_user` = `users`.`user_id`) \n"<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=63b4bdac97f546b7cee313c0ed9f130d&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=63b4bdac97f546b7cee313c0ed9f130d&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>Hello guys,<br />
<br />
I have the following recursive function:<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">function get_comments($parent, $level) {&nbsp;  <br />
&nbsp;  $sql = &quot;SELECT * FROM `comments` \n&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; . &quot;LEFT JOIN `users` ON (`comments`.`comment_user` = `users`.`user_id`) \n&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; . &quot;WHERE `comments`.`comment_parent` = '&quot;.$parent.&quot;' \n&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; . &quot;ORDER BY `comments`.`comment_date` ASC \n&quot;;&nbsp;  <br />
&nbsp;  $result = mysql_query($sql);<br />
&nbsp;  <br />
&nbsp;  while ($row = mysql_fetch_assoc($result)) {<br />
&nbsp; &nbsp; &nbsp; echo $row[&quot;comment_id&quot;] . &quot;&lt;br&gt;&quot;;&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; get_comments($row[&quot;comment_id&quot;], $level+1);&nbsp; &nbsp; &nbsp; <br />
&nbsp;  }&nbsp;  <br />
&nbsp;  <br />
}</code><hr />
</div>Is it possible to catch the output and save it in an array?</div>

<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=63b4bdac97f546b7cee313c0ed9f130d&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=63b4bdac97f546b7cee313c0ed9f130d&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>Psyche</dc:creator>
			<guid isPermaLink="false">http://www.sitepoint.com/forums/showthread.php?t=648276</guid>
		</item>
		<item>
			<title>Using multiple IPs in a proxy script?</title>
			<link>http://www.pheedcontent.com/click.phdo?i=83c79e8593c3f2a297a97aec2ee649a4</link>
			<pheedo:origLink>http://www.sitepoint.com/forums/showthread.php?t=648274&amp;amp;goto=newpost</pheedo:origLink>
			<pubDate>Sat, 21 Nov 2009 19:16:09 GMT</pubDate>
			<description>I own multiple IP addresses on my server. How would I load these into an array to be used in a proxy script?

For example, if I use file_get_contents(), it will use the IP address that my domain is hosted on to grab the contents. I want it to randomly select an IP of mine instead of using just my...&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=83c79e8593c3f2a297a97aec2ee649a4&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=83c79e8593c3f2a297a97aec2ee649a4&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 own multiple IP addresses on my server. How would I load these into an array to be used in a proxy script?<br />
<br />
For example, if I use file_get_contents(), it will use the IP address that my domain is hosted on to grab the contents. I want it to randomly select an IP of mine instead of using just my main IP. This is needed because if there are too many connections to a certain website from one IP, it can be blocked.<br />
<br />
I have cpanel, and I see multiple IPs listed which I own. How can I use these without setting them up with domains?</div>

<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=83c79e8593c3f2a297a97aec2ee649a4&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=83c79e8593c3f2a297a97aec2ee649a4&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>jetnine</dc:creator>
			<guid isPermaLink="false">http://www.sitepoint.com/forums/showthread.php?t=648274</guid>
		</item>
		<item>
			<title>establishing a site</title>
			<link>http://www.pheedcontent.com/click.phdo?i=852aa0881deea04222ecd7124be3a8d4</link>
			<pheedo:origLink>http://www.sitepoint.com/forums/showthread.php?t=648273&amp;amp;goto=newpost</pheedo:origLink>
			<pubDate>Sat, 21 Nov 2009 19:13:04 GMT</pubDate>
			<description><![CDATA[I don't know how many people can relate but with all the social networks out there, there aren't any decent sites for photographers and models and anyone else really that fit in that field. There are two sites that are absolutely horrible.

well basically i created the design of the site all the...<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=852aa0881deea04222ecd7124be3a8d4&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=852aa0881deea04222ecd7124be3a8d4&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 don't know how many people can relate but with all the social networks out there, there aren't any decent sites for photographers and models and anyone else really that fit in that field. There are two sites that are absolutely horrible.<br />
<br />
well basically i created the design of the site all the modules are written out but I really could use help with building it. i don't have money on me to pay coders (if money it can only be paid through membership fees from the users) so I don't know where to find coders. Any suggestions?</div>

<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=852aa0881deea04222ecd7124be3a8d4&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=852aa0881deea04222ecd7124be3a8d4&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=71">Social Networking and Communities</category>
			<dc:creator>silver163</dc:creator>
			<guid isPermaLink="false">http://www.sitepoint.com/forums/showthread.php?t=648273</guid>
		</item>
		<item>
			<title>Redirecting after move from subfolder to subdomain -- how?</title>
			<link>http://www.pheedcontent.com/click.phdo?i=aabd202be9c980c57794a572ac491dd0</link>
			<pheedo:origLink>http://www.sitepoint.com/forums/showthread.php?t=648272&amp;amp;goto=newpost</pheedo:origLink>
			<pubDate>Sat, 21 Nov 2009 18:53:07 GMT</pubDate>
			<description><![CDATA[My site consists of several distinct but closely related subsites. So far, they've been accessed via www.domain.com/Subsite1/, www.domain.com/Subsite2/, etc. 

I am now in the process of doing an overhaul of the design and of some of the structure, and it was suggested to me that we move to...<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=aabd202be9c980c57794a572ac491dd0&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=aabd202be9c980c57794a572ac491dd0&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>My site consists of several distinct but closely related subsites. So far, they've been accessed via <a href="http://www.domain.com/Subsite1/" target="_blank">www.domain.com/Subsite1/</a>, <a href="http://www.domain.com/Subsite2/" target="_blank">www.domain.com/Subsite2/</a>, etc. <br />
<br />
I am now in the process of doing an overhaul of the design and of some of the structure, and it was suggested to me that we move to subdomains, so subsite1.domain.com, subsite2.domain.com, etc.<br />
<br />
I have considered this in the past, but I am of course concerned about breaking links all over the place. I don't think I have too much in the way of relative links internally, so it shouldn't be too hard to edit internal links ... but for external links, is it possible to have some kind of catch-all rewrite for each subsite?</div>

<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=aabd202be9c980c57794a572ac491dd0&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=aabd202be9c980c57794a572ac491dd0&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>Linda A</dc:creator>
			<guid isPermaLink="false">http://www.sitepoint.com/forums/showthread.php?t=648272</guid>
		</item>
		<item>
			<title>Why is domain available in Register.com but nowhere else?</title>
			<link>http://www.pheedcontent.com/click.phdo?i=a1f887fb5375e7da9232cb2aac042191</link>
			<pheedo:origLink>http://www.sitepoint.com/forums/showthread.php?t=648271&amp;amp;goto=newpost</pheedo:origLink>
			<pubDate>Sat, 21 Nov 2009 18:49:22 GMT</pubDate>
			<description>Hi All

I checked a domain name and found out it was not available. I then wanted to find out who owns it so I done the usual whois stuff and nothing came up on it, I kept trying different whois sites and ended up with one of the sites saying its available - Buy Now. It pointed to register.com. I...&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=a1f887fb5375e7da9232cb2aac042191&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=a1f887fb5375e7da9232cb2aac042191&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 All<br />
<br />
I checked a domain name and found out it was not available. I then wanted to find out who owns it so I done the usual whois stuff and nothing came up on it, I kept trying different whois sites and ended up with one of the sites saying its available - Buy Now. It pointed to register.com. I went to register.com and it was available but at $35.95<br />
<br />
Whats that about, can someone explain?<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=a1f887fb5375e7da9232cb2aac042191&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=a1f887fb5375e7da9232cb2aac042191&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=98">Domain Names</category>
			<dc:creator>gloryboy</dc:creator>
			<guid isPermaLink="false">http://www.sitepoint.com/forums/showthread.php?t=648271</guid>
		</item>
		<item>
			<title>70% and 75% Commissions For New Fresh Product</title>
			<link>http://www.pheedcontent.com/click.phdo?i=f78b21b78a2a73b3604253910de3d9f0</link>
			<pheedo:origLink>http://www.sitepoint.com/forums/showthread.php?t=648270&amp;amp;goto=newpost</pheedo:origLink>
			<pubDate>Sat, 21 Nov 2009 18:49:03 GMT</pubDate>
			<description><![CDATA[YOU WILL MAKE LOT'S OF $$$ WITH THIS NICE PRODUCT 
70% and 75% respectively Commissions. Bonus 5 Hour Video Tutorial "MAKE MONEY WITH NO MONEY" Included With Resell Rights For Free.Recession Revenge E-book About Financial Strategies For The Family To Take In Hard Times. Vital Support For All...<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=f78b21b78a2a73b3604253910de3d9f0&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=f78b21b78a2a73b3604253910de3d9f0&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>YOU WILL MAKE LOT'S OF $$$ WITH THIS NICE PRODUCT <br />
70% and 75% respectively Commissions. Bonus 5 Hour Video Tutorial &quot;MAKE MONEY WITH NO MONEY&quot; Included With Resell Rights For Free.Recession Revenge E-book About Financial Strategies For The Family To Take In Hard Times. Vital Support For All Affiliates With Monthly Updated Articles,keywords,banners. <br />
 <br />
<a href="http://www.recessionrevenge.net" target="_blank">www.recessionrevenge.net</a><br />
<a href="http://www.recessionrevenge.com" target="_blank">www.recessionrevenge.com</a><br />
PayDotCom Affiliate sign up page here <br />
<a href="https://paydotcom.com/a.page.php?id=91713&amp;u=bazthebarrel" target="_blank">https://paydotcom.com/a.page.php?id=...u=bazthebarrel</a><br />
Clickbank Affiliate sign up page here<br />
<a href="http://recessionrevenge.com/affiliates.html" target="_blank">http://recessionrevenge.com/affiliates.html</a></div>

<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=f78b21b78a2a73b3604253910de3d9f0&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=f78b21b78a2a73b3604253910de3d9f0&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=6"><![CDATA[Advertising Sales & Affiliate Programs]]></category>
			<dc:creator>bazthebarrel</dc:creator>
			<guid isPermaLink="false">http://www.sitepoint.com/forums/showthread.php?t=648270</guid>
		</item>
		<item>
			<title>Are these both proper if / else statements?</title>
			<link>http://www.pheedcontent.com/click.phdo?i=7c8679a2240137fec457336cf2b505e5</link>
			<pheedo:origLink>http://www.sitepoint.com/forums/showthread.php?t=648269&amp;amp;goto=newpost</pheedo:origLink>
			<pubDate>Sat, 21 Nov 2009 17:57:20 GMT</pubDate>
			<description><![CDATA[Are these two php statements equal? And if they essentially do the same thing - how do they differ, if at all? 


Code:
---------
$language = (get_magic_quotes_gpc()) ? $_GET['lang'] : addslashes($_GET['lang']);
---------
vs<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=7c8679a2240137fec457336cf2b505e5&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=7c8679a2240137fec457336cf2b505e5&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>Are these two php statements equal? And if they essentially do the same thing - how do they differ, if at all? <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">$language = (get_magic_quotes_gpc()) ? $_GET['lang'] : addslashes($_GET['lang']);</code><hr />
</div>vs<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">if (get_magic_quotes_gpc()) {<br />
&nbsp; &nbsp;  $language = $_GET['lang'];<br />
&nbsp; &nbsp;  } else {<br />
&nbsp; &nbsp;  $language = addslashes($_GET['lang']);<br />
&nbsp; &nbsp;  }</code><hr />
</div>I notice Dreamweaver uses the first sample when checking for magic_quotes, but I cannot find any references to this method of writing an if/else. <br />
<br />
ON A SITE NOTE:<br />
magic_quotes is now deprecated in 5.3, and fully removed in 6. Any insight in how these types of checks are going to respond in those versions. Will &quot;get_magic_quotes_gpc&quot; receive a value of false, or will an error be thrown since the value should not exist anymore?</div>

<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=7c8679a2240137fec457336cf2b505e5&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=7c8679a2240137fec457336cf2b505e5&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>codamedia</dc:creator>
			<guid isPermaLink="false">http://www.sitepoint.com/forums/showthread.php?t=648269</guid>
		</item>
		<item>
			<title>How can I relate this two tables?</title>
			<link>http://www.pheedcontent.com/click.phdo?i=334c90e63c9fb9dde0276841a1684acc</link>
			<pheedo:origLink>http://www.sitepoint.com/forums/showthread.php?t=648268&amp;amp;goto=newpost</pheedo:origLink>
			<pubDate>Sat, 21 Nov 2009 17:43:34 GMT</pubDate>
			<description><![CDATA[Image: http://img263.imageshack.us/img263/2415/examplea.jpg 

If you notice in the picture there is no a submit bottom but let's suppose there is one. 

table one...


[code]CREATE TABLE IF NOT EXISTS `restaurants` (
  `restaurants_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
 ...<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=334c90e63c9fb9dde0276841a1684acc&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=334c90e63c9fb9dde0276841a1684acc&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><img src="http://img263.imageshack.us/img263/2415/examplea.jpg" border="0" alt="" /><br />
<br />
If you notice in the picture there is no a submit bottom but let's suppose there is one. <br />
<br />
table one...<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">MySQL Code:</div>
	<pre class="alt2" style="margin:0px; padding:6px; border:1px inset; width:480px;max-width:480px;height:148px; overflow:auto"><div dir="ltr" style="text-align:left;"><div style="background:#f0f0f0;"><span style="color: #66cc66;">&#91;</span>code<span style="color: #66cc66;">&#93;</span><span style="color: #993333; font-weight: bold;">CREATE TABLE</span> IF <span style="color: #aa3399; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">EXISTS</span> `restaurants` <span style="color: #66cc66;">&#40;</span></div><div style="">&nbsp; `restaurants_id` <span style="color: #aa9933; font-weight: bold;">MEDIUMINT</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">8</span><span style="color: #66cc66;">&#41;</span> <span style="color: #aa3399; font-weight: bold;">UNSIGNED</span> <span style="color: #aa3399; font-weight: bold;">NOT NULL</span> <span style="color: #aa3399; font-weight: bold;">AUTO_INCREMENT</span>,</div><div style="background:#f0f0f0;">&nbsp; `restaurantname` <span style="color: #aa9933; font-weight: bold;">VARCHAR</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span> <span style="color: #aa3399; font-weight: bold;">NOT NULL</span>,</div><div style="">&nbsp; `image` <span style="color: #aa9933; font-weight: bold;">VARCHAR</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#41;</span> <span style="color: #aa3399; font-weight: bold;">DEFAULT</span> <span style="color: #aa3399; font-weight: bold;">NULL</span>,</div><div style="background:#f0f0f0;">&nbsp; <span style="color: #993333; font-weight: bold;">PRIMARY KEY</span> <span style="color: #66cc66;">&#40;</span>`restaurants_id`<span style="color: #66cc66;">&#41;</span></div><div style=""><span style="color: #66cc66;">&#41;</span> ENGINE=MyISAM&nbsp; <span style="color: #aa3399; font-weight: bold;">DEFAULT</span> <span style="color: #aa3399; font-weight: bold;">CHARSET</span>=utf8 <span style="color: #aa3399; font-weight: bold;">AUTO_INCREMENT</span>=<span style="color: #cc66cc;">173</span> ;</div><div style="background:#f0f0f0;"><span style="color: #66cc66;">&#91;</span>/code<span style="color: #66cc66;">&#93;</span></div></div></pre>
</div>Contains a list of restaurants and input tag name above in the picture is where through an user will get through the restaurant table to look for an X restaurant. <br />
<br />
What about if an user get to choose a food type of the select tags in the pictures, Then how can a query be formed to relate table one with table two which is called restaurant_food_types and is as below..<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">MySQL Code:</div>
	<pre class="alt2" style="margin:0px; padding:6px; border:1px inset; width:480px;max-width:480px;height:132px; overflow:auto"><div dir="ltr" style="text-align:left;"><div style="background:#f0f0f0;"><span style="color: #66cc66;">&#91;</span>code<span style="color: #66cc66;">&#93;</span></div><div style=""><span style="color: #993333; font-weight: bold;">CREATE TABLE</span> IF <span style="color: #aa3399; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">EXISTS</span> `restaurant_food_types` <span style="color: #66cc66;">&#40;</span></div><div style="background:#f0f0f0;">&nbsp; `restaurant_food_types_id` <span style="color: #aa9933; font-weight: bold;">MEDIUMINT</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">8</span><span style="color: #66cc66;">&#41;</span> <span style="color: #aa3399; font-weight: bold;">UNSIGNED</span> <span style="color: #aa3399; font-weight: bold;">NOT NULL</span> <span style="color: #aa3399; font-weight: bold;">AUTO_INCREMENT</span>,</div><div style="">&nbsp; `name` <span style="color: #aa9933; font-weight: bold;">VARCHAR</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">128</span><span style="color: #66cc66;">&#41;</span> CHARACTER <span style="color: #993333; font-weight: bold;">SET</span> utf8 <span style="color: #993333; font-weight: bold;">COLLATE</span> utf8_bin <span style="color: #aa3399; font-weight: bold;">NOT NULL</span>,</div><div style="background:#f0f0f0;">&nbsp; <span style="color: #993333; font-weight: bold;">PRIMARY KEY</span> <span style="color: #66cc66;">&#40;</span>`restaurant_food_types_id`<span style="color: #66cc66;">&#41;</span></div><div style=""><span style="color: #66cc66;">&#41;</span> ENGINE=MyISAM&nbsp; <span style="color: #aa3399; font-weight: bold;">DEFAULT</span> <span style="color: #aa3399; font-weight: bold;">CHARSET</span>=utf8 <span style="color: #aa3399; font-weight: bold;">AUTO_INCREMENT</span>=<span style="color: #cc66cc;">11</span> ;<span style="color: #66cc66;">&#91;</span>/code<span style="color: #66cc66;">&#93;</span></div></div></pre>
</div><br />
Thank you.</div>

<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=334c90e63c9fb9dde0276841a1684acc&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=334c90e63c9fb9dde0276841a1684acc&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=88">Databases</category>
			<dc:creator>co.ador</dc:creator>
			<guid isPermaLink="false">http://www.sitepoint.com/forums/showthread.php?t=648268</guid>
		</item>
		<item>
			<title>hello friends i have a doubt in vbulletin forum</title>
			<link>http://www.pheedcontent.com/click.phdo?i=57670d4f26a51fd0184dc4ad7e268b96</link>
			<pheedo:origLink>http://www.sitepoint.com/forums/showthread.php?t=648267&amp;amp;goto=newpost</pheedo:origLink>
			<pubDate>Sat, 21 Nov 2009 17:41:24 GMT</pubDate>
			<description>i need to use the arabic language in my forum in utf-8 manner how can i use it in tht manner pls tell if any of u know i tried it bye uploading the xml file but its not shoing properly while it is in windows-1256 it will show properly but while if it is in utf-8 it will show in some encoding form i...&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=57670d4f26a51fd0184dc4ad7e268b96&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=57670d4f26a51fd0184dc4ad7e268b96&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 need to use the arabic language in my forum in utf-8 manner how can i use it in tht manner pls tell if any of u know i tried it bye uploading the xml file but its not shoing properly while it is in windows-1256 it will show properly but while if it is in utf-8 it will show in some encoding form i need to display the arabic in utf-8 format</div>

<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=57670d4f26a51fd0184dc4ad7e268b96&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=57670d4f26a51fd0184dc4ad7e268b96&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>kuttus011</dc:creator>
			<guid isPermaLink="false">http://www.sitepoint.com/forums/showthread.php?t=648267</guid>
		</item>
		<item>
			<title>forcing off-site JS snippet to center</title>
			<link>http://www.pheedcontent.com/click.phdo?i=5f8ba23a6add2cc791b38f94fceca5b0</link>
			<pheedo:origLink>http://www.sitepoint.com/forums/showthread.php?t=648266&amp;amp;goto=newpost</pheedo:origLink>
			<pubDate>Sat, 21 Nov 2009 17:28:35 GMT</pubDate>
			<description><![CDATA[Here's the page in question. (http://www.iraqtimeline.com/pawsplace/1col/links.html) (I know, the page is just a stack o'links....)

If you scroll down just a bit, you'll see a blurb contained in one of Paul O'Brien's nifty rounded corners containers, titled "All of Paw's Place's Adoptable Dogs are...<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=5f8ba23a6add2cc791b38f94fceca5b0&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=5f8ba23a6add2cc791b38f94fceca5b0&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><a href="http://www.iraqtimeline.com/pawsplace/1col/links.html" target="_blank">Here's the page in question.</a> (I know, the page is just a stack o'links....)<br />
<br />
If you scroll down just a bit, you'll see a blurb contained in one of Paul O'Brien's nifty rounded corners containers, titled &quot;All of Paw's Place's Adoptable Dogs are on Petfinder.&quot; The Petfinder element is a piece of JavaScript hosted on Petfinder itself, and not on the local server. I can't seem to make it center. Surrounding it in a div that centers it and labels it a block element doesn't work. Anyone have any ideas?</div>

<br clear="both" style="clear: both;"/>
<br clear="both" style="clear: both;"/>
<a href="http://ads.pheedo.com/click.phdo?s=5f8ba23a6add2cc791b38f94fceca5b0&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=5f8ba23a6add2cc791b38f94fceca5b0&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>Black Max</dc:creator>
			<guid isPermaLink="false">http://www.sitepoint.com/forums/showthread.php?t=648266</guid>
		</item>
		<item>
			<title>Wordpress MU question</title>
			<link>http://www.pheedcontent.com/click.phdo?i=a0a9a3d1627bcd845a8a776f78740030</link>
			<pheedo:origLink>http://www.sitepoint.com/forums/showthread.php?t=648265&amp;amp;goto=newpost</pheedo:origLink>
			<pubDate>Sat, 21 Nov 2009 17:27:17 GMT</pubDate>
			<description>Does anyone know how to use WordPress MU? I just started using it, and although the main blog/site has installed fine and I have been adding content and things seem ok, I am having difficulty setting up a subdomain (another blog on the same website)... 

Basically, my website is...&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=a0a9a3d1627bcd845a8a776f78740030&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=a0a9a3d1627bcd845a8a776f78740030&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 anyone know how to use WordPress MU? I just started using it, and although the main blog/site has installed fine and I have been adding content and things seem ok, I am having difficulty setting up a subdomain (another blog on the same website)... <br />
<br />
Basically, my website is here...<br />
<a href="http://technologynews.eu" target="_blank">http://technologynews.eu</a><br />
... and that is ok, it has news like I planned<br />
<br />
Then, I created a blog using the &quot;Site Admin&quot; in the WP admin area (down the left)...<br />
<a href="http://blog.technologynews.eu" target="_blank">http://blog.technologynews.eu</a><br />
... but now I'm stuck, what now?<br />
<br />
Every time I try to visit the new blog (<a href="http://blog.technologynews.eu" target="_blank">http://blog.technologynews.eu</a>) it just redirects me to the admin area... I'm confused... basically, the blog does not exist on the web, but in the admin area, it does exist... or something...<br />
<br />
I think I need to create a separate folder for the blog within the web space &#8211; I have no idea... I'd like to learn this as I would like to give contributors their own blog space (own subdomain and admin area)...<br />
<br />
If you know, I'd appreciate some pointers... 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=a0a9a3d1627bcd845a8a776f78740030&p=1"><img alt="" style="border: 0;" border="0" src="http://ads.pheedo.com/img.phdo?s=a0a9a3d1627bcd845a8a776f78740030&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=242">Blogging</category>
			<dc:creator>amonta</dc:creator>
			<guid isPermaLink="false">http://www.sitepoint.com/forums/showthread.php?t=648265</guid>
		</item>
	</channel>
</rss>