<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>PHPBuilder.com - General Help</title>
		<link>http://board.phpbuilder.com/</link>
		<description>Forum for General Help questions pertaining to PHP</description>
		<language>en</language>
		<lastBuildDate>Sat, 18 May 2013 16:37:42 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://board.phpbuilder.com/images/misc/rss.png</url>
			<title>PHPBuilder.com - General Help</title>
			<link>http://board.phpbuilder.com/</link>
		</image>
		<item>
			<title><![CDATA[[RESOLVED] Recent appearance of error_log in ALL subdirs: "Module 'timezonedb' already loaded"]]></title>
			<link>http://board.phpbuilder.com/showthread.php?10389731-RESOLVED-Recent-appearance-of-error_log-in-ALL-subdirs-quot-Module-timezonedb-already-loaded-quot&amp;goto=newpost</link>
			<pubDate>Fri, 17 May 2013 15:41:01 GMT</pubDate>
			<description><![CDATA[Hi; I have just recently noticed that the error_log files in ALL active subdirectories of my site are adding a new line every single, freakin' time a .php page is called!

Each line reads like so (with the correct time/date):

[16-May-2013 14:13:12 America/Los_Angeles] PHP Warning:  Module 'timezonedb' already loaded in Unknown on line 0

...I have been working on a bunch of new stuff, but this is even happening in old parts of the site that have not been touched.

I contacted the host provider support board and was advised to add the following line to my .htaccess file 

date.timezone = America/Chicago

(I don't think I have ever edited in 5+ years of using this host)

I added that line...which completely disabled my site.  So I found that the apparent correct syntax is actually:

SetEnv TZ America/Chicago

...which allowed my site to work once again (phew!)
The error messages are now conveniently tagged with a correct Central timezone stamp, a la:
[16-May-2013 16:48:36 America/Chicago] PHP Warning:  Module 'timezonedb' already loaded in Unknown on line 0

I am suspecting this has something to do with a bug in the server's installation or configuration of .php (and therefore I will not be able to fix the constant creation of these error messages).  But I am open to suggestion.

If it DOES look like a server-based glitch that the "powers that be" must fix does anybody here know anything specific I can suggest that these folks look at?

Thanks.]]></description>
			<content:encoded><![CDATA[<div>Hi; I have just recently noticed that the error_log files in ALL active subdirectories of my site are adding a new line every single, freakin' time a .php page is called!<br />
<br />
Each line reads like so (with the correct time/date):<br />
<br />
[16-May-2013 14:13:12 America/Los_Angeles] PHP Warning:  Module 'timezonedb' already loaded in Unknown on line 0<br />
<br />
...I have been working on a bunch of new stuff, but this is even happening in old parts of the site that have not been touched.<br />
<br />
I contacted the host provider support board and was advised to add the following line to my .htaccess file <br />
<br />
date.timezone = America/Chicago<br />
<br />
(I don't think I have ever edited in 5+ years of using this host)<br />
<br />
I added that line...which completely disabled my site.  So I found that the apparent correct syntax is actually:<br />
<br />
SetEnv TZ America/Chicago<br />
<br />
...which allowed my site to work once again (phew!)<br />
The error messages are now conveniently tagged with a correct Central timezone stamp, a la:<br />
[16-May-2013 16:48:36 America/Chicago] PHP Warning:  Module 'timezonedb' already loaded in Unknown on line 0<br />
<br />
I am suspecting this has something to do with a bug in the server's installation or configuration of .php (and therefore I will not be able to fix the constant creation of these error messages).  But I am open to suggestion.<br />
<br />
If it DOES look like a server-based glitch that the &quot;powers that be&quot; must fix does anybody here know anything specific I can suggest that these folks look at?<br />
<br />
Thanks.</div>

 ]]></content:encoded>
			<category domain="http://board.phpbuilder.com/forumdisplay.php?2-General-Help">General Help</category>
			<dc:creator>Joseph Sliker</dc:creator>
			<guid isPermaLink="true">http://board.phpbuilder.com/showthread.php?10389731-RESOLVED-Recent-appearance-of-error_log-in-ALL-subdirs-quot-Module-timezonedb-already-loaded-quot</guid>
		</item>
		<item>
			<title>displaying data on a page with databases</title>
			<link>http://board.phpbuilder.com/showthread.php?10389715-displaying-data-on-a-page-with-databases&amp;goto=newpost</link>
			<pubDate>Wed, 15 May 2013 12:20:03 GMT</pubDate>
			<description><![CDATA[Hi,

I am at the next stage of learning and so far I have a simple select statement working with PDO as illustrated below.  This works fine if you want a list of things or just one thing:

What if, for example I had lets say four products on one page with headings but each product is a different level:

bronze  |  silver  |  gold   |  platinum

Try to imagine that they have similar services but just more of, when you select the higher package.

I am not looking for anyone to write the code for me, just steer me in the right direction.

Here is my code so far which works for one thing.


PHP:
---------


$book_query = ("SELECT * FROM packages WHERE service = ? LIMIT 10"); 
if(!$book_stmt = $pdo->prepare($host_query)){ 
    // prepare failed 
    echo "<pre>Prepare failed:\n"; 
    print_r($pdo->errorInfo()); 
    echo "</pre>"; 
} else { 
    if(!$book_stmt->execute(array('books'))){ 
        // execute failed 
        echo "<pre>Execute failed:\n"; 
        print_r($book_stmt->errorInfo()); 
        echo "</pre>"; 
    } else { 
        // query ran without any errors, you can test if it returned any rows and use them here 
         
    } 
} 
// Database   

if ($book_stmt->rowCount() > 0) {
while ($col = $book_stmt->fetch(PDO::FETCH_ASSOC)) {  
    $title = $col['title']; 
    $author = $col['author']; 
    $descr = $col[''description]; 
    $type = $col['type']; 
    $language = $col['language']; 
    $paperback = $col['paperback']; 
    $currency = $col['currency']; 
    $price = $col['price']; 
     

    } 

} else { 

    $title = 'no data'; 
    $author = 'no data'; 
    $descr = 'no data'; 
    $type = 'no data'; 
    $language = 'no data'; 
    $paperback = 'no data'; 
    $currency = 'no data'; 
    $price = 'no data'; 

}
---------

I hope what i am trying to achieve is clear.  Any help will be great ;)]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I am at the next stage of learning and so far I have a simple select statement working with PDO as illustrated below.  This works fine if you want a list of things or just one thing:<br />
<br />
What if, for example I had lets say four products on one page with headings but each product is a different level:<br />
<br />
bronze  |  silver  |  gold   |  platinum<br />
<br />
Try to imagine that they have similar services but just more of, when you select the higher package.<br />
<br />
I am not looking for anyone to write the code for me, just steer me in the right direction.<br />
<br />
Here is my code so far which works for one thing.<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB"><br /><br />$book_query&nbsp;</span><span style="color: #007700">=&nbsp;(</span><span style="color: #DD0000">"SELECT&nbsp;*&nbsp;FROM&nbsp;packages&nbsp;WHERE&nbsp;service&nbsp;=&nbsp;?&nbsp;LIMIT&nbsp;10"</span><span style="color: #007700">);&nbsp;<br />if(!</span><span style="color: #0000BB">$book_stmt&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$pdo</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$host_query</span><span style="color: #007700">)){&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;prepare&nbsp;failed&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">"&lt;pre&gt;Prepare&nbsp;failed:\n"</span><span style="color: #007700">;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">$pdo</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">errorInfo</span><span style="color: #007700">());&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">"&lt;/pre&gt;"</span><span style="color: #007700">;&nbsp;<br />}&nbsp;else&nbsp;{&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;if(!</span><span style="color: #0000BB">$book_stmt</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">execute</span><span style="color: #007700">(array(</span><span style="color: #DD0000">'books'</span><span style="color: #007700">))){&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;execute&nbsp;failed&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">"&lt;pre&gt;Execute&nbsp;failed:\n"</span><span style="color: #007700">;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">$book_stmt</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">errorInfo</span><span style="color: #007700">());&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">"&lt;/pre&gt;"</span><span style="color: #007700">;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;query&nbsp;ran&nbsp;without&nbsp;any&nbsp;errors,&nbsp;you&nbsp;can&nbsp;test&nbsp;if&nbsp;it&nbsp;returned&nbsp;any&nbsp;rows&nbsp;and&nbsp;use&nbsp;them&nbsp;here&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}&nbsp;<br />}&nbsp;<br /></span><span style="color: #FF8000">//&nbsp;Database&nbsp;&nbsp;&nbsp;<br /><br /></span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$book_stmt</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">rowCount</span><span style="color: #007700">()&nbsp;&gt;&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)&nbsp;{<br />while&nbsp;(</span><span style="color: #0000BB">$col&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$book_stmt</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">fetch</span><span style="color: #007700">(</span><span style="color: #0000BB">PDO</span><span style="color: #007700">::</span><span style="color: #0000BB">FETCH_ASSOC</span><span style="color: #007700">))&nbsp;{&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$title&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$col</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'title'</span><span style="color: #007700">&#93;;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$author&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$col</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'author'</span><span style="color: #007700">&#93;;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$descr&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$col</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">''</span><span style="color: #0000BB">description</span><span style="color: #007700">&#93;;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$type&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$col</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'type'</span><span style="color: #007700">&#93;;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$language&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$col</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'language'</span><span style="color: #007700">&#93;;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$paperback&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$col</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'paperback'</span><span style="color: #007700">&#93;;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$currency&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$col</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'currency'</span><span style="color: #007700">&#93;;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$price&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$col</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'price'</span><span style="color: #007700">&#93;;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;<br /><br />}&nbsp;else&nbsp;{&nbsp;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$title&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'no&nbsp;data'</span><span style="color: #007700">;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$author&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'no&nbsp;data'</span><span style="color: #007700">;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$descr&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'no&nbsp;data'</span><span style="color: #007700">;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$type&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'no&nbsp;data'</span><span style="color: #007700">;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$language&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'no&nbsp;data'</span><span style="color: #007700">;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$paperback&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'no&nbsp;data'</span><span style="color: #007700">;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$currency&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'no&nbsp;data'</span><span style="color: #007700">;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$price&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'no&nbsp;data'</span><span style="color: #007700">;&nbsp;<br /><br />}&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code><hr />
</div> <br />
I hope what i am trying to achieve is clear.  Any help will be great ;)</div>

 ]]></content:encoded>
			<category domain="http://board.phpbuilder.com/forumdisplay.php?2-General-Help">General Help</category>
			<dc:creator>chrisguk</dc:creator>
			<guid isPermaLink="true">http://board.phpbuilder.com/showthread.php?10389715-displaying-data-on-a-page-with-databases</guid>
		</item>
		<item>
			<title><![CDATA[[RESOLVED] regex help, matching $i number of numbers in $var - stuck]]></title>
			<link>http://board.phpbuilder.com/showthread.php?10389687-RESOLVED-regex-help-matching-i-number-of-numbers-in-var-stuck&amp;goto=newpost</link>
			<pubDate>Sun, 12 May 2013 05:48:40 GMT</pubDate>
			<description><![CDATA[Okay, I am trying to check a $var for numbers, anywhere in the $var

What I have is 
PHP:
---------
if(($number != 0) && (preg_match('/[0-9]{'.$number.'}/', $var) == 0))
{
  // throw error
}
---------
Where $number is a user defined quantity of numbers that must be in the $var.. unfortunately this preg_match only checks for side by side, but it could be anywhere in the $var

eg:  
PHP:
---------
$var = 'fa5ba5rwbv';
$number = 2;
---------
this should pass, but doesn't with my expression... but I can't find an example matching my specific need... can anyone help here?]]></description>
			<content:encoded><![CDATA[<div>Okay, I am trying to check a $var for numbers, anywhere in the $var<br />
<br />
What I have is <div class="bbcode_container">
	<div class="bbcode_description">PHP Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #007700">if((</span><span style="color: #0000BB">$number&nbsp;</span><span style="color: #007700">!=&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)&nbsp;&amp;&amp;&nbsp;(</span><span style="color: #0000BB">preg_match</span><span style="color: #007700">(</span><span style="color: #DD0000">'/&#91;0-9&#93;{'</span><span style="color: #007700">.</span><span style="color: #0000BB">$number</span><span style="color: #007700">.</span><span style="color: #DD0000">'}/'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$var</span><span style="color: #007700">)&nbsp;==&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">))<br />{<br />&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;throw&nbsp;error<br /></span><span style="color: #007700">}&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code><hr />
</div> Where $number is a user defined quantity of numbers that must be in the $var.. unfortunately this preg_match only checks for side by side, but it could be anywhere in the $var<br />
<br />
eg:  <div class="bbcode_container">
	<div class="bbcode_description">PHP Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB">$var&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'fa5ba5rwbv'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$number&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">2</span><span style="color: #007700">;&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code><hr />
</div> this should pass, but doesn't with my expression... but I can't find an example matching my specific need... can anyone help here?</div>

 ]]></content:encoded>
			<category domain="http://board.phpbuilder.com/forumdisplay.php?2-General-Help">General Help</category>
			<dc:creator>kender</dc:creator>
			<guid isPermaLink="true">http://board.phpbuilder.com/showthread.php?10389687-RESOLVED-regex-help-matching-i-number-of-numbers-in-var-stuck</guid>
		</item>
		<item>
			<title>load average for intervals measured in seconds rather than minutes?</title>
			<link>http://board.phpbuilder.com/showthread.php?10389679-load-average-for-intervals-measured-in-seconds-rather-than-minutes&amp;goto=newpost</link>
			<pubDate>Sat, 11 May 2013 22:22:09 GMT</pubDate>
			<description><![CDATA[I was wondering if there might exist a linux command or php function that will tell me how busy my CPU is?  I've gotten accustomed to typing 'w' which gives me a load average (not quite the same thing as CPU utilization but pretty good) or 'top' (which does actually calculate some kind of CPU % utilization).

Unfortunately, the 'w' command only shows load averages over 1, 5, and 15 minutes.  I need something that looks at a shorter interval (e.g., 15 seconds).  Can anyone tell me how I might get load average on the order of seconds rather than minutes?

Why do I need this?  Because I'm writing a multi-threaded PHP script and would like it to be able to utilize all available resources up to a point -- I want to check the CPU utilization before deciding how many threads to spawn.]]></description>
			<content:encoded><![CDATA[<div>I was wondering if there might exist a linux command or php function that will tell me how busy my CPU is?  I've gotten accustomed to typing 'w' which gives me a load average (not quite the same thing as CPU utilization but pretty good) or 'top' (which does actually calculate some kind of CPU % utilization).<br />
<br />
Unfortunately, the 'w' command only shows load averages over 1, 5, and 15 minutes.  I need something that looks at a shorter interval (e.g., 15 seconds).  Can anyone tell me how I might get load average on the order of seconds rather than minutes?<br />
<br />
Why do I need this?  Because I'm writing a multi-threaded PHP script and would like it to be able to utilize all available resources up to a point -- I want to check the CPU utilization before deciding how many threads to spawn.</div>

 ]]></content:encoded>
			<category domain="http://board.phpbuilder.com/forumdisplay.php?2-General-Help">General Help</category>
			<dc:creator>sneakyimp</dc:creator>
			<guid isPermaLink="true">http://board.phpbuilder.com/showthread.php?10389679-load-average-for-intervals-measured-in-seconds-rather-than-minutes</guid>
		</item>
		<item>
			<title>Safe deployment of incremental changes from SVN to a production machine?</title>
			<link>http://board.phpbuilder.com/showthread.php?10389659-Safe-deployment-of-incremental-changes-from-SVN-to-a-production-machine&amp;goto=newpost</link>
			<pubDate>Wed, 08 May 2013 18:37:56 GMT</pubDate>
			<description><![CDATA[I'm working on a project where we use SVN for our source code control. When changes are committed to the repository, a process on the svn server takes care to copy the changed files to our development server.

Our production server, however, has no such automatic connection -- and for good reason.  We automatically deploy committed code changes to the dev server for the purpose of testing. by the time anything gets committed to the repo, we have typically tested it on our local workstations. We don't want to auto-deploy repo changes to our live server for obvious reasons -- something could easily break.

The question I have is *once we are convinced that the repo changes need to be rolled out to the production server, what is the best way?*

I have suggested running svn export on the production server when we are ready but my coworker is balking -- says it makes him too nervous.  Furthermore, svn export will fetch the entire repo unless I explicitly limit the command to some subdirectory or individual file.  Additionally svn export might alter file permissions, preventing apache from writing certain data files and/or source files and/or configuration files.  There's also the possibility that one might check one's local configuration file into the repo and this would ultimately end up in dev/test/sandbox credentials finding their way onto a production server.

Can anyone recommend a sound approach to the workstation-dev server-production server setup when using svn?  At the moment, we are manually tracking changed files and uploading them to the production server via FTP.  This is a chore and prone to human error.]]></description>
			<content:encoded><![CDATA[<div>I'm working on a project where we use SVN for our source code control. When changes are committed to the repository, a process on the svn server takes care to copy the changed files to our development server.<br />
<br />
Our production server, however, has no such automatic connection -- and for good reason.  We automatically deploy committed code changes to the dev server for the purpose of testing. by the time anything gets committed to the repo, we have typically tested it on our local workstations. We don't want to auto-deploy repo changes to our live server for obvious reasons -- something could easily break.<br />
<br />
The question I have is <b>once we are convinced that the repo changes need to be rolled out to the production server, what is the best way?</b><br />
<br />
I have suggested running svn export on the production server when we are ready but my coworker is balking -- says it makes him too nervous.  Furthermore, svn export will fetch the <i>entire repo</i> unless I explicitly limit the command to some subdirectory or individual file.  Additionally svn export might alter file permissions, preventing apache from writing certain data files and/or source files and/or configuration files.  There's also the possibility that one might check one's local configuration file into the repo and this would ultimately end up in dev/test/sandbox credentials finding their way onto a production server.<br />
<br />
Can anyone recommend a sound approach to the workstation-dev server-production server setup when using svn?  At the moment, we are manually tracking changed files and uploading them to the production server via FTP.  This is a chore and prone to human error.</div>

 ]]></content:encoded>
			<category domain="http://board.phpbuilder.com/forumdisplay.php?2-General-Help">General Help</category>
			<dc:creator>sneakyimp</dc:creator>
			<guid isPermaLink="true">http://board.phpbuilder.com/showthread.php?10389659-Safe-deployment-of-incremental-changes-from-SVN-to-a-production-machine</guid>
		</item>
		<item>
			<title>script to export all documents uploaded online website stored in Mysql database.</title>
			<link>http://board.phpbuilder.com/showthread.php?10389651-script-to-export-all-documents-uploaded-online-website-stored-in-Mysql-database.&amp;goto=newpost</link>
			<pubDate>Tue, 07 May 2013 17:12:56 GMT</pubDate>
			<description>All,

I need some help with a script(php, sql, etc) to run on MySQL database, to export all the documents which users uploaded on to the online web application.  The documents are in different file type (eg. pdf, mword, ms-powerpoint, ms-excel, etc).  The data is stored on one table.  

Thank you all,</description>
			<content:encoded><![CDATA[<div>All,<br />
<br />
I need some help with a script(php, sql, etc) to run on MySQL database, to export all the documents which users uploaded on to the online web application.  The documents are in different file type (eg. pdf, mword, ms-powerpoint, ms-excel, etc).  The data is stored on one table.  <br />
<br />
Thank you all,</div>

 ]]></content:encoded>
			<category domain="http://board.phpbuilder.com/forumdisplay.php?2-General-Help">General Help</category>
			<dc:creator>sipiwind</dc:creator>
			<guid isPermaLink="true">http://board.phpbuilder.com/showthread.php?10389651-script-to-export-all-documents-uploaded-online-website-stored-in-Mysql-database.</guid>
		</item>
		<item>
			<title>Using Pagination and search function together</title>
			<link>http://board.phpbuilder.com/showthread.php?10389645-Using-Pagination-and-search-function-together&amp;goto=newpost</link>
			<pubDate>Tue, 07 May 2013 11:41:38 GMT</pubDate>
			<description>Good afternoon friends at PHPBUILDER

I have a script that allows a user to type in a search term and the page will refresh with relevant search terms

My pagination script uses $_GET to display information and so does my search script.

How do I display both the page=X and search=X on the same page

Whenever I click the NEXT button on my site, index.php?search= turns into index.php?page=

Any suggestions for adding both GET statements to the URL?

Is pagination compatible with PHP search function.

Thanks :) :)</description>
			<content:encoded><![CDATA[<div>Good afternoon friends at PHPBUILDER<br />
<br />
I have a script that allows a user to type in a search term and the page will refresh with relevant search terms<br />
<br />
My pagination script uses $_GET to display information and so does my search script.<br />
<br />
How do I display both the page=X and search=X on the same page<br />
<br />
Whenever I click the NEXT button on my site, index.php?search= turns into index.php?page=<br />
<br />
Any suggestions for adding both GET statements to the URL?<br />
<br />
Is pagination compatible with PHP search function.<br />
<br />
Thanks :) :)</div>

 ]]></content:encoded>
			<category domain="http://board.phpbuilder.com/forumdisplay.php?2-General-Help">General Help</category>
			<dc:creator>phpnewbie34</dc:creator>
			<guid isPermaLink="true">http://board.phpbuilder.com/showthread.php?10389645-Using-Pagination-and-search-function-together</guid>
		</item>
		<item>
			<title>Live Keyword Search</title>
			<link>http://board.phpbuilder.com/showthread.php?10389615-Live-Keyword-Search&amp;goto=newpost</link>
			<pubDate>Sat, 04 May 2013 12:12:11 GMT</pubDate>
			<description><![CDATA[Good morning programmers,

I'm looking to create a live keyword search using PHP, MySQL

Is this possible to do without using Javascript or another programming language?

Any suggestions would be much appreciated]]></description>
			<content:encoded><![CDATA[<div>Good morning programmers,<br />
<br />
I'm looking to create a live keyword search using PHP, MySQL<br />
<br />
Is this possible to do without using Javascript or another programming language?<br />
<br />
Any suggestions would be much appreciated</div>

 ]]></content:encoded>
			<category domain="http://board.phpbuilder.com/forumdisplay.php?2-General-Help">General Help</category>
			<dc:creator>phpnewbie34</dc:creator>
			<guid isPermaLink="true">http://board.phpbuilder.com/showthread.php?10389615-Live-Keyword-Search</guid>
		</item>
		<item>
			<title><![CDATA[Parse error: syntax error, unexpected '<' in /home/manotoin/public_html...]]></title>
			<link>http://board.phpbuilder.com/showthread.php?10389607-Parse-error-syntax-error-unexpected-lt-in-home-manotoin-public_html...&amp;goto=newpost</link>
			<pubDate>Fri, 03 May 2013 22:57:49 GMT</pubDate>
			<description><![CDATA[hi
i see this error when i try too remember my login password:
Parse error: syntax error, unexpected '<' in /home/manotoin/public_html/index.php on line 21


Code:
---------
<?php

/*
+ ----------------------------------------------------------------------------+
|     e107 website system
|
|     Copyright (C) 2001-2002 Steve Dunstan (jalist@e107.org)
|     Copyright (C) 2008-2010 e107 Inc (e107.org)
|
|
|     Released under the terms and conditions of the
|     GNU General Public License (http://gnu.org).
|
|     $URL: https://e107.svn.sourceforge.net/svnroot/e107/trunk/e107_0.7/index.php $
|     $Revision: 11678 $
|     $Id: index.php 11678 2010-08-22 00:43:45Z e107coders $
|     $Author: e107coders $
+----------------------------------------------------------------------------+
*/

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-22341610-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

require_once('class2.php');

if (file_exists('index_include.php')) {
	include('index_include.php');
}

if (!is_array($pref['frontpage']) && $pref['frontpage'] != 'Array') {
	if (!$pref['frontpage'] || $pref['frontpage'] == 'Array.php') {
		$up_pref = 'news.php';
	} else if ($pref['frontpage'] == 'links') {
		$up_pref = $PLUGINS_DIRECTORY.'links_page/links.php';
	} else if ($pref['frontpage'] == 'forum') {
		$up_pref = $PLUGINS_DIRECTORY.'forum/forum.php';
	} else if (is_numeric($pref['frontpage'])) {
		$up_pref = $PLUGINS_DIRECTORY.'content/content.php?content.'.$pref['frontpage'];
	} else if (substr($pref['frontpage'], -1) != '/' && strpos($pref['frontpage'], '.') === FALSE) {
		$up_pref = $pref['frontpage'].'.php';
	} else {
		$up_pref = $pref['frontpage'];
	}
	unset($pref['frontpage']);
	$pref['frontpage']['all'] = $up_pref;
	save_prefs();
}

$query = (e_QUERY && e_QUERY != '' && !$_GET['elan']) ? '?'.e_QUERY : '';

if ($pref['membersonly_enabled'] && !USER) {
	header('location: '.e_LOGIN);
	exit;
} else if (isset($pref['frontpage']['all']) && $pref['frontpage']['all']) {
	$location = ((strpos($pref['frontpage']['all'], 'http') === FALSE) ? e_BASE : '').$pref['frontpage']['all'].$query;
} else if (ADMIN) {
	$location =  ((strpos($pref['frontpage']['254'], 'http') === FALSE) ? e_BASE : '').$pref['frontpage']['254'].$query;
} else if (USER) {
	require_once(e_HANDLER.'userclass_class.php');
	$class_list = get_userclass_list();
	foreach ($class_list as $fp_class) {
		$inclass = false;
		if (!$inclass && check_class($fp_class['userclass_id'])) {
			$location = ((strpos($pref['frontpage'][$fp_class['userclass_id']], 'http') === FALSE) ? e_BASE : '').$pref['frontpage'][$fp_class['userclass_id']].$query;
			$inclass = true;
		}
	}
	$location = $location ? $location : ((strpos($pref['frontpage']['253'], 'http') === FALSE) ? e_BASE : '').$pref['frontpage']['253'].$query;
} else {
	$location = ((strpos($pref['frontpage']['252'], 'http') === FALSE) ? e_BASE : '').$pref['frontpage']['252'].$query;
}

// handle redirect and include front page methods
if(isset($pref['frontpage_method']) && $pref['frontpage_method'] == "include") {
	if($location == "news.php") {
		require_once("news.php");
	} elseif ($location == PLUGINS_DIRECTORY."forum/forum.php") {
		require_once($PLUGINS_DIRECTORY."forum/forum.php");
	} elseif (preg_match('/^page\.php\?([0-9]*)$/', $location)) {
		$e_QUERY = preg_match('/^page\.php\?([0-9]*)$/', $location);
		require_once("page.php");
	} else {

	  	header("Location: {$location}");
		exit();
	}
} else {
	list($page,$str) = explode("?",$location."?"); // required to prevent infinite looping when queries are  used on index.php.
	if($page == "index.php") // Welcome Message is the front-page.
	{
      	require_once(HEADERF);
	 	require_once(FOOTERF);
	  	exit;
	}
	elseif($page != "index.php") // redirect to different frontpage.
	{
		header("Location: {$location}");
	}

	exit();
}

?>
---------
]]></description>
			<content:encoded><![CDATA[<div>hi<br />
i see this error when i try too remember my login password:<br />
Parse error: syntax error, unexpected '&lt;' in /home/manotoin/public_html/index.php on line 21<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&lt;?php<br />
<br />
/*<br />
+ ----------------------------------------------------------------------------+<br />
|&nbsp; &nbsp;  e107 website system<br />
|<br />
|&nbsp; &nbsp;  Copyright (C) 2001-2002 Steve Dunstan (jalist@e107.org)<br />
|&nbsp; &nbsp;  Copyright (C) 2008-2010 e107 Inc (e107.org)<br />
|<br />
|<br />
|&nbsp; &nbsp;  Released under the terms and conditions of the<br />
|&nbsp; &nbsp;  GNU General Public License (http://gnu.org).<br />
|<br />
|&nbsp; &nbsp;  $URL: https://e107.svn.sourceforge.net/svnroot/e107/trunk/e107_0.7/index.php $<br />
|&nbsp; &nbsp;  $Revision: 11678 $<br />
|&nbsp; &nbsp;  $Id: index.php 11678 2010-08-22 00:43:45Z e107coders $<br />
|&nbsp; &nbsp;  $Author: e107coders $<br />
+----------------------------------------------------------------------------+<br />
*/<br />
<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
<br />
&nbsp; var _gaq = _gaq || [];<br />
&nbsp; _gaq.push(['_setAccount', 'UA-22341610-1']);<br />
&nbsp; _gaq.push(['_trackPageview']);<br />
<br />
&nbsp; (function() {<br />
&nbsp; &nbsp; var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;<br />
&nbsp; &nbsp; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';<br />
&nbsp; &nbsp; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);<br />
&nbsp; })();<br />
<br />
&lt;/script&gt;<br />
<br />
require_once('class2.php');<br />
<br />
if (file_exists('index_include.php')) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; include('index_include.php');<br />
}<br />
<br />
if (!is_array($pref['frontpage']) &amp;&amp; $pref['frontpage'] != 'Array') {<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (!$pref['frontpage'] || $pref['frontpage'] == 'Array.php') {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $up_pref = 'news.php';<br />
&nbsp; &nbsp; &nbsp; &nbsp; } else if ($pref['frontpage'] == 'links') {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $up_pref = $PLUGINS_DIRECTORY.'links_page/links.php';<br />
&nbsp; &nbsp; &nbsp; &nbsp; } else if ($pref['frontpage'] == 'forum') {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $up_pref = $PLUGINS_DIRECTORY.'forum/forum.php';<br />
&nbsp; &nbsp; &nbsp; &nbsp; } else if (is_numeric($pref['frontpage'])) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $up_pref = $PLUGINS_DIRECTORY.'content/content.php?content.'.$pref['frontpage'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; } else if (substr($pref['frontpage'], -1) != '/' &amp;&amp; strpos($pref['frontpage'], '.') === FALSE) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $up_pref = $pref['frontpage'].'.php';<br />
&nbsp; &nbsp; &nbsp; &nbsp; } else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $up_pref = $pref['frontpage'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; unset($pref['frontpage']);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $pref['frontpage']['all'] = $up_pref;<br />
&nbsp; &nbsp; &nbsp; &nbsp; save_prefs();<br />
}<br />
<br />
$query = (e_QUERY &amp;&amp; e_QUERY != '' &amp;&amp; !$_GET['elan']) ? '?'.e_QUERY : '';<br />
<br />
if ($pref['membersonly_enabled'] &amp;&amp; !USER) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; header('location: '.e_LOGIN);<br />
&nbsp; &nbsp; &nbsp; &nbsp; exit;<br />
} else if (isset($pref['frontpage']['all']) &amp;&amp; $pref['frontpage']['all']) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; $location = ((strpos($pref['frontpage']['all'], 'http') === FALSE) ? e_BASE : '').$pref['frontpage']['all'].$query;<br />
} else if (ADMIN) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; $location =&nbsp; ((strpos($pref['frontpage']['254'], 'http') === FALSE) ? e_BASE : '').$pref['frontpage']['254'].$query;<br />
} else if (USER) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; require_once(e_HANDLER.'userclass_class.php');<br />
&nbsp; &nbsp; &nbsp; &nbsp; $class_list = get_userclass_list();<br />
&nbsp; &nbsp; &nbsp; &nbsp; foreach ($class_list as $fp_class) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $inclass = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!$inclass &amp;&amp; check_class($fp_class['userclass_id'])) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $location = ((strpos($pref['frontpage'][$fp_class['userclass_id']], 'http') === FALSE) ? e_BASE : '').$pref['frontpage'][$fp_class['userclass_id']].$query;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $inclass = true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; $location = $location ? $location : ((strpos($pref['frontpage']['253'], 'http') === FALSE) ? e_BASE : '').$pref['frontpage']['253'].$query;<br />
} else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; $location = ((strpos($pref['frontpage']['252'], 'http') === FALSE) ? e_BASE : '').$pref['frontpage']['252'].$query;<br />
}<br />
<br />
// handle redirect and include front page methods<br />
if(isset($pref['frontpage_method']) &amp;&amp; $pref['frontpage_method'] == &quot;include&quot;) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; if($location == &quot;news.php&quot;) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; require_once(&quot;news.php&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; } elseif ($location == PLUGINS_DIRECTORY.&quot;forum/forum.php&quot;) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; require_once($PLUGINS_DIRECTORY.&quot;forum/forum.php&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; } elseif (preg_match('/^page\.php\?([0-9]*)$/', $location)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $e_QUERY = preg_match('/^page\.php\?([0-9]*)$/', $location);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; require_once(&quot;page.php&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; } else {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; header(&quot;Location: {$location}&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
} else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; list($page,$str) = explode(&quot;?&quot;,$location.&quot;?&quot;); // required to prevent infinite looping when queries are&nbsp; used on index.php.<br />
&nbsp; &nbsp; &nbsp; &nbsp; if($page == &quot;index.php&quot;) // Welcome Message is the front-page.<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; require_once(HEADERF);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  require_once(FOOTERF);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; elseif($page != &quot;index.php&quot;) // redirect to different frontpage.<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; header(&quot;Location: {$location}&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; exit();<br />
}<br />
<br />
?&gt;</code><hr />
</div> </div>

 ]]></content:encoded>
			<category domain="http://board.phpbuilder.com/forumdisplay.php?2-General-Help">General Help</category>
			<dc:creator>bihamta</dc:creator>
			<guid isPermaLink="true">http://board.phpbuilder.com/showthread.php?10389607-Parse-error-syntax-error-unexpected-lt-in-home-manotoin-public_html...</guid>
		</item>
		<item>
			<title>help with if ( ) statement</title>
			<link>http://board.phpbuilder.com/showthread.php?10389605-help-with-if-(-)-statement&amp;goto=newpost</link>
			<pubDate>Fri, 03 May 2013 21:22:25 GMT</pubDate>
			<description><![CDATA[Below I have some code that I am trying to fix within the stuff I have colored red..

before I had the code like this if(($i == 4 || $i == 5 ) && !mysql_numrows($ssresult)){
and the $i == 4 and $i == 5 represent when a game goes into overtime and are only displayed if the game goes that far
$i == 4 is 1st Overtime and $i == 5 is 2nd overtime.

recently i had a game go into 3rd overtime but the code i originally had didn't allow for me to display that when the game went that far so i tried adding in $i == 6 for 3rd overtime and with the code below that is red it only shows the 1st overtime and 3rd overtime and skips the 2nd overtime..

been trying different things but not getting the right combo...also been looking at this thread http://php.net/manual/en/control-structures.if.php
  

Code:
---------
 $player_scores = array();
$teams_scores = array(0, 0);
for($i=1;$i<=6;$i++){
	$ssresult = mysql_query("SELECT * FROM `goalinfo` WHERE gameid = '" . $id . "' AND goalperiod = '" . $i . "' ORDER BY goaltime");
	if($ssresult){

$test_ss = 1;
		
		if(($i == 4 || $i == 5 || $i == 6) && !mysql_numrows($ssresult)){
			$test_ss = 0;
			}
	if($test_ss == 1)
	{		
		switch($i){
			case 1:$periodname = "1ST";break;
			case 2:$periodname = "2ND";break;
			case 3:$periodname = "3RD";break;
			case 4:$periodname = "1ST OVERTIME";break;
			case 5:$periodname = "2ND OVERTIME";break;
			case 6:$periodname = "3RD OVERTIME";break;
			}
---------
here are different things i have tried so far
if(($i == 4 || $i == 5 || $i == 6) && !mysql_numrows($ssresult)){

or

if(($i == 4 || $i == 5) && ($i == 6) && !mysql_numrows($ssresult)){

or 

if(($i == 4) || ($i == 5) || ($i == 6) && !mysql_numrows($ssresult)){

or

if(($i == 4 && $i == 5 && $i == 6) && !mysql_numrows($ssresult)){]]></description>
			<content:encoded><![CDATA[<div>Below I have some code that I am trying to fix within the stuff I have colored red..<br />
<br />
before I had the code like this if(($i == 4 || $i == 5 ) &amp;&amp; !mysql_numrows($ssresult)){<br />
and the $i == 4 and $i == 5 represent when a game goes into overtime and are only displayed if the game goes that far<br />
$i == 4 is 1st Overtime and $i == 5 is 2nd overtime.<br />
<br />
recently i had a game go into 3rd overtime but the code i originally had didn't allow for me to display that when the game went that far so i tried adding in $i == 6 for 3rd overtime and with the code below that is red it only shows the 1st overtime and 3rd overtime and skips the 2nd overtime..<br />
<br />
been trying different things but not getting the right combo...also been looking at this thread <a rel="nofollow" href="http://php.net/manual/en/control-structures.if.php" target="_blank">http://php.net/manual/en/control-structures.if.php</a><br />
  <br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"> $player_scores = array();<br />
$teams_scores = array(0, 0);<br />
for($i=1;$i&lt;=6;$i++){<br />
&nbsp; &nbsp; &nbsp; &nbsp; $ssresult = mysql_query(&quot;SELECT * FROM `goalinfo` WHERE gameid = '&quot; . $id . &quot;' AND goalperiod = '&quot; . $i . &quot;' ORDER BY goaltime&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; if($ssresult){<br />
<br />
$test_ss = 1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <font color="#FF0000">if(($i == 4 || $i == 5 || $i == 6) &amp;&amp; !mysql_numrows($ssresult)){</font><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $test_ss = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; if($test_ss == 1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; switch($i){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 1:$periodname = &quot;1ST&quot;;break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 2:$periodname = &quot;2ND&quot;;break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 3:$periodname = &quot;3RD&quot;;break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 4:$periodname = &quot;1ST OVERTIME&quot;;break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 5:$periodname = &quot;2ND OVERTIME&quot;;break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 6:$periodname = &quot;3RD OVERTIME&quot;;break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</code><hr />
</div> here are different things i have tried so far<br />
if(($i == 4 || $i == 5 || $i == 6) &amp;&amp; !mysql_numrows($ssresult)){<br />
<br />
or<br />
<br />
if(($i == 4 || $i == 5) &amp;&amp; ($i == 6) &amp;&amp; !mysql_numrows($ssresult)){<br />
<br />
or <br />
<br />
if(($i == 4) || ($i == 5) || ($i == 6) &amp;&amp; !mysql_numrows($ssresult)){<br />
<br />
or<br />
<br />
if(($i == 4 &amp;&amp; $i == 5 &amp;&amp; $i == 6) &amp;&amp; !mysql_numrows($ssresult)){</div>

 ]]></content:encoded>
			<category domain="http://board.phpbuilder.com/forumdisplay.php?2-General-Help">General Help</category>
			<dc:creator>msnhockey</dc:creator>
			<guid isPermaLink="true">http://board.phpbuilder.com/showthread.php?10389605-help-with-if-(-)-statement</guid>
		</item>
		<item>
			<title>webid php error help</title>
			<link>http://board.phpbuilder.com/showthread.php?10389601-webid-php-error-help&amp;goto=newpost</link>
			<pubDate>Fri, 03 May 2013 17:50:58 GMT</pubDate>
			<description><![CDATA[Hi

I am using webid for a website I am doing for a customer and have added some extra fields to the sell item page and just before I submit it, the data I entered is not showing up in the confirm listing bit and was wondering if anyone could point me in the right direction, I did check the error log and found this but am bit unsure what to change or alter

PHP Parse error: syntax error, unexpected ')', expecting '&' or T_STRING or T_VARIABLE or '$' in /home/sites/247autotrade.com/public_html/sell.php on line 551, referer: http://247autotrade.com/select_category.php

Below is line 551 from the coding

foreach ($system->SETTINGS['make'] as $key => $val)

That line is taken from the following

// MAKE
$TPL_make = '<input type="text" name="make" size="25">' . "\n";
foreach ($system->SETTINGS['make'] as $key => $val)
{
//$TPL_item_condition .= "\t" . '<option value="' . $key . '" ' . (($key == $condition) ? 'selected="true"' : '') . '>' . $val . '</option>' . "\n";
}
$TPL_make .= '</input>' . "\n";

I have a screenshot if anyone needs to see the screenshot of the issue]]></description>
			<content:encoded><![CDATA[<div>Hi<br />
<br />
I am using webid for a website I am doing for a customer and have added some extra fields to the sell item page and just before I submit it, the data I entered is not showing up in the confirm listing bit and was wondering if anyone could point me in the right direction, I did check the error log and found this but am bit unsure what to change or alter<br />
<br />
PHP Parse error: syntax error, unexpected ')', expecting '&amp;' or T_STRING or T_VARIABLE or '$' in /home/sites/247autotrade.com/public_html/sell.php on line 551, referer: <a rel="nofollow" href="http://247autotrade.com/select_category.php" target="_blank">http://247autotrade.com/select_category.php</a><br />
<br />
Below is line 551 from the coding<br />
<br />
foreach ($system-&gt;SETTINGS['make'] as $key =&gt; $val)<br />
<br />
That line is taken from the following<br />
<br />
// MAKE<br />
$TPL_make = '&lt;input type=&quot;text&quot; name=&quot;make&quot; size=&quot;25&quot;&gt;' . &quot;\n&quot;;<br />
foreach ($system-&gt;SETTINGS['make'] as $key =&gt; $val)<br />
{<br />
//$TPL_item_condition .= &quot;\t&quot; . '&lt;option value=&quot;' . $key . '&quot; ' . (($key == $condition) ? 'selected=&quot;true&quot;' : '') . '&gt;' . $val . '&lt;/option&gt;' . &quot;\n&quot;;<br />
}<br />
$TPL_make .= '&lt;/input&gt;' . &quot;\n&quot;;<br />
<br />
I have a screenshot if anyone needs to see the screenshot of the issue</div>

 ]]></content:encoded>
			<category domain="http://board.phpbuilder.com/forumdisplay.php?2-General-Help">General Help</category>
			<dc:creator>ianhaney</dc:creator>
			<guid isPermaLink="true">http://board.phpbuilder.com/showthread.php?10389601-webid-php-error-help</guid>
		</item>
		<item>
			<title>mail() issues</title>
			<link>http://board.phpbuilder.com/showthread.php?10389599-mail()-issues&amp;goto=newpost</link>
			<pubDate>Fri, 03 May 2013 14:21:29 GMT</pubDate>
			<description><![CDATA[I using this simple code to send a test message if I put in my url it won't send, more like it sends but never gets received no matter what email account I use. If I put in another url it works fine.

Does anyone know what causes that and how I can go about fixing it??

in this code I added a '2' to the url and it works, take the 2 out - nothing


PHP:
---------
<?php
	mail('me@yahoo.com', 'Account Info', 'is this working? www.wlsingle2s.com');
?>
---------
I am trying this code out on 2 different servers and it definity stops when I enter the one particular url - how do I check why?]]></description>
			<content:encoded><![CDATA[<div>I using this simple code to send a test message if I put in my url it won't send, more like it sends but never gets received no matter what email account I use. If I put in another url it works fine.<br />
<br />
Does anyone know what causes that and how I can go about fixing it??<br />
<br />
in this code I added a '2' to the url and it works, take the 2 out - nothing<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />&nbsp;&nbsp;&nbsp;&nbsp;mail</span><span style="color: #007700">(</span><span style="color: #DD0000">'me@yahoo.com'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'Account&nbsp;Info'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'is&nbsp;this&nbsp;working?&nbsp;www.wlsingle2s.com'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></code><hr />
</div> I am trying this code out on 2 different servers and it definity stops when I enter the one particular url - how do I check why?</div>

 ]]></content:encoded>
			<category domain="http://board.phpbuilder.com/forumdisplay.php?2-General-Help">General Help</category>
			<dc:creator>harkly</dc:creator>
			<guid isPermaLink="true">http://board.phpbuilder.com/showthread.php?10389599-mail()-issues</guid>
		</item>
		<item>
			<title><![CDATA[[RESOLVED] Big Picture Question: Javascript in the grand scheme of things for a php/MySQL coder?]]></title>
			<link>http://board.phpbuilder.com/showthread.php?10389597-RESOLVED-Big-Picture-Question-Javascript-in-the-grand-scheme-of-things-for-a-php-MySQL-coder&amp;goto=newpost</link>
			<pubDate>Thu, 02 May 2013 20:26:12 GMT</pubDate>
			<description><![CDATA[Hi;  This is a question for any of you who use Javascript a LOT as well as php...

With all the help I have gotten here over the years, I've gotten pretty comfortable creating MySQL databases and forms ad reports using php to feed and report from my tables.

I've been reading a Javascript book (thinking I might find some stuff that is easier/more efficient to do, using that language.)  but so far, I keep thinking "Oh, I could do that with php by (blah, blah, blah) ..."  but I suspect this is happening because I am only focused on the general concepts that I already understand.

Are there some things that you think are much easier/more efficient to do with Javascript?  What are some things that are difficult or impossible to do with php that you CAN do with Javascript?

Thanks.]]></description>
			<content:encoded><![CDATA[<div>Hi;  This is a question for any of you who use Javascript a LOT as well as php...<br />
<br />
With all the help I have gotten here over the years, I've gotten pretty comfortable creating MySQL databases and forms ad reports using php to feed and report from my tables.<br />
<br />
I've been reading a Javascript book (thinking I might find some stuff that is easier/more efficient to do, using that language.)  but so far, I keep thinking &quot;Oh, I could do that with php by (blah, blah, blah) ...&quot;  but I suspect this is happening because I am only focused on the general concepts that I already understand.<br />
<br />
Are there some things that you think are much easier/more efficient to do with Javascript?  What are some things that are difficult or impossible to do with php that you CAN do with Javascript?<br />
<br />
Thanks.</div>

 ]]></content:encoded>
			<category domain="http://board.phpbuilder.com/forumdisplay.php?2-General-Help">General Help</category>
			<dc:creator>Joseph Sliker</dc:creator>
			<guid isPermaLink="true">http://board.phpbuilder.com/showthread.php?10389597-RESOLVED-Big-Picture-Question-Javascript-in-the-grand-scheme-of-things-for-a-php-MySQL-coder</guid>
		</item>
		<item>
			<title>Parse error</title>
			<link>http://board.phpbuilder.com/showthread.php?10389587-Parse-error&amp;goto=newpost</link>
			<pubDate>Wed, 01 May 2013 21:57:58 GMT</pubDate>
			<description><![CDATA[Hi All,

Hope you're well.

I'm trying to code a bit of PHP for my website, though I must say I'm rather new to the whole thing. I followed a YouTube clip the results of which you've no doubt come across before as it contained an open-line error that has caused a lot of people problems. However, I've taken this and used it to develop three of scripts, none of which works for me due to a parsing error:


---Quote---
Parse error: syntax error, unexpected T_VARIABLE [...] on line 38
---End Quote---
Line 38 is 
Code:
---------
	$theResults = <<<EOD
---------
Here's the example of one of the codings, the solution to which will no doubt shed light on the other two.


PHP:
---------
<?php

/* Subject and e-mail variables */

	$emailSubject = 'Customer Request: Ask a Question';
	$webMaster = 'myemail@mydomain.co.uk';
	
/* Gsthering data variables */

	$titleField = $_POST['title'];
	$firstnameField = $_POST['first_name'];
	$surnameField = $_POST['surname'];
	$emailField = $_POST['email'];
	$daytimetelField = $_POST['daytime_tel'];
	$eveningtelField = $_POST['evening_tel'];
	$marketingsourceField = $_POST['marketing_source'];
	$messageField = $_POST['message'];
	$termsandconditionsField = $_POST['terms_and_conditions'];
	
	$body = <<<EOD
<br><hr><br>
<b>Title:</b> $titleField <br>
<b>First Name:</b> $firstnameField <br>
<b>Surname:</b> $surnameField <br><br>
<b>Daytime Telephone:</b> $daytimetelField <br>
<b>Evening Telephone:</b> $eveningtelField <br><br>
<b>Marketing Source:</b> $marketingsourceField <br>
<b>Accepts T&Cs:</b> $termsandconditionsField <br><br>
<b>Message:</b><br> $messageField
EOD;

	$headers = "From: $email\r\n";
	$headers .= "Content-type: text/html\r\n";
	$success = mail($webMaster, $emailSubject, $body, $headers);
	
/* Results rendered as HTML */

	$theResults = <<<EOD
<html>
***Snip - this area contains the HTML code for the results which I've cut down for readability***
</html>
EOD;
echo $theResults;

?>
---------
I'm absolutely stumped. I've checked for rogue spaces or lines not closed properly but can't find anything - your help would be most gratefully received.

Kind regards,

Max]]></description>
			<content:encoded><![CDATA[<div>Hi All,<br />
<br />
Hope you're well.<br />
<br />
I'm trying to code a bit of PHP for my website, though I must say I'm rather new to the whole thing. I followed a YouTube clip the results of which you've no doubt come across before as it contained an open-line error that has caused a lot of people problems. However, I've taken this and used it to develop three of scripts, none of which works for me due to a parsing error:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Quote:</div>
	<div class="bbcode_quote printable">
		<hr />
		
			Parse error: syntax error, unexpected T_VARIABLE [...] on line 38
			
		<hr />
	</div>
</div> Line 38 is <div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&nbsp; &nbsp; &nbsp; &nbsp; $theResults = &lt;&lt;&lt;EOD</code><hr />
</div> Here's the example of one of the codings, the solution to which will no doubt shed light on the other two.<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /><br /></span><span style="color: #FF8000">/*&nbsp;Subject&nbsp;and&nbsp;e-mail&nbsp;variables&nbsp;*/<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$emailSubject&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'Customer&nbsp;Request:&nbsp;Ask&nbsp;a&nbsp;Question'</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$webMaster&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'myemail@mydomain.co.uk'</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #FF8000">/*&nbsp;Gsthering&nbsp;data&nbsp;variables&nbsp;*/<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$titleField&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'title'</span><span style="color: #007700">&#93;;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$firstnameField&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'first_name'</span><span style="color: #007700">&#93;;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$surnameField&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'surname'</span><span style="color: #007700">&#93;;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$emailField&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'email'</span><span style="color: #007700">&#93;;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$daytimetelField&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'daytime_tel'</span><span style="color: #007700">&#93;;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$eveningtelField&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'evening_tel'</span><span style="color: #007700">&#93;;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$marketingsourceField&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'marketing_source'</span><span style="color: #007700">&#93;;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$messageField&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'message'</span><span style="color: #007700">&#93;;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$termsandconditionsField&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'terms_and_conditions'</span><span style="color: #007700">&#93;;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$body&nbsp;</span><span style="color: #007700">=&nbsp;&lt;&lt;&lt;EOD<br /></span><span style="color: #DD0000">&lt;br&gt;&lt;hr&gt;&lt;br&gt;<br />&lt;b&gt;Title:&lt;/b&gt;&nbsp;</span><span style="color: #0000BB">$titleField</span><span style="color: #DD0000">&nbsp;&lt;br&gt;<br />&lt;b&gt;First&nbsp;Name:&lt;/b&gt;&nbsp;</span><span style="color: #0000BB">$firstnameField</span><span style="color: #DD0000">&nbsp;&lt;br&gt;<br />&lt;b&gt;Surname:&lt;/b&gt;&nbsp;</span><span style="color: #0000BB">$surnameField</span><span style="color: #DD0000">&nbsp;&lt;br&gt;&lt;br&gt;<br />&lt;b&gt;Daytime&nbsp;Telephone:&lt;/b&gt;&nbsp;</span><span style="color: #0000BB">$daytimetelField</span><span style="color: #DD0000">&nbsp;&lt;br&gt;<br />&lt;b&gt;Evening&nbsp;Telephone:&lt;/b&gt;&nbsp;</span><span style="color: #0000BB">$eveningtelField</span><span style="color: #DD0000">&nbsp;&lt;br&gt;&lt;br&gt;<br />&lt;b&gt;Marketing&nbsp;Source:&lt;/b&gt;&nbsp;</span><span style="color: #0000BB">$marketingsourceField</span><span style="color: #DD0000">&nbsp;&lt;br&gt;<br />&lt;b&gt;Accepts&nbsp;T&amp;Cs:&lt;/b&gt;&nbsp;</span><span style="color: #0000BB">$termsandconditionsField</span><span style="color: #DD0000">&nbsp;&lt;br&gt;&lt;br&gt;<br />&lt;b&gt;Message:&lt;/b&gt;&lt;br&gt;&nbsp;</span><span style="color: #0000BB">$messageField</span><span style="color: #DD0000"><br /></span><span style="color: #007700">EOD;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$headers&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"From:&nbsp;</span><span style="color: #0000BB">$email</span><span style="color: #DD0000">\r\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$headers&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"Content-type:&nbsp;text/html\r\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$success&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mail</span><span style="color: #007700">(</span><span style="color: #0000BB">$webMaster</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$emailSubject</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$body</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$headers</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #FF8000">/*&nbsp;Results&nbsp;rendered&nbsp;as&nbsp;HTML&nbsp;*/<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$theResults&nbsp;</span><span style="color: #007700">=&nbsp;&lt;&lt;&lt;EOD<br /></span><span style="color: #DD0000">&lt;html&gt;<br />***Snip&nbsp;-&nbsp;this&nbsp;area&nbsp;contains&nbsp;the&nbsp;HTML&nbsp;code&nbsp;for&nbsp;the&nbsp;results&nbsp;which&nbsp;I've&nbsp;cut&nbsp;down&nbsp;for&nbsp;readability***<br />&lt;/html&gt;<br /></span><span style="color: #007700">EOD;<br />echo&nbsp;</span><span style="color: #0000BB">$theResults</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></code><hr />
</div> I'm absolutely stumped. I've checked for rogue spaces or lines not closed properly but can't find anything - your help would be most gratefully received.<br />
<br />
Kind regards,<br />
<br />
Max</div>

 ]]></content:encoded>
			<category domain="http://board.phpbuilder.com/forumdisplay.php?2-General-Help">General Help</category>
			<dc:creator>Mad Max</dc:creator>
			<guid isPermaLink="true">http://board.phpbuilder.com/showthread.php?10389587-Parse-error</guid>
		</item>
		<item>
			<title>Add/remove input field and mysql.</title>
			<link>http://board.phpbuilder.com/showthread.php?10389585-Add-remove-input-field-and-mysql.&amp;goto=newpost</link>
			<pubDate>Wed, 01 May 2013 12:02:54 GMT</pubDate>
			<description><![CDATA[How add one more input value and save same row database two values.
Like this: 
Name:
[Textbox1]
Values:
[Textbox2][textbox2] [add new]

[Submit]

Create new table in database and table name is "Textbox1" values.
And save that new table one row "textbox2" and "textbox3" values.

Thanks for help!]]></description>
			<content:encoded><![CDATA[<div>How add one more input value and save same row database two values.<br />
Like this: <br />
Name:<br />
[Textbox1]<br />
Values:<br />
[Textbox2][textbox2] [add new]<br />
<br />
[Submit]<br />
<br />
Create new table in database and table name is &quot;Textbox1&quot; values.<br />
And save that new table one row &quot;textbox2&quot; and &quot;textbox3&quot; values.<br />
<br />
Thanks for help!</div>

 ]]></content:encoded>
			<category domain="http://board.phpbuilder.com/forumdisplay.php?2-General-Help">General Help</category>
			<dc:creator>3faces</dc:creator>
			<guid isPermaLink="true">http://board.phpbuilder.com/showthread.php?10389585-Add-remove-input-field-and-mysql.</guid>
		</item>
	</channel>
</rss>
