 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: MySQLi and PHP problem with code</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/mysqli-and-php-problem-with-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/mysqli-and-php-problem-with-code/</link>
	<description></description>
	<lastBuildDate>Sat, 25 May 2013 17:28:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: reliant</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/mysqli-and-php-problem-with-code/#comment-75812</link>
		<dc:creator>reliant</dc:creator>
		<pubDate>Fri, 09 Apr 2010 14:53:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-75812</guid>
		<description><![CDATA[This is cleaner

&lt;pre&gt;echo &#039;&lt;td colspan=3&gt;(&#039; . $Row[&#039;areaCode&#039;] . &#039;) &#039; . $Row[&#039;prefix&#039;] . &#039;-&#039; . $Row[&#039;lineNumber&#039;] . &#039;&lt;/td&gt;&lt;/tr&gt;&#039;;&lt;/pre&gt;

or 

&lt;pre&gt;&lt;td colspan=3&gt;(&lt;?=$Row[&#039;areaCode&#039;]?&gt;)&lt;?=$Row[&#039;prefix&#039;]?&gt;-&lt;?=$Row[&#039;lineNumber&#039;]?&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/pre&gt;]]></description>
		<content:encoded><![CDATA[<p>This is cleaner</p>
<pre>echo '&lt;td colspan=3&gt;(' . $Row['areaCode'] . ') ' . $Row['prefix'] . '-' . $Row['lineNumber'] . '&lt;/td&gt;&lt;/tr&gt;';</pre>
<p>or </p>
<pre>&lt;td colspan=3&gt;(&lt;?=$Row['areaCode']?&gt;)&lt;?=$Row['prefix']?&gt;-&lt;?=$Row['lineNumber']?&gt;&lt;/td&gt;&lt;/tr&gt;</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: patoswalt</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/mysqli-and-php-problem-with-code/#comment-75425</link>
		<dc:creator>patoswalt</dc:creator>
		<pubDate>Wed, 31 Mar 2010 18:11:05 +0000</pubDate>
		<guid isPermaLink="false">#comment-75425</guid>
		<description><![CDATA[Just in case someone else comes across this kind of problem in the future.

The code I finally figured out is

&lt;pre&gt;echo &quot;&lt;td colspan=3&gt;({$Row[&#039;areaCode&#039;]}) {$Row[&#039;prefix&#039;]}-{$Row[&#039;lineNumber&#039;]}&lt;/td&gt;&lt;/tr&gt;&quot;;&lt;/pre&gt;

It will print out the phone number as follows:

(000) 000-0000

Works perfectly. Now to finish the rest of the project.

Thanks, Patricia]]></description>
		<content:encoded><![CDATA[<p>Just in case someone else comes across this kind of problem in the future.</p>
<p>The code I finally figured out is</p>
<pre>echo "&lt;td colspan=3&gt;({$Row['areaCode']}) {$Row['prefix']}-{$Row['lineNumber']}&lt;/td&gt;&lt;/tr&gt;";</pre>
<p>It will print out the phone number as follows:</p>
<p>(000) 000-0000</p>
<p>Works perfectly. Now to finish the rest of the project.</p>
<p>Thanks, Patricia</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: patoswalt</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/mysqli-and-php-problem-with-code/#comment-75374</link>
		<dc:creator>patoswalt</dc:creator>
		<pubDate>Tue, 30 Mar 2010 22:33:20 +0000</pubDate>
		<guid isPermaLink="false">#comment-75374</guid>
		<description><![CDATA[Hi.

Parse error: parse error, expecting `&#039;}&#039;&#039; in C:wampwwwOswaltPatricia_Unit7AssignmentOswaltP_Connect.php on line 48

is the error message. Sorry, don&#039;t know why I didn&#039;t put that in. It also dawned on me that when I created the fields, each of the three fields had max values. areaCode has a max value of 3, same with prefix and the lineNumber has a max value of 4.

I&#039;m not sure if that would make a difference or not when I&#039;m simply trying to display the contents in a table.

Thanks, Patricia]]></description>
		<content:encoded><![CDATA[<p>Hi.</p>
<p>Parse error: parse error, expecting `&#8217;}&#8221; in C:wampwwwOswaltPatricia_Unit7AssignmentOswaltP_Connect.php on line 48</p>
<p>is the error message. Sorry, don&#8217;t know why I didn&#8217;t put that in. It also dawned on me that when I created the fields, each of the three fields had max values. areaCode has a max value of 3, same with prefix and the lineNumber has a max value of 4.</p>
<p>I&#8217;m not sure if that would make a difference or not when I&#8217;m simply trying to display the contents in a table.</p>
<p>Thanks, Patricia</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/mysqli-and-php-problem-with-code/#comment-75373</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Tue, 30 Mar 2010 22:11:07 +0000</pubDate>
		<guid isPermaLink="false">#comment-75373</guid>
		<description><![CDATA[Patricia,  what is the error message ?]]></description>
		<content:encoded><![CDATA[<p>Patricia,  what is the error message ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 6/9 queries in 0.019 seconds using memcached
Object Caching 310/313 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-25 22:00:05 -->