<?xml version="1.0" encoding="utf-8"?>

<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>DaniWeb IT Discussion Community - PHP</title>
		<link>http://www.daniweb.com/forums/</link>
		<description><![CDATA[Our PHP forum is the place for Q&A-style discussions related to this popular development language.  LAMP programmers will appreciate our separate Apache forum, within the Networking sub-category of the Hardware and Software category, and MySQL forum, also within the Web Development category.]]></description>
		<language>en-US</language>
		<lastBuildDate>Sat, 21 Nov 2009 00:12:58 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.daniweb.com/alphaimages/misc/rss.jpg</url>
			<title>DaniWeb IT Discussion Community - PHP</title>
			<link>http://www.daniweb.com/forums/</link>
		</image>
		<item>
			<title>One DB record from two HTML forms</title>
			<link>http://www.daniweb.com/forums/thread240102.html</link>
			<pubDate>Fri, 20 Nov 2009 21:52:18 GMT</pubDate>
			<description>I have two HTML pages, each has a form. 
The user is supposed to fill out the input fields in one, then click a submit button that will send him to the next page, where he would fill out the rest of the fields of his questionaire, click a submit button. 
After that I need all the input data...</description>
			<content:encoded><![CDATA[<div>I have two HTML pages, each has a form.<br />
The user is supposed to fill out the input fields in one, then click a submit button that will send him to the next page, where he would fill out the rest of the fields of his questionaire, click a submit button.<br />
After that I need all the input data collected from both pages (forms) to be inserted into one record in the database.<br />
How would I achieve that?<br />
<br />
Thanks a million in advance!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>levsha</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240102.html</guid>
		</item>
		<item>
			<title>lamp</title>
			<link>http://www.daniweb.com/forums/thread240079.html</link>
			<pubDate>Fri, 20 Nov 2009 20:21:55 GMT</pubDate>
			<description><![CDATA[hi friends, 
I've come across a word LAMP while searching for some php codes.Can someone kindly tell what does this mean and what type of application can be developed from it. And how to begin  learning it(sources which provide complete information).]]></description>
			<content:encoded><![CDATA[<div>hi friends,<br />
I've come across a word LAMP while searching for some php codes.Can someone kindly tell what does this mean and what type of application can be developed from it. And how to begin  learning it(sources which provide complete information).</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>coolbuddy059</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240079.html</guid>
		</item>
		<item>
			<title>2 dimensional array issue</title>
			<link>http://www.daniweb.com/forums/thread240076.html</link>
			<pubDate>Fri, 20 Nov 2009 20:07:24 GMT</pubDate>
			<description><![CDATA[So here's the code: 
 
 
function procRestSearch($searchQuery){  
		//Don't forget to have $searchquery defined before calling this function 
		$intSearchCounter = 0; //Used to set the arrays 
		$searchResult = mysql_query($searchQuery); 
		while($searchRow = mysql_fetch_array($searchResult,...]]></description>
			<content:encoded><![CDATA[<div>So here's the code:<br />
<br />
 <pre style="margin:20px; line-height:13px">function procRestSearch($searchQuery){ <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Don't forget to have $searchquery defined before calling this function<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $intSearchCounter = 0; //Used to set the arrays<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $searchResult = mysql_query($searchQuery);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while($searchRow = mysql_fetch_array($searchResult, MYSQL_ASSOC)){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Change/Add/Delete the variables below to match what data needs to be returned<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $strRest = array($intSearchCounter =&gt; array('restID' =&gt; $searchRow&#91;'rest_id'&#93;, <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'restName' =&gt; $searchRow&#91;'rest_name'&#93;, 'restAddress' =&gt; $searchRow&#91;'rest_address'&#93;, <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'restAddress2' =&gt; $searchRow&#91;'rest_address2'&#93;, 'restCity' =&gt; $searchRow&#91;'rest_city'&#93;, <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'restState' =&gt; $searchRow&#91;'rest_state'&#93;, 'restZip' =&gt; $searchRow&#91;'rest_zip'&#93;, <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'restCC' =&gt; $searchRow&#91;'rest_country_code'&#93;, 'restAC' =&gt; $searchRow&#91;'rest_area_code'&#93;, <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'restPhone' =&gt; $searchRow&#91;'rest_phone_no'&#93;, 'restFAC' =&gt; $searchRow&#91;'rest_fax_no'&#93;, <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'restManager' =&gt; $searchRow&#91;'rest_manager'&#93;, 'restAsManager' =&gt; $searchRow&#91;'rest_assistant_manager'&#93;, <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'restWebsite' =&gt; $searchRow&#91;'rest_website'&#93;));<br />
&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; $intSearchCounter++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return $strRest;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }</pre><br />
the problem is when I call this function I get a <span style="font-weight:bold">Notice: Undefined offset: 0 in...</span> error.  However, if I replace $intSearchCounter with a static value, such as just replacing it with 0, it works but then I only get the last result from the query returned.  What am I doing wrong?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>loligator</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240076.html</guid>
		</item>
		<item>
			<title>I a php script that can restrict a user from adding additional image to his account o</title>
			<link>http://www.daniweb.com/forums/thread240056.html</link>
			<pubDate>Fri, 20 Nov 2009 18:05:38 GMT</pubDate>
			<description>Hi to All. 
1.	I want a php script that can restrict a user from adding additional image to his account on my site, I the admin should be able to set the restricting for the user. I also want to be able to activate/deactivate this function in the admin section  
2.	I  want users to be able to add...</description>
			<content:encoded><![CDATA[<div>Hi to All.<br />
1.	I want a php script that can restrict a user from adding additional image to his account on my site, I the admin should be able to set the restricting for the user. I also want to be able to activate/deactivate this function in the admin section <br />
2.	I  want users to be able to add things they browse to “add to my list” , just like adding things to a shopping cart.<br />
<br />
Thank You.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>dannybarh</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240056.html</guid>
		</item>
		<item>
			<title>php on same page as form</title>
			<link>http://www.daniweb.com/forums/thread240042.html</link>
			<pubDate>Fri, 20 Nov 2009 16:21:45 GMT</pubDate>
			<description><![CDATA[I have an html form when i submit it it goes to a php page.  i want to change the action so the php execution happens on the same page. 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>I have an html form when i submit it it goes to a php page.  i want to change the action so the php execution happens on the same page.<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;form method =&quot;POST&quot; action = &quot;user.php&quot;&gt;<br />
&lt;table align=&quot;right&quot; cellpadding=&quot;10&quot; cellspacing=&quot;0&quot;&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;EMail: &lt;/td&gt;<br />
&lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;email&quot; /&gt;&lt;/td&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;First Name: &lt;/td&gt;<br />
&lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;fname&quot; /&gt;&lt;/td&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;Last Name: &lt;/td&gt;<br />
&lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;lname&quot; /&gt;&lt;/td&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;Password:&lt;/td&gt;<br />
&lt;td&gt;&lt;input type=&quot;password&quot; name=&quot;password&quot; /&gt;&lt;/td&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;&lt;input type =&quot;submit&quot;&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/form&gt;<br />
<br />
&lt;?php<br />
&nbsp; &nbsp; &nbsp; &nbsp; //conection<br />
&nbsp; &nbsp; &nbsp; &nbsp; include('sqlconn.php');<br />
&nbsp; &nbsp; &nbsp; &nbsp; $mysql = new sqlConnection;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //retrive data from POST form<br />
&nbsp; &nbsp; &nbsp; &nbsp; $email=$_POST['email'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; $fname=$_POST['fname'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; $lname=$_POST['lname'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; $password=$_POST['password'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //insert data into DB<br />
&nbsp; &nbsp; &nbsp; &nbsp; $query = &quot;INSERT INTO&nbsp; `client_Info`.`users` (`email` ,`fname` ,`lname` ,`password`)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VALUES (NULL , '$email', '$fname', '$lname', '$password')&quot;;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; mysql_query($query) or die('Error, insert query failed');<br />
&nbsp; &nbsp; &nbsp; &nbsp; $last_Id = mysql_insert_id();<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; $mysql-&gt;close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //redirect back to login page.<br />
&nbsp; &nbsp; &nbsp; &nbsp; header( 'Location: http://localhost/testsite' ) ;<br />
?&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>mrjoli021</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240042.html</guid>
		</item>
		<item>
			<title>php preg_match vs preg_replace</title>
			<link>http://www.daniweb.com/forums/thread240030.html</link>
			<pubDate>Fri, 20 Nov 2009 14:51:47 GMT</pubDate>
			<description><![CDATA[i have following in my database 
------------------------------------------------------------------------------------ 
 
<table><tr><td><img src="default.jpg" width="160" style="border:1px #87925d solid;padding:2px;"></td> 
<td valign="top"><a href="mylinkhere" target="_blank"><strong> 
Vicky Bhai...]]></description>
			<content:encoded><![CDATA[<div>i have following in my database<br />
------------------------------------------------------------------------------------<br />
 <pre style="margin:20px; line-height:13px">&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;img src=&quot;default.jpg&quot; width=&quot;160&quot; style=&quot;border:1px #87925d solid;padding:2px;&quot;&gt;&lt;/td&gt;<br />
&lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;mylinkhere&quot; target=&quot;_blank&quot;&gt;&lt;strong&gt;<br />
Vicky Bhai Part 4&lt;/strong&gt;&lt;/a&gt;&lt;br&gt;&lt;font size=&quot;1&quot; color=&quot;#cccccc&quot;&gt;http://www.mysite.com&lt;/font&gt;&lt;br&gt;Stage Funny Stuff&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</pre>------------------------------------------------------------------------------------<br />
if want to add a &lt;a&gt; anchor tag to only image before displaying it on page.................how can i do that with preg match or preg replace</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>shishtawitch</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240030.html</guid>
		</item>
		<item>
			<title>.htaccess, some symbols causing problem</title>
			<link>http://www.daniweb.com/forums/thread240010.html</link>
			<pubDate>Fri, 20 Nov 2009 13:05:07 GMT</pubDate>
			<description><![CDATA[hi, 
i'm using .htaccess so that the variables passed through links are not seen. 
 
http://localhost/user/jack should be converted to http://localhost/user/?uid=jack 
 
i used: 
RewriteRule ^user/([^.]+)/?$ profile/?uname=$1 [NC,L] 
whatever characters is input, i want that to be passed and then...]]></description>
			<content:encoded><![CDATA[<div>hi,<br />
i'm using .htaccess so that the variables passed through links are not seen.<br />
<br />
<span style="color:Green">http://localhost/user/jack</span> should be converted to <span style="color:Green">http://localhost/user/?uid=jack</span><br />
<br />
i used:<br />
<span style="color:Green">RewriteRule ^user/([^.]+)/?$ profile/?uname=$1 [NC,L]</span><br />
whatever characters is input, i want that to be passed and then check.<br />
everything's working perfect.<br />
but when the following symbols are used, the errors such as these are appearing<br />
<span style="color:Red">Forbidden<br />
You don't have permission to access /user/: on this server.</span><br />
<br />
the symbols which are causing the problems are:<br />
<span style="color:Red">%,*,\,:,&quot;,&lt;,&gt;</span><br />
<br />
what should i do to avoid this?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>anishmsry</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240010.html</guid>
		</item>
		<item>
			<title>refresh</title>
			<link>http://www.daniweb.com/forums/thread239982.html</link>
			<pubDate>Fri, 20 Nov 2009 10:25:37 GMT</pubDate>
			<description>hello.. 
   i want to write code for refresh only division part which is in page. why because i am fetching images from database randomly. when we refresh the page the image change randomly. 
   so.....i want to do refresh only division part every 1min. how to do?</description>
			<content:encoded><![CDATA[<div>hello..<br />
   i want to write code for refresh only division part which is in page. why because i am fetching images from database randomly. when we refresh the page the image change randomly.<br />
   so.....i want to do refresh only division part every 1min. how to do?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>muralikalpana</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239982.html</guid>
		</item>
		<item>
			<title>getting part of url with php</title>
			<link>http://www.daniweb.com/forums/thread239980.html</link>
			<pubDate>Fri, 20 Nov 2009 10:05:56 GMT</pubDate>
			<description><![CDATA[how can i get only value of 'v' from the following url 
http://www.youtube.com/watch?v=NMAYr709-9Y&feature=dir 
i.e NMAYr709-9Y 
with php]]></description>
			<content:encoded><![CDATA[<div>how can i get only value of 'v' from the following url<br />
<a rel="nofollow" class="t" href="http://www.youtube.com/watch?v=NMAYr709-9Y&amp;feature=dir" target="_blank">http://www.youtube.com/watch?v=NMAYr709-9Y&amp;feature=dir</a><br />
i.e NMAYr709-9Y<br />
with php</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>shishtawitch</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239980.html</guid>
		</item>
		<item>
			<title>fetching youtube embed code.......with php</title>
			<link>http://www.daniweb.com/forums/thread239972.html</link>
			<pubDate>Fri, 20 Nov 2009 09:12:26 GMT</pubDate>
			<description><![CDATA[i want to pass a youtube code like 
http://www.youtube.com/watch?v=NMAYr709-9Y&feature=dir 
and it return me the embed code.........!! how can i do that with php and curl........!!]]></description>
			<content:encoded><![CDATA[<div>i want to pass a youtube code like<br />
<a rel="nofollow" class="t" href="http://www.youtube.com/watch?v=NMAYr709-9Y&amp;feature=dir" target="_blank">http://www.youtube.com/watch?v=NMAYr709-9Y&amp;feature=dir</a><br />
and it return me the embed code.........!! how can i do that with php and curl........!!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>shishtawitch</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239972.html</guid>
		</item>
		<item>
			<title>How to display random html pages using php</title>
			<link>http://www.daniweb.com/forums/thread239968.html</link>
			<pubDate>Fri, 20 Nov 2009 08:59:12 GMT</pubDate>
			<description><![CDATA[Hai  
I have some html files and i would like to display them in a random manner using the php. 
can any one help me out..I have been trying this one.. 
but it is not working.. 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Hai <br />
I have some html files and i would like to display them in a random manner using the php.<br />
can any one help me out..I have been trying this one..<br />
but it is not working..<br />
 <pre style="margin:20px; line-height:13px">&lt;?php<br />
$dir=&quot;./clock/&quot;;<br />
$nimg=&quot;10&quot;;<br />
$itype=&quot;html&quot;;<br />
$rnumb=rand(1,$nimg);<br />
<br />
echo &quot;&lt;a href=&quot;.$dir.&quot;clock&quot;.$rnumb.&quot;.&quot;.$itype.&quot;&gt;&lt;/a&gt;&quot;;<br />
?&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>ym_chaitu</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239968.html</guid>
		</item>
		<item>
			<title>Add a date in mysql using php</title>
			<link>http://www.daniweb.com/forums/thread239957.html</link>
			<pubDate>Fri, 20 Nov 2009 08:11:10 GMT</pubDate>
			<description><![CDATA[Can someone please help:(. I have a database with a field Date. I made the datatype to Date. But when I code the date in php I use the date() function to get the current date it donesn't want to insert in the database. Please help. 
 
For example my code. 
  <div class="codeblock"> <div...]]></description>
			<content:encoded><![CDATA[<div>Can someone please help:(. I have a database with a field Date. I made the datatype to Date. But when I code the date in php I use the date() function to get the current date it donesn't want to insert in the database. Please help.<br />
<br />
For example my code.<br />
 <pre style="margin:20px; line-height:13px">$name = $_POST['name'];<br />
$date = date(&quot;yyyy,mm,dd&quot;);<br />
<br />
insert into tablename ('name','date') values ('{$name}','{$date}');</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>mundetas</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239957.html</guid>
		</item>
		<item>
			<title>network timeout on updating large result in one query</title>
			<link>http://www.daniweb.com/forums/thread239953.html</link>
			<pubDate>Fri, 20 Nov 2009 07:45:06 GMT</pubDate>
			<description>i m updating 3000 records in on query after few sec.. page shows network timeout...!! how to get rid of it.. 
 
thanks</description>
			<content:encoded><![CDATA[<div>i m updating 3000 records in on query after few sec.. page shows network timeout...!! how to get rid of it..<br />
<br />
thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>sam023</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239953.html</guid>
		</item>
		<item>
			<title>curl vs xmlhttprequest</title>
			<link>http://www.daniweb.com/forums/thread239949.html</link>
			<pubDate>Fri, 20 Nov 2009 07:36:09 GMT</pubDate>
			<description>hi, 
how can i make a link attache ment system with php, culr / ajax 
one like in facebook..........!! 
i.e by typing a link fetching meta, title and images from that link...!! 
 
thanks in advance.........!!</description>
			<content:encoded><![CDATA[<div>hi,<br />
how can i make a link attache ment system with php, culr / ajax<br />
one like in facebook..........!!<br />
i.e by typing a link fetching meta, title and images from that link...!!<br />
<br />
thanks in advance.........!!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>shishtawitch</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239949.html</guid>
		</item>
		<item>
			<title>how to sms to mobile phones from my web site.</title>
			<link>http://www.daniweb.com/forums/thread239929.html</link>
			<pubDate>Fri, 20 Nov 2009 05:50:27 GMT</pubDate>
			<description>hi all, i want to send sms to mobile phones from web site  .  is there any solution for this ....... give me idea!!!!!!!!.......</description>
			<content:encoded><![CDATA[<div>hi all, i want to send sms to mobile phones from web site  .  is there any solution for this ....... give me idea!!!!!!!!.......</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>rajabhaskar525</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239929.html</guid>
		</item>
		<item>
			<title>Search query</title>
			<link>http://www.daniweb.com/forums/thread239923.html</link>
			<pubDate>Fri, 20 Nov 2009 05:10:54 GMT</pubDate>
			<description><![CDATA[this is my db table content  
 
tble name : cars 
id | make | model | trans | fuel | year | km | vin | regdetails | state | price | features 
 
what i want is search the car with this form  
 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>this is my db table content <br />
<br />
tble name : cars<br />
id | make | model | trans | fuel | year | km | vin | regdetails | state | price | features<br />
<br />
what i want is search the car with this form <br />
<br />
<br />
 <pre style="margin:20px; line-height:13px"> &lt;form id=&quot;form1&quot; name=&quot;F2&quot; method=&quot;post&quot; action=&quot;search.php&quot;&gt;<br />
&nbsp; &lt;div style=&quot;background-color:#84C8FD; text-align: center;&quot;&gt;&lt;h2&gt;Find a Car&lt;/h2&gt;&lt;/div&gt;<br />
&nbsp; &lt;table width=&quot;224&quot; border=&quot;0&quot;&gt;<br />
&nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &lt;td width=&quot;42&quot;&gt;Make&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;td colspan=&quot;2&quot;&gt;&lt;label for=&quot;make&quot;&gt;&lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;select name=&quot;make&quot; id=&quot;master&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;SILECT&quot;&gt;Select&lt;/option&gt;&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;AC&quot;&gt;AC &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;ALFA ROMEO &quot;&gt;ALFA ROMEO &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;ASIA &quot;&gt;ASIA &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;AMAROO &quot;&gt;AMAROO &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;ASTON MARTIN &quot;&gt;ASTON MARTIN &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;AUDI &quot;&gt;AUDI &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;AUSTIN &quot;&gt;AUSTIN &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;AUSTIN HEALEY &quot;&gt;AUSTIN HEALEY &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;BEDFORD &quot;&gt;BEDFORD &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;BENTLEY &quot;&gt;BENTLEY &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;BERTONE &quot;&gt;BERTONE &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;BMW &quot;&gt;BMW &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/select&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &lt;td&gt;Model&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;td colspan=&quot;2&quot;&gt;&lt;label for=&quot;model&quot;&gt;&lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;select name=&quot;model&quot; id=&quot;slave&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;SELECT&quot;&gt;Select&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/select&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &lt;td&gt;Year&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;td width=&quot;80&quot;&gt;&lt;label for=&quot;yearfrom&quot;&gt;&lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;select name=&quot;yearfrom&quot; id=&quot;yearfrom&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;From&quot;&gt;From&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/select&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;td width=&quot;80&quot;&gt;&lt;select name=&quot;yearto&quot; id=&quot;yearto&quot;&gt;<br />
&nbsp; &nbsp; &lt;option value=&quot;To&quot;&gt;To&lt;/option&gt;<br />
&nbsp; &nbsp; &lt;/select&gt;&lt;/td&gt;<br />
&nbsp; &lt;/tr&gt;<br />
&nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &lt;td&gt;Price&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;td&gt;&lt;select name=&quot;pricefrom&quot; id=&quot;pricefrom&quot;&gt;<br />
&nbsp; &nbsp; &lt;option value=&quot;From&quot;&gt;From&lt;/option&gt;<br />
&nbsp; &nbsp; &lt;/select&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;td&gt;&lt;select name=&quot;priceto&quot; id=&quot;priceto&quot;&gt;<br />
&nbsp; &nbsp; &lt;option value=&quot;To&quot;&gt;To&lt;/option&gt;<br />
&nbsp; &nbsp; &lt;/select&gt;&lt;/td&gt;<br />
&nbsp; &lt;/tr&gt;<br />
&nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;td&gt;&lt;input name=&quot;&quot; type=&quot;submit&quot; value=&quot;Search&quot; /&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &lt;/tr&gt;<br />
&nbsp; &lt;/table&gt;<br />
<br />
&nbsp; &lt;/form&gt;</pre><br />
<br />
im new in php so please help me with full scripts</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>ruwanaru</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239923.html</guid>
		</item>
		<item>
			<title>insertion of selected checkbox records in another table</title>
			<link>http://www.daniweb.com/forums/thread239912.html</link>
			<pubDate>Fri, 20 Nov 2009 04:12:09 GMT</pubDate>
			<description>hi every body, i am sure its not that much hard but somehow i stuck in situation which look 
very much unclear to me. 
 
    in fact i have a table through i am selecting different records 
 
     each records will be printed with the checkbox 
 
 
what i want to insert checked fields in the...</description>
			<content:encoded><![CDATA[<div>hi every body, i am sure its not that much hard but somehow i stuck in situation which look<br />
very much unclear to me.<br />
<br />
    in fact i have a table through i am selecting different records<br />
<br />
     each records will be printed with the checkbox<br />
<br />
<br />
what i want to insert checked fields in the database<br />
<br />
following is the code which i am using for printing the each field with check box<br />
   <br />
 <pre style="margin:20px; line-height:13px">&nbsp;  &lt;?<br />
&nbsp;  $con = mysql_connect(&quot;localhost&quot;,&quot;&quot;,&quot;&quot;);<br />
&nbsp;  if(!$con)<br />
&nbsp; &nbsp;  {<br />
&nbsp; &nbsp;  die('Could not connect: ' . mysql_error());<br />
&nbsp; &nbsp; }<br />
&nbsp;  mysql_select_db(&quot;&quot;, $con);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $result= mysql_query(&quot;SELECT * FROM central&nbsp; &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; while($row = mysql_fetch_array($result))<br />
&nbsp; {<br />
&nbsp; echo &quot;&lt;table width=100% bgcolor=#ffffff &gt;&quot;;<br />
echo &quot;&lt;form method=post name=myform action=wh_request_test.php&gt;&quot;;<br />
echo&nbsp; &quot;&lt;tr&gt;&quot;;<br />
&nbsp;echo&nbsp;  &quot;&lt;td align=center&gt;&quot; .$row&#91;1&#93; . &quot;&lt;/td&gt;&quot;;<br />
&nbsp; echo&nbsp; &quot;&lt;td align=center&gt;&quot; . $row&#91;2&#93; . &quot;&lt;/td&gt;&quot;;<br />
&nbsp;echo&nbsp;  &quot;&lt;td align=center&gt;&quot; . $row&#91;5&#93; . &quot;&lt;/td&gt;&quot;;<br />
&nbsp;echo&nbsp;  &quot;&lt;td align=center&gt;&quot; . $row&#91;4&#93; . &quot;&lt;/td&gt;&quot;;<br />
&nbsp;  <br />
echo&nbsp; &nbsp; &nbsp; &nbsp; &quot;&lt;td&gt;&lt;input type=checkbox name=cc&#91;&#93; vlaue= $row&#91;0&#93; /&gt; &lt;/td&gt;&quot;;<br />
&nbsp; echo &quot;&lt;/tr&gt;&quot;;<br />
&nbsp;echo&nbsp; &nbsp; &nbsp; &nbsp;  &quot;&lt;/table&gt;&quot;; <br />
<br />
&nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; ?&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>ayesha789</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239912.html</guid>
		</item>
		<item>
			<title>Passing variable as a link</title>
			<link>http://www.daniweb.com/forums/thread239911.html</link>
			<pubDate>Fri, 20 Nov 2009 04:03:43 GMT</pubDate>
			<description><![CDATA[I retrieve three pieces of data from my MySQL table and need to pass one of them as a parameter in a link to a dynamically populated .php page and two of them use as the link text. 
The echo statement below is not working. 
Could you please see what's wrong with it? 
Thank you! 
 
  <div...]]></description>
			<content:encoded><![CDATA[<div>I retrieve three pieces of data from my MySQL table and need to pass one of them as a parameter in a link to a dynamically populated .php page and two of them use as the link text.<br />
The echo statement below is not working.<br />
Could you please see what's wrong with it?<br />
Thank you!<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;?php<br />
$connection = mysql_connect(&quot;server.com&quot;,&quot;user&quot;,&quot;password&quot;) or die (&quot;Couldn't connect to server.&quot;); <br />
$db = mysql_select_db(&quot;mydb&quot;, $connection) or die (&quot;Couldn't select database.&quot;); <br />
<br />
$data = &quot;SELECT inventorid, firstname, lastname FROM inventors WHERE taskdate - curdate() = 0&quot;;<br />
&nbsp; $query = mysql_query($data) or die(&quot;Couldn't execute query. &quot;. mysql_error());<br />
&nbsp; <br />
while($data2 = mysql_fetch_array($query)) {<br />
echo &quot;&lt;a href=\&quot;inventorid.php?inventorid=$data2['inventorid']\&quot;&gt;$data2['inventorid'] $data2['firstname'] $data2['lastname']&lt;/a&gt;\n&quot;;<br />
}&nbsp; <br />
?&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>levsha</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239911.html</guid>
		</item>
		<item>
			<title>Internet bot</title>
			<link>http://www.daniweb.com/forums/thread239874.html</link>
			<pubDate>Fri, 20 Nov 2009 00:28:54 GMT</pubDate>
			<description>My friend and I are working on an Internet bot. We want to make a bot that given a website, would index into a table.  
 
Example -- 
 
Given the website: www.daniweb.com 
 
Add to table:  
 
www.daniweb.com/c++ 
www.daniweb.com/c++/forum</description>
			<content:encoded><![CDATA[<div>My friend and I are working on an Internet bot. We want to make a bot that given a website, would index into a table. <br />
<br />
Example --<br />
<br />
Given the website: <a rel="nofollow" class="t" href="http://www.daniweb.com" target="_blank">www.daniweb.com</a><br />
<br />
Add to table: <br />
<br />
<a rel="nofollow" class="t" href="http://www.daniweb.com/c++" target="_blank">www.daniweb.com/c++</a><br />
<a rel="nofollow" class="t" href="http://www.daniweb.com/c++/forum" target="_blank">www.daniweb.com/c++/forum</a><br />
<a rel="nofollow" class="t" href="http://www.daniweb.com/java" target="_blank">www.daniweb.com/java</a><br />
etc...<br />
<br />
Any suggestion on how to do this?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>drjay1627</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239874.html</guid>
		</item>
		<item>
			<title>How do I get rid of gaps between cells in table.</title>
			<link>http://www.daniweb.com/forums/thread239865.html</link>
			<pubDate>Thu, 19 Nov 2009 23:52:13 GMT</pubDate>
			<description><![CDATA[I cannot figure out how to do this. I have set the padding and border as 0 and tried the collapse border command. Here is my code: 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>I cannot figure out how to do this. I have set the padding and border as 0 and tried the collapse border command. Here is my code:<br />
 <pre style="margin:20px; line-height:13px">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;<br />
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /&gt;<br />
&lt;title&gt;Untitled Document&lt;/title&gt;<br />
&lt;/head&gt;<br />
<br />
&lt;body&gt;<br />
&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot;&gt;<br />
&nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &lt;td height=&quot;0&quot; colspan=&quot;3&quot;&gt;&lt;img src=&quot;Assets/AheadPagerTemplate_r1_c1.jpg&quot; alt=&quot;1&quot; width=&quot;900&quot; height=&quot;94&quot; /&gt;&lt;/td&gt;<br />
&nbsp; &lt;/tr&gt;<br />
&nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &lt;td width=&quot;0&quot; height=&quot;0&quot; align=&quot;left&quot; valign=&quot;top&quot;&gt;&lt;img src=&quot;Assets/AheadPagerTemplate_r2_c1.jpg&quot; alt=&quot;2&quot; width=&quot;11&quot; height=&quot;325&quot; /&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;td width=&quot;879&quot; rowspan=&quot;2&quot; bgcolor=&quot;#00FFFF&quot;&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;td&gt;&lt;img src=&quot;Assets/AheadPagerTemplate_r2_c3.jpg&quot; alt=&quot;3&quot; width=&quot;10&quot; height=&quot;325&quot; /&gt;&lt;/td&gt;<br />
&nbsp; &lt;/tr&gt;<br />
&nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &lt;td width=&quot;0&quot; height=&quot;0&quot; align=&quot;left&quot; valign=&quot;top&quot;&gt;&lt;img src=&quot;Assets/AheadPagerTemplate_r3_c1.jpg&quot; alt=&quot;4&quot; width=&quot;11&quot; height=&quot;230&quot; /&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;td&gt;&lt;img src=&quot;Assets/AheadPagerTemplate_r3_c3.jpg&quot; alt=&quot;5&quot; width=&quot;10&quot; height=&quot;230&quot; /&gt;&lt;/td&gt;<br />
&nbsp; &lt;/tr&gt;<br />
&nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &lt;td colspan=&quot;3&quot;&gt;&lt;img src=&quot;Assets/AheadPagerTemplate_r4_c1.jpg&quot; alt=&quot;6&quot; width=&quot;900&quot; height=&quot;51&quot; /&gt;&lt;/td&gt;<br />
&nbsp; &lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>marlowkc</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239865.html</guid>
		</item>
		<item>
			<title>Enable GD Library</title>
			<link>http://www.daniweb.com/forums/thread239851.html</link>
			<pubDate>Thu, 19 Nov 2009 21:44:36 GMT</pubDate>
			<description><![CDATA[I'm trying to enable GD Library. I use PHPMyAdmin. 
 
How can I do this?]]></description>
			<content:encoded><![CDATA[<div>I'm trying to enable GD Library. I use PHPMyAdmin.<br />
<br />
How can I do this?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>ytregnn</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239851.html</guid>
		</item>
		<item>
			<title>Tiles Matching Game, Sessions 1D array // random_shuffle()</title>
			<link>http://www.daniweb.com/forums/thread239822.html</link>
			<pubDate>Thu, 19 Nov 2009 18:55:53 GMT</pubDate>
			<description><![CDATA[I'm trying to create a tiles matching (memory) game. I'm a beginner and I'm confused how exactly to start on creating one dimensional array for sessions. The tiles should be at least 30 with text values. When the user select first tile (reveal the text) and then user select second tile; if two...]]></description>
			<content:encoded><![CDATA[<div>I'm trying to create a tiles matching (memory) game. I'm a beginner and I'm confused how exactly to start on creating one dimensional array for sessions. The tiles should be at least 30 with text values. When the user select first tile (reveal the text) and then user select second tile; if two tiles match, should remove tiles from the board. When user complete the board, user should be presented with a summary of their performance and the option to play again (new board should be generated).<br />
<br />
I have no clue how to make 1d dimensional array or make random_suffle().<br />
<br />
I try to run it and it doesn't show up any errors. Its just blank page.<br />
<br />
Here is what I have so far:<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;?php<br />
&nbsp; &nbsp; &nbsp; &nbsp; session_start();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(!isset($_SESSION['game']))<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $tile = array(&quot;Item 1&quot;, &quot;Item 2&quot;);<br />
&nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for($n = 3; $n&lt;11; $n++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $tile[] = &quot;Item &quot;.$n;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; } <br />
&nbsp; &nbsp; &nbsp; &nbsp; else <br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $tile = $_SESSION['game'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
echo &quot;&lt;form&gt;&lt;table&gt;&quot;;<br />
echo &quot;&lt;tr&gt;&quot;;<br />
$rowCount=0;<br />
for($i=0; $i&lt;count($_SESSION['game']); $i++)<br />
{<br />
//&nbsp; if($i%6==0)<br />
&nbsp; &nbsp; $rowCount++;<br />
&nbsp; &nbsp; if($rowCount==6)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;/tr&gt;\n&lt;tr&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $rowCount=0;<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; if(($_SESSION['flip1']==$i)or($_GET['index']==$i))<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;td&gt;&quot;.$_SESSION['game'][$i].&quot;&lt;/td&gt;&quot;;<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; else<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;td&gt;&lt;a href=\&quot;&quot;.$_SERVER['PHP_SELF'].&quot;?index=&quot;.$i.&quot;\&quot;&gt;flip me!&lt;/a&gt;&lt;/td&gt;&quot;;<br />
&nbsp; &nbsp; }<br />
&nbsp;<br />
}<br />
echo &quot;&lt;/tr&gt;&quot;;<br />
echo &quot;&lt;/table&gt;&lt;/form&gt;&quot;;<br />
?&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>kryz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239822.html</guid>
		</item>
		<item>
			<title>else not working</title>
			<link>http://www.daniweb.com/forums/thread239808.html</link>
			<pubDate>Thu, 19 Nov 2009 17:25:13 GMT</pubDate>
			<description><![CDATA[my else statement is not executing it returns a black page. 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help...]]></description>
			<content:encoded><![CDATA[<div>my else statement is not executing it returns a black page.<br />
<br />
 <pre style="margin:20px; line-height:13px"> while($results = mysql_fetch_array($user_name))<br />
&nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($results['email'] == $Entered_UserName &amp;&amp; $results['password'] == $Entered_PassWord)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  echo 'working';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  echo 'not working';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>mrjoli021</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239808.html</guid>
		</item>
		<item>
			<title>php mail with mysql</title>
			<link>http://www.daniweb.com/forums/thread239783.html</link>
			<pubDate>Thu, 19 Nov 2009 15:30:25 GMT</pubDate>
			<description>ok i can post the script if you guys want its kinda on the large side mostly i just need to bounce some ideas off you  
 
i made a event calendar and now i am making a script to email  
users of the current months events i have this working  
 
this is the issuse i made a html email in php i make a...</description>
			<content:encoded><![CDATA[<div>ok i can post the script if you guys want its kinda on the large side mostly i just need to bounce some ideas off you <br />
<br />
i made a event calendar and now i am making a script to email <br />
users of the current months events i have this working <br />
<br />
this is the issuse i made a html email in php i make a table in it<br />
now when i go to the page every thing comes up perfect but<br />
when i get the email that should look exsactly like that <br />
some data in the table is shifted or the &lt;td&gt; itself is not <br />
a color any one have any ideas and some random ! show up ?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>HITMANOF44th</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239783.html</guid>
		</item>
		<item>
			<title>mail form with jQuery and PHP</title>
			<link>http://www.daniweb.com/forums/thread239780.html</link>
			<pubDate>Thu, 19 Nov 2009 15:25:49 GMT</pubDate>
			<description><![CDATA[I will start out by saying that I have no experience with PHP at all.. sorry. 
However, since I do some asp.net etc I thought I would throw myself into it.. 
 
I have come across a problem though. 
I've found a mail form using jQuery. 
 
What it's supposed to do when I hit the 'submit' button is...]]></description>
			<content:encoded><![CDATA[<div>I will start out by saying that I have no experience with PHP at all.. sorry.<br />
However, since I do some asp.net etc I thought I would throw myself into it..<br />
<br />
I have come across a problem though.<br />
I've found a mail form using jQuery.<br />
<br />
What it's supposed to do when I hit the 'submit' button is this:<br />
 <pre style="margin:20px; line-height:13px">function closeForm(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&quot;#messageSent&quot;).show(&quot;slow&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  setTimeout('$(&quot;#messageSent&quot;).hide();$(&quot;#contactForm&quot;).slideUp(&quot;slow&quot;)', 2000);</pre><br />
But ever since I tied some PHP to the thing to actually make it work and send mail. It will automatically redirect me to a blank page.. the PHP document address. Instead of calling closeForm.<br />
<br />
Alternatively I can do a header() and send it back to the front page, but that's just so far from satisfying...<br />
<br />
I'm thinking there's just something basic about how PHP operates that I don't know about..<br />
But let me know if you need to see more of the code behind, and I'll gladly supply it.<br />
<br />
Thanks in advance<br />
Maria</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>Neona</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239780.html</guid>
		</item>
		<item>
			<title>Passing variables from a php MySQL lookup</title>
			<link>http://www.daniweb.com/forums/thread239769.html</link>
			<pubDate>Thu, 19 Nov 2009 14:39:20 GMT</pubDate>
			<description>I am trying to create a page that will look up values from a table to fill in drop down boxes, i have this working.  Now when the user selects options and presses a button i would like these values to get written to a table. 
 
This code is my form that looks up values and populates drop down...</description>
			<content:encoded><![CDATA[<div>I am trying to create a page that will look up values from a table to fill in drop down boxes, i have this working.  Now when the user selects options and presses a button i would like these values to get written to a table.<br />
<br />
This code is my form that looks up values and populates drop down fields for the user.<br />
 <pre style="margin:20px; line-height:13px">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt; <br />
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en-GB&quot;&gt; <br />
&lt;head&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;title&gt;Godfather Wars&lt;/title&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;application/xhtml+xml; charset=utf-8&quot; /&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta name=&quot;description&quot; content=&quot;Godfather Wars&quot; /&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta name=&quot;keywords&quot; content=&quot;Godfather Wars&quot; /&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta name=&quot;robots&quot; content=&quot;index, follow&quot; /&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;link rel=&quot;shortcut icon&quot; href=&quot;/favicon.ico&quot; type=&quot;image/x-icon&quot; /&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;style type=&quot;text/css&quot; media=&quot;all&quot;&gt;@import &quot;default.css&quot;;&lt;/style&gt;<br />
<br />
&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot; src=&quot;datetimepicker.js&quot;&gt;<br />
//Date Time Picker script- by TengYong Ng of http://www.rainforestnet.com<br />
//Script featured on JavaScript Kit (http://www.javascriptkit.com)<br />
//For this script, visit http://www.javascriptkit.com <br />
&lt;/script&gt;<br />
<br />
&lt;/head&gt; <br />
&lt;body&gt; <br />
&nbsp;<br />
&lt;div id=&quot;header&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;&lt;a href=&quot;http://www.vampresearch.com&quot; title=&quot;Godfather Wars&quot;&gt;&amp;laquo; Goto VAMP Research&lt;/a&gt; by &lt;a href=&quot;http://www.vampresearch.com&quot;&gt;Kristopher Thomas Croteau&lt;/a&gt;&lt;/p&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;h1&gt;Godfather Wars&lt;/h1&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;h2&gt;Welcome to your desk&lt;/h2&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;ul&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;?php<br />
&nbsp; &nbsp; &nbsp; &nbsp; $user = $_GET['user'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;li&gt;&lt;a href='http://www.vampresearch.com/godfatherwars/main.php?user=$user'&gt;Home&lt;/a&gt;&lt;/li&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;li&gt;&lt;a href='http://www.vampresearch.com/godfatherwars/profile.php?user=$user'&gt;Profile&lt;/a&gt;&lt;/li&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;li&gt;&lt;a href='http://www.vampresearch.com/godfatherwars/family.php?user=$user'&gt;Your Family&lt;/a&gt;&lt;/li&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;li&gt;&lt;a href='http://www.vampresearch.com/godfatherwars/main.html'&gt;Hitlist&lt;/a&gt;&lt;/li&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;li&gt;&lt;a href='http://www.vampresearch.com/godfatherwars/main.html'&gt;Contact Admin&lt;/a&gt;&lt;/li&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;li&gt;&lt;a href='http://www.vampresearch.com/godfatherwars/donsdesk/index.php?user=$user' class='active'&gt;Dons&nbsp; &nbsp; &nbsp; &nbsp;  Desk&lt;/a&gt;&lt;/li&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; ?&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/ul&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;p id=&quot;layoutdims&quot;&gt;Message Inbox&lt;/p&gt; <br />
&lt;/div&gt; <br />
&lt;div class=&quot;colmask threecol&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;colmid&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;colleft&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;col1&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- Column 1 start --&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;?php<br />
&nbsp; &nbsp; &nbsp; &nbsp; // Connecting, selecting database<br />
&nbsp; &nbsp; &nbsp; &nbsp; $link = mysql_connect('HOST', 'USER', 'PASSWORD')<br />
&nbsp; &nbsp; or die('Could not connect: ' . mysql_error());<br />
&nbsp; &nbsp; &nbsp; &nbsp; mysql_select_db('DBNAME') or die('Could not select database');<br />
&nbsp; &nbsp; &nbsp; &nbsp; // Performing SQL query<br />
&nbsp; &nbsp; &nbsp; &nbsp; $user = $_GET['user'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; $query = &quot;SELECT `name` FROM Members where username = '$user'&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $result = mysql_query($query) or die('Query failed: ' . mysql_error());<br />
&nbsp; &nbsp; &nbsp; &nbsp; while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { echo &quot;&quot;;foreach ($line as $value);}<br />
&nbsp; &nbsp; &nbsp; &nbsp;  echo &quot;&nbsp; &lt;h2&gt;Welcome to your desk Don $value&lt;/h2&gt;&nbsp; &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; // Closing connection<br />
&nbsp; &nbsp; &nbsp; &nbsp; mysql_close($link);<br />
&nbsp; &nbsp; &nbsp; &nbsp; ?&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;This is your desk&lt;/p&gt; <br />
<br />
&lt;div class=&quot;contract&quot;&gt;<br />
&lt;font size=&quot;3pt&quot; face=&quot;Gerogia&quot;&gt;<br />
&lt;div class=&quot;donname&quot;&gt;<br />
&lt;?php<br />
// Connecting, selecting database<br />
$link = mysql_connect('HOST', 'USER 'PASSWORD')<br />
&nbsp; &nbsp; or die('Could not connect: ' . mysql_error());<br />
mysql_select_db('DBNAME') or die('Could not select database');<br />
// Performing SQL query<br />
$user = $_GET['user'];<br />
$query = &quot;SELECT `name` FROM Members where username = '$user'&quot;;<br />
$result = mysql_query($query) or die('Query failed: ' . mysql_error());<br />
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { echo &quot;&quot;;foreach ($line as $value);}<br />
&nbsp;echo &quot;&lt;b&gt;$value&lt;/b&gt;&quot;;<br />
// Closing connection<br />
mysql_close($link);<br />
?&gt;<br />
&lt;/div&gt;<br />
<br />
&lt;div class=&quot;target&quot;&gt;<br />
&lt;select name=&quot;target&quot;&gt;<br />
&lt;?php<br />
// Connecting, selecting database<br />
$link = mysql_connect('HOST', 'USER 'PASSWORD')<br />
&nbsp; &nbsp; or die('Could not connect: ' . mysql_error());<br />
//echo 'Connected successfully';<br />
mysql_select_db('DBNAME') or die('Could not select database');<br />
// Performing SQL query<br />
$user = $_GET['user'];<br />
$query = &quot;SELECT * FROM Members where family &lt;&gt; (SELECT family FROM Members where username = '$user')&quot;;<br />
$result = mysql_query($query) or die('Query failed: ' . mysql_error());<br />
$num = mysql_numrows($result);<br />
$i=0;<br />
do {<br />
$Name = mysql_result($result,$i,&quot;name&quot;);<br />
$vname = mysql_result($result,$i,&quot;username&quot;);<br />
// Printing results in HTML<br />
echo &quot;&lt;option value=$Name&gt;$Name&lt;/option&gt;&quot;;<br />
$i++;<br />
} while ($i &lt; $num);<br />
// Free resultset<br />
mysql_free_result($result);<br />
// Closing connection<br />
mysql_close($link);<br />
?&gt;<br />
&lt;/select&gt;<br />
&lt;/div&gt;<br />
<br />
&lt;div class=&quot;date&quot;&gt;<br />
&lt;input id=&quot;demo1&quot; type=&quot;text&quot; size=&quot;25&quot;&gt;&lt;a href=&quot;javascript<b></b>:NewCal('demo1','ddmmyyyy')&quot;&gt;&lt;img src=&quot;images/cal.gif&quot; width=&quot;16&quot; height=&quot;16&quot; border=&quot;0&quot; alt=&quot;Pick a contract date&quot;&gt;&lt;/a&gt;<br />
&lt;/div&gt;<br />
<br />
&lt;div class=&quot;assign&quot;&gt;<br />
&lt;select name=&quot;assign&quot;&gt;<br />
&lt;option value=&quot;open&quot;&gt;Open&lt;/option&gt;<br />
&lt;?php<br />
// Connecting, selecting database<br />
$link = mysql_connect('HOST', 'USER 'PASSWORD')<br />
&nbsp; &nbsp; or die('Could not connect: ' . mysql_error());<br />
//echo 'Connected successfully';<br />
mysql_select_db('DBNAME') or die('Could not select database');<br />
// Performing SQL query<br />
$user = $_GET['user'];<br />
$query = &quot;SELECT * FROM Members where family = (SELECT family FROM Members where username = '$user')&quot;;<br />
$result = mysql_query($query) or die('Query failed: ' . mysql_error());<br />
$num = mysql_numrows($result);<br />
$i=0;<br />
do {<br />
$Name = mysql_result($result,$i,&quot;name&quot;);<br />
$vname = mysql_result($result,$i,&quot;username&quot;);<br />
// Printing results in HTML<br />
echo &quot;&lt;option value=$Name&gt;$Name&lt;/option&gt;&quot;;<br />
$i++;<br />
} while ($i &lt; $num);<br />
// Free resultset<br />
mysql_free_result($result);<br />
// Closing connection<br />
mysql_close($link);<br />
<br />
?&gt;<br />
&lt;/select&gt;<br />
&lt;/div&gt;<br />
<br />
&lt;div class=&quot;sign&quot;&gt;<br />
&lt;button type=&quot;button&quot; onclick=&quot;window.location='http://www.vampresearch.com/godfatherwars/donsdesk/contractadd.php'&quot;&gt;Signed the Don&lt;/button&gt;<br />
&lt;/div&gt;<br />
&lt;/font&gt;<br />
&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- Column 1 end --&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;col2&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- Column 2 start --&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;h2&gt;Your family members&lt;/h2&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;<br />
&lt;?php<br />
// Connecting, selecting database<br />
$link = mysql_connect('HOST', 'USER 'PASSWORD')<br />
&nbsp; &nbsp; or die('Could not connect: ' . mysql_error());<br />
//echo 'Connected successfully';<br />
mysql_select_db('DBNAME') or die('Could not select database');<br />
// Performing SQL query<br />
$user = $_GET['user'];<br />
$query = &quot;SELECT * FROM Members where family = (SELECT family FROM Members where username = '$user')&quot;;<br />
$result = mysql_query($query) or die('Query failed: ' . mysql_error());<br />
<br />
$num = mysql_numrows($result);<br />
$i=0;<br />
do {<br />
$Name = mysql_result($result,$i,&quot;name&quot;);<br />
$rank = mysql_result($result,$i,&quot;rank&quot;);<br />
<br />
$queryrank = &quot;SELECT `rank` FROM ranks where id = '$rank' order by rank desc&quot;;<br />
$resultrank = mysql_query($queryrank) or die('Query failed: ' . mysql_error());<br />
while ($line1 = mysql_fetch_array($resultrank, MYSQL_ASSOC)) { echo &quot;&quot;;foreach ($line1 as $value1);}<br />
<br />
<br />
// Printing results in HTML<br />
echo &quot;$Name - $value1&lt;br&gt;&quot;;<br />
$i++;<br />
} while ($i &lt; $num);<br />
// Free resultset<br />
mysql_free_result($result);<br />
// Closing connection<br />
mysql_close($link);<br />
?&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;h2&gt;Contracts on your family&lt;/h2&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;<br />
&lt;?php<br />
// Connecting, selecting database<br />
$link = mysql_connect('HOST', 'USER 'PASSWORD')<br />
&nbsp; &nbsp; or die('Could not connect: ' . mysql_error());<br />
//echo 'Connected successfully';<br />
mysql_select_db('DBNAME') or die('Could not select database');<br />
// Performing SQL query<br />
$user = $_GET['user'];<br />
$query = &quot;SELECT * FROM hitlist where targetfamily = (SELECT family FROM Members where username = '$user') and complete = '0' and sanctioned = '1'&quot;;<br />
$result = mysql_query($query) or die('Query failed: ' . mysql_error());<br />
$num = mysql_numrows($result);<br />
$i=0;<br />
if($num==0)<br />
{<br />
echo &quot;There are no contracts on your family!&quot;;<br />
}<br />
else<br />
{<br />
do {<br />
$target = mysql_result($result,$i,&quot;target&quot;);<br />
$killer = mysql_result($result,$i,&quot;contractedto&quot;);<br />
$family = mysql_result($result,$i,&quot;contractfamily&quot;);<br />
$date = mysql_result($result,$i,&quot;issuedate&quot;);<br />
// Printing results in HTML<br />
echo &quot;Target: $target &lt;br&gt;&quot;;<br />
//echo &quot;Assassian: $killer&lt;br&gt;&quot;;<br />
echo &quot;Contracted by: $family &lt;br&gt;&quot;;<br />
echo &quot;Contract Date: $date&lt;br&gt;&quot;;<br />
echo &quot;------------------------------------&lt;br&gt;&quot;;<br />
$i++;<br />
} while ($i &lt; $num);<br />
}<br />
// Free resultset<br />
mysql_free_result($result);<br />
// Closing connection<br />
mysql_close($link);<br />
?&gt;<br />
&lt;/p&gt; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;h2&gt;Contracts started by your family&lt;/h2&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;<br />
&lt;?php<br />
// Connecting, selecting database<br />
$link = mysql_connect('HOST', 'USER 'PASSWORD')<br />
&nbsp; &nbsp; or die('Could not connect: ' . mysql_error());<br />
//echo 'Connected successfully';<br />
mysql_select_db('DBNAME') or die('Could not select database');<br />
// Performing SQL query<br />
$user = $_GET['user'];<br />
$query = &quot;SELECT * FROM hitlist where contractfamily = (SELECT family FROM Members where username = '$user') and complete = '0' and sanctioned = '1'&quot;;<br />
$result = mysql_query($query) or die('Query failed: ' . mysql_error());<br />
$num = mysql_numrows($result);<br />
$i=0;<br />
if ($num==0)<br />
{echo &quot;There are no contracts started by your family! You are the Don start one!&quot;;<br />
}<br />
else<br />
{<br />
do {<br />
$target = mysql_result($result,$i,&quot;target&quot;);<br />
$killer = mysql_result($result,$i,&quot;contractedto&quot;);<br />
$family = mysql_result($result,$i,&quot;contractfamily&quot;);<br />
$date = mysql_result($result,$i,&quot;issuedate&quot;);<br />
// Printing results in HTML<br />
echo &quot;Target: $target &lt;br&gt;&quot;;<br />
echo &quot;Target family: $family &lt;br&gt;&quot;;<br />
echo &quot;Assassian: $killer&lt;br&gt;&quot;;<br />
echo &quot;Contract Date: $date&lt;br&gt;&quot;;<br />
echo &quot;------------------------------------&lt;br&gt;&quot;;<br />
$i++;<br />
} while ($i &lt; $num);<br />
}<br />
// Free resultset<br />
mysql_free_result($result);<br />
// Closing connection<br />
mysql_close($link);<br />
?&gt;<br />
&lt;/p&gt; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;h2&gt;Requested contracts&lt;/h2&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;<br />
&lt;?php<br />
// Connecting, selecting database<br />
$link = mysql_connect('HOST', 'USER 'PASSWORD')<br />
&nbsp; &nbsp; or die('Could not connect: ' . mysql_error());<br />
//echo 'Connected successfully';<br />
mysql_select_db('DBNAME') or die('Could not select database');<br />
// Performing SQL query<br />
$user = $_GET['user'];<br />
$query = &quot;SELECT * FROM hitlist where contractfamily = (SELECT family FROM Members where username = '$user') and complete = '0' and sanctioned = '0'&quot;;<br />
$result = mysql_query($query) or die('Query failed: ' . mysql_error());<br />
$num = mysql_numrows($result);<br />
$i=0;<br />
if ($num==0)<br />
{<br />
echo &quot;There are not requested contracts at this time!&quot;;<br />
}<br />
else<br />
{<br />
do {<br />
$target = mysql_result($result,$i,&quot;target&quot;);<br />
$killer = mysql_result($result,$i,&quot;contractedto&quot;);<br />
$family = mysql_result($result,$i,&quot;contractfamily&quot;);<br />
$date = mysql_result($result,$i,&quot;issuedate&quot;);<br />
// Printing results in HTML<br />
echo &quot;Target: $target &lt;br&gt;&quot;;<br />
echo &quot;Target family: $family &lt;br&gt;&quot;;<br />
echo &quot;Requested By: $killer&lt;br&gt;&quot;;<br />
echo &quot;Contract Date: $date&lt;br&gt;&quot;;<br />
echo &quot;------------------------------------&lt;br&gt;&quot;;<br />
$i++;<br />
} while ($i &lt; $num);<br />
}<br />
// Free resultset<br />
mysql_free_result($result);<br />
// Closing connection<br />
mysql_close($link);<br />
?&gt;<br />
&lt;/p&gt; <br />
&lt;/p&gt; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- Column 2 end --&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;col3&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- Column 3 start --&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;h2&gt;Family Controls&lt;/h2&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;Use the controls below to control your family:&lt;/p&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;h3&gt;Contracts/Hits&lt;/h3&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;ul&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;View Current&lt;/li&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;Add&lt;/li&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;Cancel&lt;/li&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;Complete&lt;/li&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/ul&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;h3&gt;Members&lt;/h3&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;ul&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;Add&lt;/li&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;Remove&lt;/li&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;Promote&lt;/li&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;Demote&lt;/li&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/ul&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;h3&gt;Points&lt;/h3&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;ul&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;View Current&lt;/li&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;Add&lt;/li&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;Remove&lt;/li&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/ul&gt; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- Column 3 end --&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt; <br />
&lt;/div&gt; <br />
&lt;div id=&quot;footer&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;This page uses the &lt;a href=&quot;http://matthewjamestaylor.com/blog/perfect-3-column.htm&quot;&gt;Perfect 'Holy Grail' 3 Column Liquid Layout&lt;/a&gt; by &lt;a href=&quot;http://matthewjamestaylor.com&quot;&gt;Matthew James Taylor&lt;/a&gt;. Thanks for such a cool layout.&lt;/p&gt; <br />
&lt;/div&gt; <br />
&nbsp;<br />
&nbsp;<br />
&lt;/body&gt; <br />
&lt;/html&gt;</pre><br />
When the user clicks the button these variables should be passed into the database.  I have this form so far:<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;?php<br />
<br />
//This section writes the user data to the table.<br />
$target=$_POST['target'];<br />
$date=$_POST['date'];<br />
$assign=$_POST['assign'];<br />
echo &quot;Values are Target: &quot; .$target;<br />
$host=&quot;HOST&quot;; // Host name <br />
$username1=&quot;USER&quot;; // Mysql username <br />
$password1=&quot;PASSWORD&quot;; // Mysql password <br />
$db_name=&quot;DBNAME&quot;; // Database name <br />
$tbl_name=&quot;TABLENAME&quot;; // Table name<br />
// Connect to server and select databse.<br />
$con = mysql_connect(&quot;$host&quot;, &quot;$username1&quot;, &quot;$password1&quot;)or die(&quot;cannot connect&quot;); <br />
mysql_select_db('gfwars') or die('Could not select database');<br />
$query&nbsp; = &quot;INSERT INTO `Members` VALUES ($target,'',$assign,'',$date,'0','','1')&quot;;<br />
mysql_query($query);<br />
mysql_close($con);<br />
header('Location: family.php?user='.$user);<br />
?&gt;</pre><br />
<br />
Any idea how i can get the information in the option boxes to this second php page?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>VAMPResearch</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239769.html</guid>
		</item>
		<item>
			<title>Storing info in Cookies</title>
			<link>http://www.daniweb.com/forums/thread239766.html</link>
			<pubDate>Thu, 19 Nov 2009 14:26:23 GMT</pubDate>
			<description><![CDATA[Hey guys, I'm modifying a classified site, it's written in PHP. 
What I'm trying to do is when a user comes in the website for the first time (aka no cookies created) the value of the variable would be -1, when they click on a state to browse in, it will have ?statechosen=1&blahblah, so the value...]]></description>
			<content:encoded><![CDATA[<div>Hey guys, I'm modifying a classified site, it's written in PHP.<br />
What I'm trying to do is when a user comes in the website for the first time (aka no cookies created) the value of the variable would be -1, when they click on a state to browse in, it will have ?statechosen=1&amp;blahblah, so the value would be 1 for a variable, and if its 1 it won't ask for the states again, it will only ask for the states when its -1, or 0. <br />
<br />
but it's weird.<br />
i have to click on the name of the state twice to have the cookie settings in effect. And if i go on the index page twice, it'll ask me to choose the state again.<br />
<br />
here's the code.<br />
 <pre style="margin:20px; line-height:13px">&lt;?php $country_url = &quot;?statechosen=1&amp;cityid=-$country[countryid]&amp;lang=$xlang;&quot; ?&gt;</pre><br />
 <pre style="margin:20px; line-height:13px">function xSetCookie($name, $value)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; setcookie($name, $value, 0, &quot;/&quot;);<br />
}</pre><br />
 <pre style="margin:20px; line-height:13px">setcookie($ck_choosestate, $xstatechosen, time()+(60*24*60*60), &quot;/&quot;);</pre><br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; $xstatechosen =&quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $statechosen =&quot;&quot;;</pre><br />
 <pre style="margin:20px; line-height:13px">$ck_choosestate&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &quot;xzclf_choosestate&quot;;</pre><br />
 <pre style="margin:20px; line-height:13px">//Choose State<br />
$nostate = -1;<br />
if ($_GET['statechosen'] &gt; 0)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; $xstatechosen = $_GET['statechosen'];<br />
}<br />
elseif ($_GET['statechosen'] &lt; 0)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; $xstatechosen = $_GET['statechosen'];<br />
}<br />
elseif ($_COOKIE[$ck_choosestate] &gt; 0)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; $xstatechosen = $_COOKIE[$ck_choosestate];<br />
}<br />
elseif ($_COOKIE[$ck_choosestate] &lt; 0)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; $xstatechosen = $_COOKIE[$ck_choosestate];<br />
}<br />
elseif ($nostate)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; $xstatechosen = $nostate;<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>hkseo100</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239766.html</guid>
		</item>
		<item>
			<title>how to import the contacts from sites like yahoo, gmail, facebook, orkut..</title>
			<link>http://www.daniweb.com/forums/thread239748.html</link>
			<pubDate>Thu, 19 Nov 2009 13:31:48 GMT</pubDate>
			<description>hi all, i am new to php. i want know about how to import contacts from yahoomail,gmail, orkut, facebook, xing,..........like.  if anybody know about these. help me. share with me. ........</description>
			<content:encoded><![CDATA[<div>hi all, i am new to php. i want know about how to import contacts from yahoomail,gmail, orkut, facebook, xing,..........like.  if anybody know about these. help me. share with me. ........</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>rajabhaskar525</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239748.html</guid>
		</item>
		<item>
			<title>Problem in transfer fron 1st list to another?</title>
			<link>http://www.daniweb.com/forums/thread239740.html</link>
			<pubDate>Thu, 19 Nov 2009 12:48:04 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I am trying to transfer multiple select country to another select box. 
 
But when i click on submit i didn't get the value of array of list2 i.e finallist? 
 
I can't understand what is problem?? 
 
Please help me how to solve this??]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I am trying to transfer multiple select country to another select box.<br />
<br />
But when i click on submit i didn't get the value of array of list2 i.e finallist?<br />
<br />
I can't understand what is problem??<br />
<br />
Please help me how to solve this??  <br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;?<br />
if($_POST[&quot;add&quot;])<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;sdads&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;br&gt;hello -&gt;&quot;.$country_array=$_POST['finallist'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
}<br />
?&gt;<br />
&lt;script language=&quot;JavaScript&quot; type=&quot;text/JavaScript&quot;&gt;<br />
<br />
function hasOptions(obj){if(obj!=null &amp;&amp; obj.options!=null){return true;}return false;}<br />
function selectUnselectMatchingOptions(obj,regex,which,only){if(window.RegExp){if(which == &quot;select&quot;){var selected1=true;var selected2=false;}else if(which == &quot;unselect&quot;){var selected1=false;var selected2=true;}else{return;}var re = new RegExp(regex);if(!hasOptions(obj)){return;}for(var i=0;i&lt;obj.options.length;i++){if(re.test(obj.options[i].text)){obj.options[i].selected = selected1;}else{if(only == true){obj.options[i].selected = selected2;}}}}}<br />
function selectMatchingOptions(obj,regex){selectUnselectMatchingOptions(obj,regex,&quot;select&quot;,false);}<br />
function selectOnlyMatchingOptions(obj,regex){selectUnselectMatchingOptions(obj,regex,&quot;select&quot;,true);}<br />
function unSelectMatchingOptions(obj,regex){selectUnselectMatchingOptions(obj,regex,&quot;unselect&quot;,false);}<br />
function sortSelect(obj){var o = new Array();if(!hasOptions(obj)){return;}for(var i=0;i&lt;obj.options.length;i++){o[o.length] = new Option( obj.options[i].text, obj.options[i].value, obj.options[i].defaultSelected, obj.options[i].selected) ;}if(o.length==0){return;}o = o.sort(<br />
function(a,b){if((a.text+&quot;&quot;) &lt;(b.text+&quot;&quot;)){return -1;}if((a.text+&quot;&quot;) &gt;(b.text+&quot;&quot;)){return 1;}return 0;});for(var i=0;i&lt;o.length;i++){obj.options[i] = new Option(o[i].text, o[i].value, o[i].defaultSelected, o[i].selected);}}<br />
function selectAllOptions(obj){if(!hasOptions(obj)){return;}for(var i=0;i&lt;obj.options.length;i++){obj.options[i].selected = true;}}<br />
function moveSelectedOptions(from,to){if(arguments.length&gt;3){var regex = arguments[3];if(regex != &quot;&quot;){unSelectMatchingOptions(from,regex);}}if(!hasOptions(from)){return;}for(var i=0;i&lt;from.options.length;i++){var o = from.options[i];if(o.selected){if(!hasOptions(to)){var index = 0;}else{var index=to.options.length;}to.options[index] = new Option( o.text, o.value, false, false);}}for(var i=(from.options.length-1);i&gt;=0;i--){var o = from.options[i];if(o.selected){from.options[i] = null;}}if((arguments.length&lt;3) ||(arguments[2]==true)){sortSelect(from);sortSelect(to);}from.selectedIndex = -1;to.selectedIndex = -1;}<br />
function copySelectedOptions(from,to){var options = new Object();if(hasOptions(to)){for(var i=0;i&lt;to.options.length;i++){options[to.options[i].value] = to.options[i].text;}}if(!hasOptions(from)){return;}for(var i=0;i&lt;from.options.length;i++){var o = from.options[i];if(o.selected){if(options[o.value] == null || options[o.value] == &quot;undefined&quot; || options[o.value]!=o.text){if(!hasOptions(to)){var index = 0;}else{var index=to.options.length;}to.options[index] = new Option( o.text, o.value, false, false);}}}if((arguments.length&lt;3) ||(arguments[2]==true)){sortSelect(to);}from.selectedIndex = -1;to.selectedIndex = -1;}<br />
function moveAllOptions(from,to){selectAllOptions(from);if(arguments.length==2){moveSelectedOptions(from,to);}else if(arguments.length==3){moveSelectedOptions(from,to,arguments[2]);}else if(arguments.length==4){moveSelectedOptions(from,to,arguments[2],arguments[3]);}}<br />
function copyAllOptions(from,to){selectAllOptions(from);if(arguments.length==2){copySelectedOptions(from,to);}else if(arguments.length==3){copySelectedOptions(from,to,arguments[2]);}}<br />
function swapOptions(obj,i,j){var o = obj.options;var i_selected = o[i].selected;var j_selected = o[j].selected;var temp = new Option(o[i].text, o[i].value, o[i].defaultSelected, o[i].selected);var temp2= new Option(o[j].text, o[j].value, o[j].defaultSelected, o[j].selected);o[i] = temp2;o[j] = temp;o[i].selected = j_selected;o[j].selected = i_selected;}<br />
function moveOptionUp(obj){if(!hasOptions(obj)){return;}for(i=0;i&lt;obj.options.length;i++){if(obj.options[i].selected){if(i != 0 &amp;&amp; !obj.options[i-1].selected){swapOptions(obj,i,i-1);obj.options[i-1].selected = true;}}}}<br />
function moveOptionDown(obj){if(!hasOptions(obj)){return;}for(i=obj.options.length-1;i&gt;=0;i--){if(obj.options[i].selected){if(i !=(obj.options.length-1) &amp;&amp; ! obj.options[i+1].selected){swapOptions(obj,i,i+1);obj.options[i+1].selected = true;}}}}<br />
function removeSelectedOptions(from){if(!hasOptions(from)){return;}if(from.type==&quot;select-one&quot;){from.options[from.selectedIndex] = null;}else{for(var i=(from.options.length-1);i&gt;=0;i--){var o=from.options[i];if(o.selected){from.options[i] = null;}}}from.selectedIndex = -1;}<br />
function removeAllOptions(from){if(!hasOptions(from)){return;}for(var i=(from.options.length-1);i&gt;=0;i--){from.options[i] = null;}from.selectedIndex = -1;}<br />
function addOption(obj,text,value,selected){if(obj!=null &amp;&amp; obj.options!=null){obj.options[obj.options.length] = new Option(text, value, false, selected);}}<br />
<br />
function validate_test()<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var success=0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var len=document.frm_biz_add.elements['finallist[]'].options.length;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp;  if(len&gt;0)<br />
&nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; success=1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp;  } <br />
&nbsp; &nbsp; &nbsp; &nbsp;  if(success==0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Please select country&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
}<br />
<br />
&lt;/script&gt;<br />
<br />
&lt;form name=&quot;frm_biz_add&quot; id=&quot;frm_biz_add&quot; action=&quot;index.php?option=com_content&amp;view=article&amp;id=22&amp;Itemid=70&amp;action=add&quot; method=&quot;post&quot; onSubmit='return validate_test();'&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;table border=&quot;0&quot;&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;td&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; &nbsp; &nbsp; &nbsp; &nbsp; &lt;select name=&quot;list11&quot; id=&quot;list11&quot; multiple size=&quot;15&quot; style=&quot;width:130px;&quot; ondblclick=&quot;moveSelectedOptions(this.form['list11'],this.form['finallist'],false)&quot;&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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;?<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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; output_country_type($country_code_array);<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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ?&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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&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;/td&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;td align=&quot;CENTER&quot; valign=&quot;MIDDLE&quot;&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; &nbsp; &nbsp; &nbsp; &nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&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;td&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; &nbsp; &nbsp; &nbsp; &nbsp; &lt;select name=&quot;finallist[]&quot; id=&quot;finallist&quot; multiple size=&quot;15&quot; style=&quot;width:130px;&quot;&nbsp; ondblclick=&quot;moveSelectedOptions(this.form['finallist'],this.form['list11'],false)&quot;&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; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&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;/td&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;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;td colspan=&quot;3&quot; align=&quot;center&quot;&gt;&amp;nbsp;&lt;/td&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;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;td colspan=&quot;3&quot; align=&quot;center&quot;&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; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input name=&quot;add&quot; type=&quot;submit&quot; value=&quot;Submit&quot;&nbsp; style=&quot;background:url(images/btn_submit.jpg) no-repeat; border:none; width:58px; height:22px; cursor:pointer;&quot;/&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;/td&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; &lt;/table&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/form&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>Aamit</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239740.html</guid>
		</item>
		<item>
			<title>Sql upload - I must be simple?</title>
			<link>http://www.daniweb.com/forums/thread239736.html</link>
			<pubDate>Thu, 19 Nov 2009 12:38:10 GMT</pubDate>
			<description><![CDATA[Running php/mysql site where the db is constantly being changed with new products added, categories and prices changed all through php scipts. 
 
Just before it publishes the results to a static html file, there is a (my)sql file with product data that has been held "off table" so it cannot be...]]></description>
			<content:encoded><![CDATA[<div>Running php/mysql site where the db is constantly being changed with new products added, categories and prices changed all through php scipts.<br />
<br />
Just before it publishes the results to a static html file, there is a (my)sql file with product data that has been held &quot;off table&quot; so it cannot be inadvertently changed by the other scripts. I currently add this back manually but I'd like to use php to do it.<br />
<br />
I could change the data to txt or csv and use mysql insert statements but I cannot find how to do a simple upload the .sql to a db.<br />
<br />
Where should I start looking?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>eman neercs</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239736.html</guid>
		</item>
		<item>
			<title>how to insert data into 2 tables in MySQL using PHP</title>
			<link>http://www.daniweb.com/forums/thread239690.html</link>
			<pubDate>Thu, 19 Nov 2009 09:39:28 GMT</pubDate>
			<description><![CDATA[hi, 
 
I have created 2 tables called "User_Info" & "Auth_Users".  
 
In "User_Info" table "ID" is the primary key. In "Auth_Users" table "ID" is the foreign key.  
 
I have created a "User Form" through which I am trying to capture the data. Since the primary key is an auto_increment value I don't...]]></description>
			<content:encoded><![CDATA[<div>hi,<br />
<br />
I have created 2 tables called &quot;User_Info&quot; &amp; &quot;Auth_Users&quot;. <br />
<br />
In &quot;User_Info&quot; table &quot;ID&quot; is the primary key. In &quot;Auth_Users&quot; table &quot;ID&quot; is the foreign key. <br />
<br />
I have created a &quot;User Form&quot; through which I am trying to capture the data. Since the primary key is an auto_increment value I don't have to insert that in the &quot;User_Info&quot; table. <br />
<br />
In the &quot;User Form&quot; I have fields like - Firstname, Lastname, Phone, Email &amp; Password. I am trying to break this fields and Insert &quot;firstname, lastname, phone&quot; in &quot;User_Info&quot; table and &quot;Email &amp; Password&quot; in &quot;Auth_Users&quot; table.<br />
<br />
Besides this, i also want to insert the same &quot;ID&quot; number from &quot;User_Info&quot; table to &quot;Auth_Users&quot; table &quot;ID&quot; field. <br />
<br />
I couldn't get it solved. Please help me.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>Nuw2php</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239690.html</guid>
		</item>
		<item>
			<title>refresh part of the page</title>
			<link>http://www.daniweb.com/forums/thread239675.html</link>
			<pubDate>Thu, 19 Nov 2009 07:53:37 GMT</pubDate>
			<description>hai all, i want to refresh particular part of the page ,not whole page. is it possible? . if so, how is it? .........</description>
			<content:encoded><![CDATA[<div>hai all, i want to refresh particular part of the page ,not whole page. is it possible? . if so, how is it? .........</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>rajabhaskar525</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239675.html</guid>
		</item>
		<item>
			<title>Moving a field contents from Table B to Table A</title>
			<link>http://www.daniweb.com/forums/thread239674.html</link>
			<pubDate>Thu, 19 Nov 2009 07:41:55 GMT</pubDate>
			<description>Hi 
 
I am wondering if i can move a field (with contents) from Table B to Table A. If so how can i do it?  
 
Any advise ?? Thank you very much..</description>
			<content:encoded><![CDATA[<div>Hi<br />
<br />
I am wondering if i can move a field (with contents) from Table B to Table A. If so how can i do it? <br />
<br />
Any advise ?? Thank you very much..</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>futhonguy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239674.html</guid>
		</item>
		<item>
			<title>php hedder is not working</title>
			<link>http://www.daniweb.com/forums/thread239660.html</link>
			<pubDate>Thu, 19 Nov 2009 06:21:58 GMT</pubDate>
			<description><![CDATA[This is the error 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div> <div>...]]></description>
			<content:encoded><![CDATA[<div>This is the error<br />
<br />
 <pre style="margin:20px; line-height:13px">Warning: Cannot modify header information - headers already sent by (output started at /home/rejocoma/public_html/login-registor/do_login.php:9) in /home/rejocoma/public_html/login-registor/do_login.php on line 40</pre><br />
and this comming only on my hosting not in local machine ita unix hosting solution  <br />
<br />
can any one give me a help on this im a new in php and pleas give me a help...<br />
<br />
Thank you.........</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>ruwanaru</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239660.html</guid>
		</item>
		<item>
			<title>login in php</title>
			<link>http://www.daniweb.com/forums/thread239652.html</link>
			<pubDate>Thu, 19 Nov 2009 05:50:39 GMT</pubDate>
			<description>hi there, i am making a website. my problem is that, i have multiple users who should access the same page, now what i want is that, my login code will work whenever users will access it simultaneously. the problem is that, the code just checks the first  logged in user.  
 
Example, user1 and...</description>
			<content:encoded><![CDATA[<div>hi there, i am making a website. my problem is that, i have multiple users who should access the same page, now what i want is that, my login code will work whenever users will access it simultaneously. the problem is that, the code just checks the first  logged in user. <br />
<br />
Example, user1 and user2 logged in simultaneously. the login code detects the first logged in user it sees from the database (user1). user1 views its homepage, now user2 accesses user1's homepage since user1 logged in first. now, when user1 logs out, it will only be the time when user2 sees his homepage.<br />
<br />
what i want is that, when both users log in simultaneously, they will see their own homepages. thanks, any code will be very much appreciated.. tnx in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>xuexue</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239652.html</guid>
		</item>
		<item>
			<title><![CDATA[mail() not doing tables (showing code: <table> etc..)]]></title>
			<link>http://www.daniweb.com/forums/thread239588.html</link>
			<pubDate>Wed, 18 Nov 2009 22:56:02 GMT</pubDate>
			<description><![CDATA[im using the php mail() function to send an email and i got the email. except its formatted wrong like it looks like this: 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680"...]]></description>
			<content:encoded><![CDATA[<div>im using the php mail() function to send an email and i got the email. except its formatted wrong like it looks like this:<br />
 <pre style="margin:20px; line-height:13px">&lt;table bgcolor=&quot;black&quot;&gt;&lt;tr bgcolor=&quot;#111111&quot;&gt;&lt;td bgcolor=&quot;#222222&quot;<br />
width=&quot;60%&quot;</pre>etc.. u get it right?<br />
 i use gmail. now ive had images sent in mails to me. so why is this not working? i havent tested images but i figure that if table doesnt work img wont either. whats going on? is there a workaround? or is this what all mail sent by php mail() is bound to look like.<br />
<br />
i have free hosting atm. or is it the hosting?<br />
 im clueless halp?!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>SKANK!!!!!</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239588.html</guid>
		</item>
		<item>
			<title>dynamic variable plug into a mysql query?</title>
			<link>http://www.daniweb.com/forums/thread239544.html</link>
			<pubDate>Wed, 18 Nov 2009 19:57:23 GMT</pubDate>
			<description><![CDATA[HI!  
 
I am trying to find a way to plug some data that is spit out of a mysql query into another mysql query. 
 
example. 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680"...]]></description>
			<content:encoded><![CDATA[<div>HI! <br />
<br />
I am trying to find a way to plug some data that is spit out of a mysql query into another mysql query.<br />
<br />
example.<br />
<br />
 <pre style="margin:20px; line-height:13px">$zip1 = $_POST[zip1];<br />
<br />
&quot;SELECT * FROM zipcodedb WHERE ZipCode &gt;= '&quot;. $zip1 .&quot;'&quot;</pre>lets say i get that query to spit out these 3 results with a while loop : <br />
11758<br />
11759<br />
11760<br />
<br />
now i need to take those three zipcodes and plug them into another mysql query<br />
<br />
 <pre style="margin:20px; line-height:13px">&quot;SELECT * FROM zipcodedb WHERE ZipCode = 11758 OR ZipCode = 11759 OR ZipCode = 11760&quot;</pre><br />
The part i am stuck on is this. <br />
I need to figure out a way to dynamically populate the WHERE portion of this query because the above zipcodes will change depending on what was entered and submitted into the FIRST mysql query.<br />
<br />
I'm trying to explain best as i can, my english is not perfect. <br />
Thank you for any help anyone can offer.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>localtechguy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239544.html</guid>
		</item>
		<item>
			<title>GD Question</title>
			<link>http://www.daniweb.com/forums/thread239539.html</link>
			<pubDate>Wed, 18 Nov 2009 19:35:50 GMT</pubDate>
			<description><![CDATA[Hi, 
I'm using GD to dynamically draw a rectangle on an image I have of a map. I've got that part working fine. 
 
Here's my question: 
I know I need to set the headers of the page to content-type: image/png, otherwise I get a bunch of characters instead of the picture. 
But what if I want to place...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
I'm using GD to dynamically draw a rectangle on an image I have of a map. I've got that part working fine.<br />
<br />
Here's my question:<br />
I know I need to set the headers of the page to  <pre style="margin:20px; line-height:13px">content-type: image/png</pre>, otherwise I get a bunch of characters instead of the picture.<br />
But what if I want to place this dynamically created image inside a PHP or HTML document so that I can place text and other data around it? Is there any way to do this, or does the GD-generated image <span style="font-style:italic">have</span> to stay on its own page?<br />
<br />
Thanks<br />
- EF</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>EvolutionFallen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239539.html</guid>
		</item>
		<item>
			<title>help with solr (java application) on GoDaddy php shared hosting</title>
			<link>http://www.daniweb.com/forums/thread239536.html</link>
			<pubDate>Wed, 18 Nov 2009 19:28:17 GMT</pubDate>
			<description><![CDATA[exec('java -version', $javaver); 
 
 
print_r($javaver); 
echo "<br />"; 
 
 
exec('java -jar start.jar', $output);]]></description>
			<content:encoded><![CDATA[<div> <pre style="margin:20px; line-height:13px">exec('java -version', $javaver);<br />
<br />
<br />
print_r($javaver);<br />
echo &quot;&lt;br /&gt;&quot;;<br />
<br />
<br />
exec('java -jar start.jar', $output);<br />
<br />
print_r($output);<br />
echo &quot;&lt;br /&gt;&quot;;<br />
<br />
exec('java -jar post.jar&nbsp; /home/content/j/a/n/jandtesting/html/solr/example/exampledocs/solr.xml /home/content/j/a/n/jandtesting/html/solr/example/exampledocs/monitor.xml', $output2);<br />
<br />
print_r($output2);</pre><br />
I've never attempted anything with java before.  I'm trying to get started on the solr tutorial -- a java based search engine based on Lucene.  I don't think I've got this working at all because I probably didn't put the java commands in correctly above.  I would really appreciate some guidance.<br />
<br />
Galaxygal</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>galaxygal</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239536.html</guid>
		</item>
		<item>
			<title>dynamic videos with php</title>
			<link>http://www.daniweb.com/forums/thread239515.html</link>
			<pubDate>Wed, 18 Nov 2009 17:29:32 GMT</pubDate>
			<description>how can i play videos at its place...........like in facebook........!! 
 
i.e in facebook video thumb is given when we click on it it place at its place............!! how can i do it with jquery and php...........!!</description>
			<content:encoded><![CDATA[<div>how can i play videos at its place...........like in facebook........!!<br />
<br />
i.e in facebook video thumb is given when we click on it it place at its place............!! how can i do it with jquery and php...........!!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>shishtawitch</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239515.html</guid>
		</item>
		<item>
			<title>Arrays and include function?</title>
			<link>http://www.daniweb.com/forums/thread239502.html</link>
			<pubDate>Wed, 18 Nov 2009 16:55:15 GMT</pubDate>
			<description><![CDATA[I've just been learning arrays, and so far it's going well :) 
This is my current PHP code: 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with...]]></description>
			<content:encoded><![CDATA[<div>I've just been learning arrays, and so far it's going well :)<br />
This is my current PHP code:<br />
 <pre style="margin:20px; line-height:13px">&lt;?php<br />
&nbsp; &nbsp; &nbsp; $states = array ('MD' =&gt; 'Maryland', 'IL' =&gt; 'Illinois', 'MI' =&gt; 'Michigan');<br />
&nbsp; &nbsp; &nbsp; $provinces = array ('QC' =&gt; 'Quebec', 'AB' =&gt; 'Alberta');&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $abbr = array ('US' =&gt; $states, 'Canada' =&gt; $provinces);<br />
&nbsp; &nbsp; &nbsp; $japanesemotors = array ('ToyotaCamry' =&gt; '&lt;img src=&quot;http://upload.wikimedia.org/wikipedia/commons/thumb/f/fe/2006_Toyota_Camry_%28ACV40R%29_Altise_01.jpg/800px-2006_Toyota_Camry_%28ACV40R%29_Altise_01.jpg&quot;&gt;');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ?&gt;<br />
&lt;?php<br />
echo $abbr['US']['MI'];&nbsp; ?&gt;<br />
&lt;?<br />
echo $abbr['Canada']['AB'];<br />
?&gt;<br />
&lt;?<br />
echo $abbr['japanesemotors']['ToyotaCamry'];<br />
?&gt;</pre><br />
However, I can't get a newline in between the arrays, so it produces the following:<br />
 <pre style="margin:20px; line-height:13px">MichiganAlberta&lt;IMAGE&gt;</pre><br />
How do I get a new line to work in or in between the echo function?<br />
<br />
Also, can you use the php include function in arrays like I used the HTML image function in my japanesemotors example above?<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>whitestream6</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239502.html</guid>
		</item>
		<item>
			<title>A variety selection</title>
			<link>http://www.daniweb.com/forums/thread239486.html</link>
			<pubDate>Wed, 18 Nov 2009 15:36:32 GMT</pubDate>
			<description>Hai friends I need a simple (?) advice in one of my web page. 
 
I had developed a web application in one of its page there are many number of checkboxes. Users are need to select single or multiple check boxes. But there is a limit for each users. ie If an user are only permitted to select 2...</description>
			<content:encoded><![CDATA[<div>Hai friends I need a simple (?) advice in one of my web page.<br />
<br />
I had developed a web application in one of its page there are many number of checkboxes. Users are need to select single or multiple check boxes. But there is a limit for each users. ie If an user are only permitted to select 2 items, then I need to disable all the rest of checkboxes after he/she selected the 2. And also they can select another item , if they deselect the existing item.<br />
<br />
Friends I am little bit confused and wondered how to do this. I am using PHP for development. <br />
<br />
Please help me.<br />
Thanks for your valuable time<br />
Rajeesh</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>rajeesh_rsn</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239486.html</guid>
		</item>
		<item>
			<title>why ob_start()</title>
			<link>http://www.daniweb.com/forums/thread239481.html</link>
			<pubDate>Wed, 18 Nov 2009 15:18:03 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I read this ob_start() but want a bit cleaner explanation. 
why we use it, should we use it, what happens if we don't? 
 
I have never used it and won't use it until I understand it is best practise. 
 
Thanks in advance]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I read this ob_start() but want a bit cleaner explanation.<br />
why we use it, should we use it, what happens if we don't?<br />
<br />
I have never used it and won't use it until I understand it is best practise.<br />
<br />
Thanks in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>veledrom</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239481.html</guid>
		</item>
		<item>
			<title>Help Me Out!!!</title>
			<link>http://www.daniweb.com/forums/thread239456.html</link>
			<pubDate>Wed, 18 Nov 2009 13:32:10 GMT</pubDate>
			<description><![CDATA[<div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div> <div> <strong>PHP Syntax</strong> (<a...]]></description>
			<content:encoded><![CDATA[<div> <pre style="margin:20px; line-height:13px">&lt;?php<br />
include(&quot;access.php&quot;);<br />
mysql_select_db($dbname);<br />
$user=&quot;ym_chaitu&quot;;<br />
//$e=mysql_query(&quot;select email from userlogin where username='$user'&quot;);<br />
//$email=mysql_query($e,0);<br />
$query = mysql_query(&quot;SELECT username,password FROM userlogin WHERE username = '$user'&quot;) or die(mysql_error());<br />
$data = mysql_result($query);<br />
echo $data;<br />
?&gt;</pre><br />
this is my code,,when i am using it out, it is giving me an error<br />
Warning: Wrong parameter count for mysql_result() in C:\Program Files\xampp\htdocs\chaitu\magpierss\test.php on line 8<br />
<br />
<br />
can any one let me know where an i wrong</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>ym_chaitu</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239456.html</guid>
		</item>
		<item>
			<title>how to make a online game web site</title>
			<link>http://www.daniweb.com/forums/thread239452.html</link>
			<pubDate>Wed, 18 Nov 2009 13:24:43 GMT</pubDate>
			<description><![CDATA[HI 
i know php/mysql and javascript well and I've made some web site . 
 
now , I want to make a online game web site that it has two type of games . One type are simple games like BACKGAMMON or chess  
 
another type are multiplay games . I have installed Arcade.Script.v1.2.B but it didn't has any...]]></description>
			<content:encoded><![CDATA[<div>HI<br />
i know php/mysql and javascript well and I've made some web site .<br />
<br />
now , I want to make a online game web site that it has two type of games . One type are simple games like BACKGAMMON or chess <br />
<br />
another type are multiplay games . I have installed Arcade.Script.v1.2.B but it didn't has any game . <br />
<br />
can any one help me to make a online game web site . <br />
i've searched alot in the net but i couldn't find any good information about it . where I can get  more information about the scripts and other game systems ?<br />
<br />
I asked lots of question, please forgive me <br />
<br />
thanks very much</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>hno</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239452.html</guid>
		</item>
		<item>
			<title>How to insert csv file data to mysql table selected colum</title>
			<link>http://www.daniweb.com/forums/thread239445.html</link>
			<pubDate>Wed, 18 Nov 2009 12:53:31 GMT</pubDate>
			<description><![CDATA[hi, 
i want to make a program where the csv file directly insert into the mysql database table. 
 
i found the code: 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680"...]]></description>
			<content:encoded><![CDATA[<div>hi,<br />
i want to make a program where the csv file directly insert into the mysql database table.<br />
<br />
i found the code:<br />
 <pre style="margin:20px; line-height:13px">&lt;?php<br />
include 'mysql-connect.php';<br />
$rec=0;<br />
$handle = fopen ('datafile1.csv', 'r');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while (($data = fgetcsv($handle, 1000, ',', '&quot;')) !== FALSE)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $rec++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if($rec==1)<br />
&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; continue;<br />
&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; else<br />
&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; $query = &quot;INSERT INTO Book_details VALUES ('&quot;. implode(&quot;','&quot;, $data).&quot;')&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $query = @mysql_query($query);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
?&gt;</pre><br />
it working fine .<br />
<br />
but i have to face problem when i specify the columns in the mysql table like <br />
<br />
 <pre style="margin:20px; line-height:13px">while (($data = fgetcsv($handle, 1000, ',', '&quot;')) !== FALSE)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $query = &quot;INSERT INTO Book_details(idt_no,book_name,author_name,publisher_name,condition,condition_note,price,cur,quantity) VALUES ('&quot;. implode(&quot;','&quot;, $data).&quot;')&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $query = @mysql_query($query);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</pre>no value is insert in the data base???<br />
<br />
mention that database have 12 columns and csv have 9.<br />
i have to insert all 9 to selected 9 columns in the database.<br />
plz help me....</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>sandipan.rcciit</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239445.html</guid>
		</item>
		<item>
			<title>find the url someone entered</title>
			<link>http://www.daniweb.com/forums/thread239424.html</link>
			<pubDate>Wed, 18 Nov 2009 10:54:08 GMT</pubDate>
			<description>Hi 
 
Im setting up a news distribution system... sort of... i want to record everyone who downloads the news articles... so ive blocked direct linking to the pdf files using an htaccess file. 
 
my htaccess file redirects people to a page which captures where they came from ( for interests sake)...</description>
			<content:encoded><![CDATA[<div>Hi<br />
<br />
Im setting up a news distribution system... sort of... i want to record everyone who downloads the news articles... so ive blocked direct linking to the pdf files using an htaccess file.<br />
<br />
my htaccess file redirects people to a page which captures where they came from ( for interests sake) and then tells them they have tried to access a file without authorization... ie, without going through my website and being 'counted'...<br />
<br />
so now I want to find the url they typed in to access that file directly, so that i can provide a link to it, this time through my website, and thus give them access but also be able to 'count' them and provide accurate analytics on viewership...<br />
<br />
how do i find that url they originally typed in?  I currently collect the referer_url but dont know if I can get the one they typed in...?!<br />
<br />
Thanks lworks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>lifeworks</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239424.html</guid>
		</item>
		<item>
			<title>virus in hosting server</title>
			<link>http://www.daniweb.com/forums/thread239395.html</link>
			<pubDate>Wed, 18 Nov 2009 08:43:46 GMT</pubDate>
			<description>hi all, 
        i have downloaded my site from ftp to make changes there is a virus in that server my sir told me to clear that and upload. 
 In the source code i found a line which i thought is a virus containing a trojen program 
i deleted that line in dreamweaver and exectuded locally  but line...</description>
			<content:encoded><![CDATA[<div>hi all,<br />
        i have downloaded my site from ftp to make changes there is a virus in that server my sir told me to clear that and upload.<br />
 In the source code i found a line which i thought is a virus containing a trojen program<br />
i deleted that line in dreamweaver and exectuded locally  but line is reappearing in code when in viewed a page source code how come this is possible<br />
<br />
i thought of pasting that line which is a script include to another site but i thought it may infect this site too..<br />
<br />
any ideas??</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>praveen_dusari</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239395.html</guid>
		</item>
		<item>
			<title>adding cron job with php ajax</title>
			<link>http://www.daniweb.com/forums/thread239388.html</link>
			<pubDate>Wed, 18 Nov 2009 07:55:06 GMT</pubDate>
			<description>hi, my problem is that, 
i want on my site, that when a user uploads a video on my site, my script get the uploaded video, and let the user what he was doing, and process that video behind the scences with php and ffmpeg, and displays it when it is ready,........lik in face book.........!! how can...</description>
			<content:encoded><![CDATA[<div>hi, my problem is that,<br />
i want on my site, that when a user uploads a video on my site, my script get the uploaded video, and let the user what he was doing, and process that video behind the scences with php and ffmpeg, and displays it when it is ready,........lik in face book.........!! how can i do that..........!!<br />
i am able to convert videos, fetching thumbs, and duration and storing to database but i know the direct process, now i want the behind the scenes process..............<br />
<br />
Thanks in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>shishtawitch</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239388.html</guid>
		</item>
		<item>
			<title>Showing DB data in an order</title>
			<link>http://www.daniweb.com/forums/thread239415.html</link>
			<pubDate>Wed, 18 Nov 2009 07:40:31 GMT</pubDate>
			<description>I want to display records from database in this order 
 
1 2 3                 
4 5 6            
........     
 
 
or</description>
			<content:encoded><![CDATA[<div>I want to display records from database in this order<br />
<br />
1 2 3                <br />
4 5 6           <br />
........    <br />
<br />
<br />
or <br />
<br />
<br />
1 4 ....             <br />
2 5 ...<br />
3 6.....<br />
<br />
pls can anybody help me ........</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>kiranhg.2008</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239415.html</guid>
		</item>
		<item>
			<title>Contact us form posting to itself</title>
			<link>http://www.daniweb.com/forums/thread239358.html</link>
			<pubDate>Wed, 18 Nov 2009 05:29:22 GMT</pubDate>
			<description><![CDATA[Hi' 
I learnt that in order for the error messages to a form to be displayed on the same window with the form one method is to post it to itself ie the action attribute... 
Initially my action attribute for "contacts.php" was pointing to "mailer.php". The problem was that my error messages were...]]></description>
			<content:encoded><![CDATA[<div>Hi'<br />
I learnt that in order for the error messages to a form to be displayed on the same window with the form one method is to post it to itself ie the action attribute...<br />
Initially my action attribute for &quot;contacts.php&quot; was pointing to &quot;mailer.php&quot;. The problem was that my error messages were being displayed on a separate page/window. I dont want to go the javascript way for now. Am not sure how these two files can be merged so that the error messages can appear on the same page. Anyone who can do that for me.<br />
<br />
Here are the two files<br />
contacts.php<br />
 <pre style="margin:20px; line-height:13px"><br />
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;<br />
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br />
&lt;!-- @(#) $Id$ --&gt;<br />
&lt;head&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;title&gt;Jiomoe Foundation&lt;/title&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=ISO-8859-1&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta name=&quot;Keywords&quot; content= &quot;jiomoe, jiomoe foundation, youth, youth organization&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta name=&quot;Description&quot; content=&quot;&quot; /&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta http-equiv=&quot;pragma&quot; content=&quot;no-cache&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta http-equiv=&quot;cache-control&quot; content=&quot;no-cache&quot; /&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;link rel=&quot;shortcut icon&quot; href=&quot;./images/jiomoe-logo.jpg&quot; type=&quot;image/x-icon&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;./css/style.css&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;./css/customize.css&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;./css/layout.css&quot; /&gt;<br />
<br />
<br />
&lt;/head&gt; <br />
<br />
&lt;body&gt;<br />
&lt;div id=&quot;wrap&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;header&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;?php<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; include(&quot;logo.php&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ?&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;breadcrumb&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;ul&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;li&gt;&lt;a href=&quot;index.php&quot; class=&quot;&quot;&gt;Home&lt;/a&gt;&lt;/li&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;li&gt;&lt;a href=&quot;aboutus.php&quot; class=&quot;&quot;&gt;About Us&lt;/a&gt;&lt;/li&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;li&gt;&lt;a href=&quot;programs.php&quot; class=&quot;&quot;&gt;Our Programs&lt;/a&gt;&lt;/li&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;li&gt;&lt;a href=&quot;members.php&quot; class=&quot;&quot;&gt;Membership&lt;/a&gt;&lt;/li&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;li&gt;&lt;a href=&quot;careers.php&quot; class=&quot;&quot;&gt;Careers&lt;/a&gt;&lt;/li&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;li&gt;&lt;a href=&quot;contacts.php&quot; class=&quot;active&quot;&gt;Contacts&lt;/a&gt;&lt;/li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/ul&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
<br />
&lt;div id=&quot;main-body&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;content&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;inside&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;form method=&quot;POST&quot; action=&quot;contacts.php&quot; form name=&quot;contacts&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;The fields marked with an asterik must be filled&lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;label for=&quot;first_name&quot;&gt;First Name:*&lt;/label&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;input type=&quot;text&quot; name=&quot;first_name&quot; size=&quot;19&quot;/&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;label for=&quot;Last_name&quot;&gt;Last Name:*&lt;/label&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;input type=&quot;text&quot; name=&quot;last_name&quot; size=&quot;19&quot;/&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;label for=&quot;telephone&quot;&gt;Telephone Number:&lt;/label&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;input type=&quot;text&quot; name=&quot;telephone&quot; size=&quot;19&quot;/&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;br/&gt;<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;label for=&quot;email&quot;&gt;Email:*&lt;/label&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;input type=&quot;text&quot; name=&quot;email&quot; size=&quot;19&quot;/&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;label for=&quot;comments&quot;&gt;Message:*&lt;/label&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;textarea rows=&quot;9&quot; name=&quot;comments&quot; cols=&quot;30&quot;&gt;&lt;/textarea&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;input type=&quot;submit&quot; value=&quot;Submit&quot; name=&quot;submit&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/form&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
<br />
&lt;div id=&quot;sidebar&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;inside&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;border&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;Jiomoe Foundation is a Volunteer, Community based Youth initiative<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; founded by the Kenyan Youth to eradicate poverty,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; create employment opportunities, market and empower the Youth.&lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;border&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;info&quot;&gt;Information&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Founded&lt;br/&gt; 2008<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;border&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;info&quot;&gt;Links&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;http://www.jiomoeclub.net&quot;&gt;www.jiomoeclub.net&lt;/a&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;http://www.jamhurisoftware.com&quot;&gt;www.jamhurisoftware&lt;/a&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;http://www.fashtechcomputers.com&quot;&gt;www.fashtechcomputers&lt;/a&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&lt;/div&gt;<br />
<br />
&lt;/div&gt; &lt;!--end of main-body--&gt;<br />
<br />
&lt;div id=&quot;sidebar-2&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;inside&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;advertisement&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Contact details<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;img src=&quot;./images/contact_us.jpg&quot;/&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;strong&gt;Email: info@jiomoe.org&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Tel: +254723169577&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +254734297258&lt;/strong&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;advertisement&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Find Us<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;http://www.facebook.com/groups.php?ref=sb#/group.php?gid=98375464670&quot;&gt;&lt;img src=&quot;./images/facebook_badge.gif&quot; border=&quot;0&quot;/&gt;&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;?php<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; include(&quot;./include/footer.php&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ?&gt;<br />
&lt;/div&gt; &lt;!--end of wrap--&gt;<br />
<br />
&lt;/body&gt; &lt;/html&gt;</pre><br />
mailer.php<br />
 <pre style="margin:20px; line-height:13px">&lt;?php<br />
if(isset($_POST['email'])) {<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; // EDIT THE 2 LINES BELOW AS REQUIRED<br />
&nbsp; &nbsp; &nbsp; &nbsp; $email_to = &quot;info@jiomoe.org, matotien@gmail.com, nellynellbig@gmail.com,matotien@yahoo.com,jiomoeclub@yahoo.com,info@jiomoeclub.net&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $email_subject = &quot;Web Inquiries&quot;;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; function died($error) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // your error code can go here<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;We are very sorry, but there were error(s) found with the form your submitted. &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;These errors appear below.&lt;br /&gt;&lt;br /&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo $error.&quot;&lt;br /&gt;&lt;br /&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;Please go back and fix these errors.&lt;br /&gt;&lt;br /&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; die();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; // validation expected data exists<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(!isset($_POST['first_name']) ||<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; !isset($_POST['last_name']) ||<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; !isset($_POST['email']) ||<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //!isset($_POST['telephone']) ||<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; !isset($_POST['comments'])) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; died('We are sorry, but there appears to be a problem with the form your submitted.');&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $first_name = $_POST['first_name']; // required<br />
&nbsp; &nbsp; &nbsp; &nbsp; $last_name = $_POST['last_name']; // required<br />
&nbsp; &nbsp; &nbsp; &nbsp; $email_from = $_POST['email']; // required<br />
&nbsp; &nbsp; &nbsp; &nbsp; //$telephone = $_POST['telephone']; // not required<br />
&nbsp; &nbsp; &nbsp; &nbsp; $comments = $_POST['comments']; // required<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $error_message = &quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $email_exp = &quot;^[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$&quot;;<br />
&nbsp; if(!eregi($email_exp,$email_from)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $error_message .= 'The Email Address you entered does not appear to be valid.&lt;br /&gt;';<br />
&nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; $string_exp = &quot;^[a-z .'-]+$&quot;;<br />
&nbsp; if(!eregi($string_exp,$first_name)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $error_message .= 'The First Name you entered does not appear to be valid.&lt;br /&gt;';<br />
&nbsp; }<br />
&nbsp; if(!eregi($string_exp,$last_name)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $error_message .= 'The Last Name you entered does not appear to be valid.&lt;br /&gt;';<br />
&nbsp; }<br />
&nbsp; if(strlen($comments) &lt; 2) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $error_message .= 'The Comments you entered do not appear to be valid.&lt;br /&gt;';<br />
&nbsp; }<br />
&nbsp;/* $string_exp = &quot;^[0-9 .-]+$&quot;;<br />
&nbsp; if(!eregi($string_exp,$telephone)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $error_message .= 'The Telphone Number you entered does not appear to be valid.&lt;br /&gt;';<br />
&nbsp; }*/<br />
&nbsp; if(strlen($error_message) &gt; 0) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; died($error_message);<br />
&nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; $email_message = &quot;Form details below.\n\n&quot;;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; function clean_string($string) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $bad = array(&quot;content-type&quot;,&quot;bcc:&quot;,&quot;to:&quot;,&quot;cc:&quot;,&quot;href&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return str_replace($bad,&quot;&quot;,$string);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $email_message .= &quot;First Name: &quot;.clean_string($first_name).&quot;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $email_message .= &quot;Last Name: &quot;.clean_string($last_name).&quot;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $email_message .= &quot;Email: &quot;.clean_string($email_from).&quot;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $email_message .= &quot;Telephone: &quot;.clean_string($telephone).&quot;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $email_message .= &quot;Comments: &quot;.clean_string($comments).&quot;\n&quot;;<br />
&nbsp;<br />
&nbsp;<br />
// create email headers<br />
$headers = 'From: '.$email_from.&quot;\r\n&quot;.<br />
'Reply-To: '.$email_from.&quot;\r\n&quot; .<br />
'X-Mailer: PHP/' . phpversion();<br />
@mail($email_to, $email_subject, $email_message, $headers);&nbsp; <br />
?&gt;<br />
&nbsp;<br />
&lt;!-- include your own success html here --&gt;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;<br />
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br />
&lt;!-- @(#) $Id$ --&gt;<br />
&lt;head&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;title&gt;Jiomoe Foundation&lt;/title&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=ISO-8859-1&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta name=&quot;Keywords&quot; content= &quot;jiomoe, jiomoe foundation, youth, youth organization&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta name=&quot;Description&quot; content=&quot;Jiomoe Foundation is a volunteer community based youth initiative.&quot; /&gt;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta http-equiv=&quot;pragma&quot; content=&quot;no-cache&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta http-equiv=&quot;cache-control&quot; content=&quot;no-cache&quot; /&gt;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;link rel=&quot;shortcut icon&quot; href=&quot;./images/jiomoe-logo.jpg&quot; type=&quot;image/x-icon&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;./css/style.css&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;./css/customize.css&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;./css/layout.css&quot; /&gt;<br />
&nbsp;<br />
&nbsp;<br />
&lt;/head&gt; <br />
&nbsp;<br />
&lt;body&gt;<br />
&lt;div id=&quot;wrap&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;header&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;?php<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; include(&quot;logo.php&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ?&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;breadcrumb&quot;&gt;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;ul&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;li&gt;&lt;a href=&quot;index.php&quot; class=&quot;&quot;&gt;Home&lt;/a&gt;&lt;/li&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;li&gt;&lt;a href=&quot;aboutus.php&quot; class=&quot;active&quot;&gt;About Us&lt;/a&gt;&lt;/li&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;li&gt;&lt;a href=&quot;programs.php&quot; class=&quot;&quot;&gt;Our Programs&lt;/a&gt;&lt;/li&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;li&gt;&lt;a href=&quot;members.php&quot; class=&quot;&quot;&gt;Membership&lt;/a&gt;&lt;/li&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;li&gt;&lt;a href=&quot;careers.php&quot; class=&quot;&quot;&gt;Careers&lt;/a&gt;&lt;/li&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;li&gt;&lt;a href=&quot;contacts.php&quot; class=&quot;&quot;&gt;Contacts&lt;/a&gt;&lt;/li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/ul&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp;<br />
&lt;div id=&quot;main-body&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;content&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;inside&quot;&gt;<br />
&nbsp;<br />
&lt;p&gt;&lt;b&gt;Your message was sent&lt;/b&gt;&lt;/p&gt;<br />
&nbsp;<br />
&lt;p&gt;Your message was successfully sent!<br />
Thank you for contacting us, we will reply<br />
to your inquiry as soon as possible!&lt;/p&gt;<br />
&lt;a href=&quot;contacts.php&quot;&gt;&lt;input type=&quot;submit&quot; value=&quot;Back&quot;/&gt;&lt;/a&gt;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp;<br />
&lt;div id=&quot;sidebar&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;inside&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;border&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;Jiomoe Foundation is a Volunteer, Community based Youth initiative<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; founded by the Kenyan Youth to eradicate poverty,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; create employment opportunities, market and empower the Youth.&lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;border&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;info&quot;&gt;Information&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Founded&lt;br/&gt; 2008<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;border&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;info&quot;&gt;Links&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;http://www.jiomoeclub.net&quot;&gt;www.jiomoeclub.net&lt;/a&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;http://www.jamhurisoftware.com&quot;&gt;www.jamhurisoftware&lt;/a&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;http://www.fashtechcomputers.com&quot;&gt;www.fashtechcomputers&lt;/a&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&lt;/div&gt;<br />
&nbsp;<br />
&lt;/div&gt; &lt;!--end of main-body--&gt;<br />
&nbsp;<br />
&lt;div id=&quot;sidebar-2&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;inside&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;advertisement&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Advertisements<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;advertisement&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Find Us<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;#&quot;&gt;&lt;img src=&quot;./images/facebook_badge.gif&quot; border=&quot;0&quot;/&gt;&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;?php<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; include(&quot;./include/footer.php&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ?&gt;<br />
&lt;/div&gt; &lt;!--end of wrap--&gt;<br />
&nbsp;<br />
&lt;/body&gt; &lt;/html&gt;<br />
&nbsp;<br />
&nbsp;<br />
&lt;?<br />
}<br />
?&gt;</pre><br />
The merged file gave me a error message<br />
&quot;Parse error: syntax error, unexpected $end in C:\wamp\www\juhudi\contacts.php on line 288&quot;<br />
my merged file<br />
 <pre style="margin:20px; line-height:13px"><br />
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;<br />
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br />
&lt;!-- @(#) $Id$ --&gt;<br />
&lt;head&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;title&gt;Jiomoe Foundation&lt;/title&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=ISO-8859-1&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta name=&quot;Keywords&quot; content= &quot;jiomoe, jiomoe foundation, youth, youth organization&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta name=&quot;Description&quot; content=&quot;&quot; /&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta http-equiv=&quot;pragma&quot; content=&quot;no-cache&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta http-equiv=&quot;cache-control&quot; content=&quot;no-cache&quot; /&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;link rel=&quot;shortcut icon&quot; href=&quot;./images/jiomoe-logo.jpg&quot; type=&quot;image/x-icon&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;./css/style.css&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;./css/customize.css&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;./css/layout.css&quot; /&gt;<br />
<br />
<br />
&lt;/head&gt; <br />
<br />
&lt;body&gt;<br />
&lt;div id=&quot;wrap&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;header&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;?php<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; include(&quot;logo.php&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ?&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;breadcrumb&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;ul&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;li&gt;&lt;a href=&quot;index.php&quot; class=&quot;&quot;&gt;Home&lt;/a&gt;&lt;/li&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;li&gt;&lt;a href=&quot;aboutus.php&quot; class=&quot;&quot;&gt;About Us&lt;/a&gt;&lt;/li&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;li&gt;&lt;a href=&quot;programs.php&quot; class=&quot;&quot;&gt;Our Programs&lt;/a&gt;&lt;/li&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;li&gt;&lt;a href=&quot;members.php&quot; class=&quot;&quot;&gt;Membership&lt;/a&gt;&lt;/li&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;li&gt;&lt;a href=&quot;careers.php&quot; class=&quot;&quot;&gt;Careers&lt;/a&gt;&lt;/li&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;li&gt;&lt;a href=&quot;contacts.php&quot; class=&quot;active&quot;&gt;Contacts&lt;/a&gt;&lt;/li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/ul&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
<br />
&lt;div id=&quot;main-body&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;content&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;inside&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;form method=&quot;POST&quot; action=&quot;contacts.php&quot; form name=&quot;contacts&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;The fields marked with an asterik must be filled&lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;label for=&quot;first_name&quot;&gt;First Name:*&lt;/label&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;input type=&quot;text&quot; name=&quot;first_name&quot; size=&quot;19&quot;/&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;label for=&quot;Last_name&quot;&gt;Last Name:*&lt;/label&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;input type=&quot;text&quot; name=&quot;last_name&quot; size=&quot;19&quot;/&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;label for=&quot;telephone&quot;&gt;Telephone Number:&lt;/label&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;input type=&quot;text&quot; name=&quot;telephone&quot; size=&quot;19&quot;/&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;br/&gt;<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;label for=&quot;email&quot;&gt;Email:*&lt;/label&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;input type=&quot;text&quot; name=&quot;email&quot; size=&quot;19&quot;/&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;label for=&quot;comments&quot;&gt;Message:*&lt;/label&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;textarea rows=&quot;9&quot; name=&quot;comments&quot; cols=&quot;30&quot;&gt;&lt;/textarea&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;input type=&quot;submit&quot; value=&quot;Submit&quot; name=&quot;submit&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/form&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
<br />
&lt;div id=&quot;sidebar&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;inside&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;border&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;Jiomoe Foundation is a Volunteer, Community based Youth initiative<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; founded by the Kenyan Youth to eradicate poverty,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; create employment opportunities, market and empower the Youth.&lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;border&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;info&quot;&gt;Information&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Founded&lt;br/&gt; 2008<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;border&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;info&quot;&gt;Links&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;http://www.jiomoeclub.net&quot;&gt;www.jiomoeclub.net&lt;/a&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;http://www.jamhurisoftware.com&quot;&gt;www.jamhurisoftware&lt;/a&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;http://www.fashtechcomputers.com&quot;&gt;www.fashtechcomputers&lt;/a&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&lt;/div&gt;<br />
<br />
&lt;/div&gt; &lt;!--end of main-body--&gt;<br />
<br />
&lt;div id=&quot;sidebar-2&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;inside&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;advertisement&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Contact details<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;img src=&quot;./images/contact_us.jpg&quot;/&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;strong&gt;Email: info@jiomoe.org&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Tel: +254723169577&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +254734297258&lt;/strong&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;advertisement&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Find Us<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;http://www.facebook.com/groups.php?ref=sb#/group.php?gid=98375464670&quot;&gt;&lt;img src=&quot;./images/facebook_badge.gif&quot; border=&quot;0&quot;/&gt;&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;?php<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; include(&quot;./include/footer.php&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ?&gt;<br />
&lt;/div&gt; &lt;!--end of wrap--&gt;<br />
<br />
&lt;/body&gt; &lt;/html&gt;<br />
<br />
&lt;?php<br />
if(isset($_POST['email'])) {<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; // EDIT THE 2 LINES BELOW AS REQUIRED<br />
&nbsp; &nbsp; &nbsp; &nbsp; $email_to = &quot;info@jiomoe.org, matotien@gmail.com, nellynellbig@gmail.com,matotien@yahoo.com,jiomoeclub@yahoo.com,info@jiomoeclub.net&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $email_subject = &quot;Web Inquiries&quot;;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; function died($error) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // your error code can go here<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;We are very sorry, but there were error(s) found with the form your submitted. &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;These errors appear below.&lt;br /&gt;&lt;br /&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo $error.&quot;&lt;br /&gt;&lt;br /&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;Please go back and fix these errors.&lt;br /&gt;&lt;br /&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; die();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; // validation expected data exists<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(!isset($_POST['first_name']) ||<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; !isset($_POST['last_name']) ||<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; !isset($_POST['email']) ||<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //!isset($_POST['telephone']) ||<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; !isset($_POST['comments'])) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; died('We are sorry, but there appears to be a problem with the form your submitted.');&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $first_name = $_POST['first_name']; // required<br />
&nbsp; &nbsp; &nbsp; &nbsp; $last_name = $_POST['last_name']; // required<br />
&nbsp; &nbsp; &nbsp; &nbsp; $email_from = $_POST['email']; // required<br />
&nbsp; &nbsp; &nbsp; &nbsp; //$telephone = $_POST['telephone']; // not required<br />
&nbsp; &nbsp; &nbsp; &nbsp; $comments = $_POST['comments']; // required<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $error_message = &quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $email_exp = &quot;^[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$&quot;;<br />
&nbsp; if(!eregi($email_exp,$email_from)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $error_message .= 'The Email Address you entered does not appear to be valid.&lt;br /&gt;';<br />
&nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; $string_exp = &quot;^[a-z .'-]+$&quot;;<br />
&nbsp; if(!eregi($string_exp,$first_name)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $error_message .= 'The First Name you entered does not appear to be valid.&lt;br /&gt;';<br />
&nbsp; }<br />
&nbsp; if(!eregi($string_exp,$last_name)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $error_message .= 'The Last Name you entered does not appear to be valid.&lt;br /&gt;';<br />
&nbsp; }<br />
&nbsp; if(strlen($comments) &lt; 2) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $error_message .= 'The Comments you entered do not appear to be valid.&lt;br /&gt;';<br />
&nbsp; }<br />
&nbsp;/* $string_exp = &quot;^[0-9 .-]+$&quot;;<br />
&nbsp; if(!eregi($string_exp,$telephone)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $error_message .= 'The Telphone Number you entered does not appear to be valid.&lt;br /&gt;';<br />
&nbsp; }*/<br />
&nbsp; if(strlen($error_message) &gt; 0) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; died($error_message);<br />
&nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; $email_message = &quot;Form details below.\n\n&quot;;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; function clean_string($string) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $bad = array(&quot;content-type&quot;,&quot;bcc:&quot;,&quot;to:&quot;,&quot;cc:&quot;,&quot;href&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return str_replace($bad,&quot;&quot;,$string);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $email_message .= &quot;First Name: &quot;.clean_string($first_name).&quot;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $email_message .= &quot;Last Name: &quot;.clean_string($last_name).&quot;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $email_message .= &quot;Email: &quot;.clean_string($email_from).&quot;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $email_message .= &quot;Telephone: &quot;.clean_string($telephone).&quot;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $email_message .= &quot;Comments: &quot;.clean_string($comments).&quot;\n&quot;;<br />
&nbsp;<br />
&nbsp;<br />
// create email headers<br />
$headers = 'From: '.$email_from.&quot;\r\n&quot;.<br />
'Reply-To: '.$email_from.&quot;\r\n&quot; .<br />
'X-Mailer: PHP/' . phpversion();<br />
@mail($email_to, $email_subject, $email_message, $headers);&nbsp; <br />
?&gt;<br />
&nbsp;<br />
&lt;!-- include your own success html here --&gt;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;<br />
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br />
&lt;!-- @(#) $Id$ --&gt;<br />
&lt;head&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;title&gt;Jiomoe Foundation&lt;/title&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=ISO-8859-1&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta name=&quot;Keywords&quot; content= &quot;jiomoe, jiomoe foundation, youth, youth organization&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta name=&quot;Description&quot; content=&quot;Jiomoe Foundation is a volunteer community based youth initiative.&quot; /&gt;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta http-equiv=&quot;pragma&quot; content=&quot;no-cache&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta http-equiv=&quot;cache-control&quot; content=&quot;no-cache&quot; /&gt;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;link rel=&quot;shortcut icon&quot; href=&quot;./images/jiomoe-logo.jpg&quot; type=&quot;image/x-icon&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;./css/style.css&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;./css/customize.css&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;./css/layout.css&quot; /&gt;<br />
&nbsp;<br />
&nbsp;<br />
&lt;/head&gt; <br />
&nbsp;<br />
&lt;body&gt;<br />
&lt;div id=&quot;wrap&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;header&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;?php<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; include(&quot;logo.php&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ?&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;breadcrumb&quot;&gt;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;ul&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;li&gt;&lt;a href=&quot;index.php&quot; class=&quot;&quot;&gt;Home&lt;/a&gt;&lt;/li&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;li&gt;&lt;a href=&quot;aboutus.php&quot; class=&quot;active&quot;&gt;About Us&lt;/a&gt;&lt;/li&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;li&gt;&lt;a href=&quot;programs.php&quot; class=&quot;&quot;&gt;Our Programs&lt;/a&gt;&lt;/li&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;li&gt;&lt;a href=&quot;members.php&quot; class=&quot;&quot;&gt;Membership&lt;/a&gt;&lt;/li&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;li&gt;&lt;a href=&quot;careers.php&quot; class=&quot;&quot;&gt;Careers&lt;/a&gt;&lt;/li&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;li&gt;&lt;a href=&quot;contacts.php&quot; class=&quot;&quot;&gt;Contacts&lt;/a&gt;&lt;/li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/ul&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp;<br />
&lt;div id=&quot;main-body&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;content&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;inside&quot;&gt;<br />
&nbsp;<br />
&lt;p&gt;&lt;b&gt;Your message was sent&lt;/b&gt;&lt;/p&gt;<br />
&nbsp;<br />
&lt;p&gt;Your message was successfully sent!<br />
Thank you for contacting us, we will reply<br />
to your inquiry as soon as possible!&lt;/p&gt;<br />
&lt;a href=&quot;contacts.php&quot;&gt;&lt;input type=&quot;submit&quot; value=&quot;Back&quot;/&gt;&lt;/a&gt;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp;<br />
&lt;div id=&quot;sidebar&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;inside&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;border&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;Jiomoe Foundation is a Volunteer, Community based Youth initiative<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; founded by the Kenyan Youth to eradicate poverty,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; create employment opportunities, market and empower the Youth.&lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;border&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;info&quot;&gt;Information&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Founded&lt;br/&gt; 2008<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;border&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;info&quot;&gt;Links&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;http://www.jiomoeclub.net&quot;&gt;www.jiomoeclub.net&lt;/a&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;http://www.jamhurisoftware.com&quot;&gt;www.jamhurisoftware&lt;/a&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;http://www.fashtechcomputers.com&quot;&gt;www.fashtechcomputers&lt;/a&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&lt;/div&gt;<br />
&nbsp;<br />
&lt;/div&gt; &lt;!--end of main-body--&gt;<br />
&nbsp;<br />
&lt;div id=&quot;sidebar-2&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;inside&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;advertisement&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Advertisements<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;advertisement&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Find Us<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;#&quot;&gt;&lt;img src=&quot;./images/facebook_badge.gif&quot; border=&quot;0&quot;/&gt;&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;?php<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; include(&quot;./include/footer.php&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ?&gt;<br />
&lt;/div&gt; &lt;!--end of wrap--&gt;<br />
&nbsp;<br />
&lt;/body&gt; &lt;/html&gt;<br />
&nbsp;<br />
&nbsp;<br />
&lt;?<br />
}<br />
?&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>motieno</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239358.html</guid>
		</item>
		<item>
			<title>Help with checkboxes</title>
			<link>http://www.daniweb.com/forums/thread239336.html</link>
			<pubDate>Wed, 18 Nov 2009 00:57:53 GMT</pubDate>
			<description><![CDATA[Hi All, 
 
I have the following code: 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a>...]]></description>
			<content:encoded><![CDATA[<div>Hi All,<br />
<br />
I have the following code:<br />
<br />
 <pre style="margin:20px; line-height:13px">$requester_email = $_POST['requester_email'];<br />
$requester_name = $_POST['requester_name'];<br />
$todays_date = $_POST['todays_date'];<br />
$Start_Date = $_POST['Start_Date'];<br />
$End_Date = $_POST['End_Date'];<br />
$Department = $_POST['Department'];<br />
$No_Engineers_Required = $_POST['No_Engineers_Required'];<br />
$Prefered_Engineers = $_POST['Prefered_Engineers'];<br />
$Customer_Name = $_POST['Customer_Name'];<br />
$Location = $_POST['Location'];<br />
$Type_Of_Job = $_POST['Type_Of_Job'];<br />
$Job_Ref_No = $_POST['Job_Ref_No'];<br />
$Additional_info = $_POST['Additional_info'];</pre><br />
The help I need is the information for Prefered_Engineers comes from a collection of checkboxes.  <br />
<br />
This code is here:<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;td&gt;<br />
&lt;font color=&quot;#000000&quot; size=&quot;2&quot; face=&quot;Arial&quot;&gt;<br />
&lt;input name=&quot;Prefered_Engineers[]&quot; type=&quot;checkbox&quot; value=&quot;GT&quot; class=&quot;fieldstyle&quot;&gt;<br />
&lt;br&gt;<br />
&lt;input name=&quot;Prefered_Engineers[]&quot; type=&quot;checkbox&quot; value=&quot;CT&quot; class=&quot;fieldstyle&quot;&gt;<br />
&lt;br&gt;<br />
&lt;input name=&quot;Prefered_Engineers[]&quot; type=&quot;checkbox&quot; value=&quot;GB&quot; class=&quot;fieldstyle&quot;&gt;<br />
&lt;br&gt;<br />
&lt;input name=&quot;Prefered_Engineers[]&quot; type=&quot;checkbox&quot; value=&quot;GK&quot; class=&quot;fieldstyle&quot;&gt;<br />
&lt;br&gt;<br />
&lt;input name=&quot;Prefered_Engineers[]&quot; type=&quot;checkbox&quot; value=&quot;MH&quot; class=&quot;fieldstyle&quot;&gt;<br />
&lt;br&gt;<br />
&lt;input name=&quot;Prefered_Engineers[]&quot; type=&quot;checkbox&quot; value=&quot;DR&quot; class=&quot;fieldstyle&quot;&gt;<br />
&lt;br&gt;<br />
&lt;input name=&quot;Prefered_Engineers[]&quot; type=&quot;checkbox&quot; value=&quot;JM&quot; class=&quot;fieldstyle&quot;&gt;<br />
&lt;br&gt;<br />
&lt;input name=&quot;Prefered_Engineers[]&quot; type=&quot;checkbox&quot; value=&quot;LL&quot; class=&quot;fieldstyle&quot;&gt;<br />
&lt;br&gt;<br />
&lt;input name=&quot;Prefered_Engineers[]&quot; type=&quot;checkbox&quot; value=&quot;CJ&quot; class=&quot;fieldstyle&quot;&gt;<br />
&lt;br&gt;<br />
&lt;input name=&quot;Prefered_Engineers[]&quot; type=&quot;checkbox&quot; value=&quot;NW&quot; class=&quot;fieldstyle&quot;&gt;<br />
&lt;br&gt;<br />
&lt;input name=&quot;Prefered_Engineers[]&quot; type=&quot;checkbox&quot; value=&quot;HG&quot; class=&quot;fieldstyle&quot;&gt;<br />
&lt;br&gt;<br />
&lt;input name=&quot;Prefered_Engineers[]&quot; type=&quot;checkbox&quot; value=&quot;DH&quot; class=&quot;fieldstyle&quot;&gt;<br />
&lt;br&gt;<br />
&lt;input name=&quot;Prefered_Engineers[]&quot; type=&quot;checkbox&quot; value=&quot;JW&quot; class=&quot;fieldstyle&quot;&gt;<br />
&lt;br&gt;<br />
&lt;input name=&quot;Prefered_Engineers[]&quot; type=&quot;checkbox&quot; value=&quot;JB&quot; class=&quot;fieldstyle&quot;&gt;<br />
&lt;/font&gt;<br />
&lt;/td&gt;</pre><br />
The value passed is 'Array'.<br />
<br />
Can anyone help so that all of the selected checkbox values are passed.<br />
<br />
Regards,<br />
<br />
T</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>feddie1984</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239336.html</guid>
		</item>
		<item>
			<title>Echo array</title>
			<link>http://www.daniweb.com/forums/thread239312.html</link>
			<pubDate>Wed, 18 Nov 2009 00:26:55 GMT</pubDate>
			<description><![CDATA[Here is my code: 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div> <div> <strong>PHP...]]></description>
			<content:encoded><![CDATA[<div>Here is my code:<br />
 <pre style="margin:20px; line-height:13px">&lt;?php<br />
$connection = mysql_connect(&quot;myserver.com&quot;,&quot;myuser&quot;,&quot;mypassword&quot;) or die (&quot;Couldn't connect to server.&quot;); <br />
$db = mysql_select_db(&quot;mydb&quot;, $connection) or die (&quot;Couldn't select database.&quot;); <br />
<br />
$search=$_POST['search'];<br />
<br />
$data = &quot;SELECT firstname, lastname, task FROM inventors WHERE taskdate - curdate() = 1&quot;;<br />
&nbsp; $query = mysql_query($data) or die(&quot;Couldn't execute query. &quot;. mysql_error());<br />
&nbsp; $data2 = mysql_fetch_array($query);<br />
<br />
echo &quot;$data2[firstname] &quot;; <br />
echo &quot;$data2[lastname] &quot;;<br />
echo &quot;$data2[task]&quot;; <br />
&nbsp; <br />
?&gt;</pre>In my database, I have two records that meet the criteria.<br />
When I run the select in MySQLAdmin, it brings me two records.<br />
The PHP, though, echoes only one.<br />
What's wrong with the code?<br />
<br />
Thank you!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>levsha</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239312.html</guid>
		</item>
		<item>
			<title>passing jquery values to php variables</title>
			<link>http://www.daniweb.com/forums/thread239239.html</link>
			<pubDate>Tue, 17 Nov 2009 17:17:39 GMT</pubDate>
			<description><![CDATA[i have a form in another form............ 
 
<form1> 
 
<form2> 
</for> 
 
</form> 
 
the form2 is submited automatically, and has only one field of fileupload, and is auto processing file upload with jquery ajax...!!]]></description>
			<content:encoded><![CDATA[<div>i have a form in another form............<br />
<br />
&lt;form1&gt;<br />
<br />
&lt;form2&gt;<br />
&lt;/for&gt;<br />
<br />
&lt;/form&gt;<br />
<br />
the form2 is submited automatically, and has only one field of fileupload, and is auto processing file upload with jquery ajax...!!<br />
<br />
it works fine for me but when i pass the response filename of form2 to form1 &lt;input&gt; field it shows me fine........but when i submit form1 the &lt;input&gt; field which contains the form2 response value it  says empty........!! how can i fix that</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>shishtawitch</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239239.html</guid>
		</item>
		<item>
			<title>PHP causes query error</title>
			<link>http://www.daniweb.com/forums/thread239226.html</link>
			<pubDate>Tue, 17 Nov 2009 16:03:50 GMT</pubDate>
			<description><![CDATA[I have the following code which results in a mysql error.  However, when I use this query in PHPMyAdmin it works fine.  Can anyone see what is causing the error? 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>I have the following code which results in a mysql error.  However, when I use this query in PHPMyAdmin it works fine.  Can anyone see what is causing the error?<br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; for($i=0; $i&lt;10; $i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $nextDay = $i+1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $startDateTime = date(&quot;Y-m-d H:i:s&quot;, strtotime(&quot;-$i days&quot;));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $endDateTime = date(&quot;Y-m-d H:i:s&quot;, strtotime(&quot;-$nextDay days&quot;));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $query = &quot;select title, app_id, count(*) as cnt from app_instances where (time between $endDateTime and $startDateTime) and (app_id = $subjectId)&nbsp; group by title&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $result = mysql_query($query) or die(&quot;error: &quot;.mysql_error());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $title = $row['title'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $count = $row['cnt'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $appId = $row['app_id'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo $startDateTime.&quot;&nbsp; &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo $title.&quot;&nbsp; &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo $count.&quot;&nbsp; &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo $endDateTime;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo '&lt;br /&gt;';<br />
}</pre><br />
Creates the error:<br />
<br />
 <pre style="margin:20px; line-height:13px">You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '16:02:51 and 2009-11-17 16:02:51) and (app_id = 2) group by title' at line 1</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>benkyma</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239226.html</guid>
		</item>
		<item>
			<title>Print Multiple Files using PHP</title>
			<link>http://www.daniweb.com/forums/thread239199.html</link>
			<pubDate>Tue, 17 Nov 2009 12:57:54 GMT</pubDate>
			<description>Dear All 
           I have developed a lease management System. 
           I have stored 4000+ Lease agreements and purchase orders. 
           Folders Structure 
           Main Folder : LAPO 
           Subfolders: North , Center , South 
           Subfolders : 1245 , 9867 like these...</description>
			<content:encoded><![CDATA[<div>Dear All<br />
           I have developed a lease management System.<br />
           I have stored 4000+ Lease agreements and purchase orders.<br />
           Folders Structure<br />
           Main Folder : LAPO<br />
           Subfolders: North , Center , South<br />
           Subfolders : 1245 , 9867 like these (numeric)<br />
           In each numeric folder there are 2 files <br />
           LA.pdf and PO.Pdf<br />
           How I can print them all</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>ayesha789</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239199.html</guid>
		</item>
		<item>
			<title>images</title>
			<link>http://www.daniweb.com/forums/thread239195.html</link>
			<pubDate>Tue, 17 Nov 2009 12:45:45 GMT</pubDate>
			<description>hello, 
 
 
            is it possible to delete waste images from folder using php.  
for suppose user uploaded images....after his account expires his account will be deletes by admin. at the same how to delete his photos from folder.</description>
			<content:encoded><![CDATA[<div>hello,<br />
<br />
<br />
            is it possible to delete waste images from folder using php. <br />
for suppose user uploaded images....after his account expires his account will be deletes by admin. at the same how to delete his photos from folder.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>muralikalpana</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239195.html</guid>
		</item>
		<item>
			<title>Array repeats values in it</title>
			<link>http://www.daniweb.com/forums/thread239194.html</link>
			<pubDate>Tue, 17 Nov 2009 12:42:31 GMT</pubDate>
			<description><![CDATA[Hi, 
 
 
Code below returns this.  
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div>...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
<br />
Code below returns this. <br />
<br />
 <pre style="margin:20px; line-height:13px">Array<br />
(<br />
&nbsp; &nbsp; [0] =&gt; 3<br />
&nbsp; &nbsp; [id] =&gt; 3<br />
&nbsp; &nbsp; [1] =&gt; John<br />
&nbsp; &nbsp; [name] =&gt; John<br />
&nbsp; &nbsp; [2] =&gt; Goog<br />
&nbsp; &nbsp; [surname] =&gt; Goog<br />
)</pre><br />
<br />
Everything repeated. Why? Also, I need to serialize. I need it for some other reason.<br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; $sql=&quot;SELECT * FROM friends WHERE id='3'&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $runSql=mysql_query($sql);<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(mysql_num_rows($runSql)&gt;0){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $newArray=mysql_fetch_array($runSql);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return serialize($newArray);<br />
&nbsp; &nbsp; &nbsp; &nbsp; } else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return &quot;ERROR: No friend found&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
echo &quot;&lt;pre&gt;&quot;;<br />
print_r(unserialize($response));</pre><br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>veledrom</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239194.html</guid>
		</item>
		<item>
			<title>global variables in php</title>
			<link>http://www.daniweb.com/forums/thread239180.html</link>
			<pubDate>Tue, 17 Nov 2009 11:05:21 GMT</pubDate>
			<description>hi, 
i am trying to upload an image with comment......!! 
 
mycode is like below...... 
 
if($_POST){ 
getting posted variables for comment 
mysql_query(adding into database); 
 
if(image is posted){now getting image variables</description>
			<content:encoded><![CDATA[<div>hi,<br />
i am trying to upload an image with comment......!!<br />
<br />
mycode is like below......<br />
<br />
if($_POST){<br />
getting posted variables for comment<br />
mysql_query(adding into database);<br />
<br />
if(image is posted){now getting image variables<br />
mysql_query(inserting into database);<br />
}<br />
}<br />
<br />
if works fine for me but problem is that i have two different tables one for comment and one for image........!! i want to add current user id also into image table but it is not passing to table but rest of code is working all the way fine..........!! how can i do that</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>shishtawitch</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239180.html</guid>
		</item>
		<item>
			<title>Making mysql links clickable in php</title>
			<link>http://www.daniweb.com/forums/thread239170.html</link>
			<pubDate>Tue, 17 Nov 2009 10:20:42 GMT</pubDate>
			<description><![CDATA[Hi everyone, I've been a reader for a long time, now I've joined up, as I'm fairly stumped on this one!! 
 
I'm currently teaching myself mysql and php at work, and have a problem. I am using php to produce a listing of restaurants on a page, and I would like to do the following at the end of each...]]></description>
			<content:encoded><![CDATA[<div>Hi everyone, I've been a reader for a long time, now I've joined up, as I'm fairly stumped on this one!!<br />
<br />
I'm currently teaching myself mysql and php at work, and have a problem. I am using php to produce a listing of restaurants on a page, and I would like to do the following at the end of each line:<br />
<br />
1) If the website field is not blank, display the url (or even just &quot;Website&quot;)<br />
<br />
2) Make the URL Clickable, and open in a new window.<br />
<br />
I've managed to produce the list, however my code has gone south somewhere as the &quot;website&quot; field is displaying even when there is no entry in the database. Also when the link is present it's clickable, but opening in the same window. Can someone help me and tell me where I've gone wrong?<br />
<br />
 <pre style="margin:20px; line-height:13px"> &lt;?php<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mysql_connect(HOST,USER,PASS);<br />
@mysql_select_db(&quot;db303278079&quot;) or die( &quot;Unable to select database&quot;);<br />
$query=&quot;<br />
SELECT * FROM restaurants&quot;;<br />
$result=mysql_query($query);<br />
$num=mysql_numrows($result);<br />
mysql_close();<br />
$i=0;<br />
while ($i &lt; $num) {<br />
$rest_name=mysql_result($result,$i,&quot;rest_name&quot;);<br />
$address=mysql_result($result,$i,&quot;address&quot;);<br />
$telephone=mysql_result($result,$i,&quot;telephone&quot;);<br />
$website=mysql_result($result,$i,&quot;website&quot;);<br />
$cuisine_type=mysql_result($result,$i,&quot;cuisine_type&quot;);<br />
$area=mysql_result($result,$i,&quot;area&quot;);<br />
echo &quot;&lt;strong&gt;$rest_name&lt;/strong&gt;, $address, $telephone, ($cuisine_type), $area, &lt;A HREF=$website&gt;'Website'&lt;/a&gt;&lt;br &gt;&quot;;<br />
$i++;<br />
}<br />
?&gt;</pre><br />
Thanks in advance for your help :)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>dmkc</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239170.html</guid>
		</item>
		<item>
			<title>joomla mynxx</title>
			<link>http://www.daniweb.com/forums/thread239143.html</link>
			<pubDate>Tue, 17 Nov 2009 07:28:04 GMT</pubDate>
			<description>hi to all 
any one  pls help me with this 
 id ont know how to edit mynnxx template of joomla.</description>
			<content:encoded><![CDATA[<div>hi to all<br />
any one  pls help me with this<br />
 id ont know how to edit mynnxx template of joomla.</div>  <br /> <div style="padding:5px">    <fieldset class="fieldset"> <legend>Attached Images</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/jpg.gif" alt="File Type: jpg" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12587&amp;d=1258442854" target="_blank">logo.JPG</a> (10.5 KB)</td> </tr> </table> </fieldset>   </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>angel_devon21</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239143.html</guid>
		</item>
		<item>
			<title>changing session timeout</title>
			<link>http://www.daniweb.com/forums/thread239133.html</link>
			<pubDate>Tue, 17 Nov 2009 06:53:57 GMT</pubDate>
			<description>Hi one of my friend have this problem.. it will be helpful if we can give him a solution. 
 
The session is set for 10 min .. but for one particular page the session must be extended and for other pages it must be set as before.. or resetted so that it will take from the xml file. 
Thanks in...</description>
			<content:encoded><![CDATA[<div>Hi one of my friend have this problem.. it will be helpful if we can give him a solution.<br />
<br />
The session is set for 10 min .. but for one particular page the session must be extended and for other pages it must be set as before.. or resetted so that it will take from the xml file.<br />
Thanks in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>vgkarthi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239133.html</guid>
		</item>
		<item>
			<title>Using SELECT function</title>
			<link>http://www.daniweb.com/forums/thread239132.html</link>
			<pubDate>Tue, 17 Nov 2009 06:51:19 GMT</pubDate>
			<description><![CDATA[I would like to make some query using the SELECT function. However i wasnt able to get the results i want. 
My code is as follow:  
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>I would like to make some query using the SELECT function. However i wasnt able to get the results i want.<br />
My code is as follow: <br />
<br />
 <pre style="margin:20px; line-height:13px">$sql = &quot;SELECT *<br />
FROM device <br />
WHERE ((device_num like '%$val_d%') OR (dib like '%$val_dp%')) &quot;;</pre><br />
can i write it in this way? pls advise thanks people..:)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>futhonguy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239132.html</guid>
		</item>
		<item>
			<title>mailing concept</title>
			<link>http://www.daniweb.com/forums/thread239129.html</link>
			<pubDate>Tue, 17 Nov 2009 06:34:06 GMT</pubDate>
			<description><![CDATA[hello, 
            i want to do a new task. but it is new to me. any body help plz... 
 
 
           i want to  send  registration form through email to users. then user fill that registration form. i wrote javascript in mail body but in that javascript not working. below is my 'mail body' 
 ...]]></description>
			<content:encoded><![CDATA[<div>hello,<br />
            i want to do a new task. but it is new to me. any body help plz...<br />
<br />
<br />
           i want to  send  registration form through email to users. then user fill that registration form. i wrote javascript in mail body but in that javascript not working. below is my 'mail body'<br />
 <pre style="margin:20px; line-height:13px">//this subject will be visible only for you<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $sub = &quot;&quot;.$name.&quot; invites you to www.murali.com&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $msg = &quot;&lt;html&gt;&lt;head&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;script&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function valide()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.formz.username.value=='')<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert('enter username');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.formz.username.focus();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.formz.password.value=='')<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert('enter password');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.formz.password.focus();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; window.document.formz.action='http://localhost/murali/';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/script&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/head&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;body&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;table width='100%'&nbsp; border='0' cellspacing='0' cellpadding='0'&gt;<br />
&nbsp; &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;td height='8'&gt;&lt;/td&gt;<br />
&nbsp; &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; &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;td style='font-family:Verdana; font-size:12px; font-weight:normal; color:#000000' align='left'&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; &nbsp; &nbsp; &nbsp; &nbsp; &lt;br&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; &nbsp; &nbsp; &nbsp; &nbsp; <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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;&quot;.$transl2.&quot; &lt;/p&gt;&lt;br&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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;form name='formz' action='' method='post' onsubmit='return valide();'&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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;table align='center'&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; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;username&lt;/td&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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input type='text' name='username'&gt;&lt;/td&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; &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; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;password&lt;/td&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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input type='password' name='password'&gt;&lt;/td&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; &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; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&amp;nbsp;&lt;/td&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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input type='submit' name='submit' value='submit' &gt;&lt;/td&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; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/form&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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &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; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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; &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;td height='8'&gt;&lt;/td&gt;<br />
&nbsp; &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; &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;td height='8'&gt;&lt;/td&gt;<br />
&nbsp; &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;  <br />
&nbsp; &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;td height='8'&gt;&lt;/td&gt;<br />
&nbsp; &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; &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;td align='left' style='font-family:Verdana; font-size:12px; font-weight:bold; color:#47493F'&gt;Regards,&lt;br&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; murali.<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;/td&gt;<br />
&nbsp; &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; &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;td height='8'&gt;&lt;/td&gt;<br />
&nbsp; &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; &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;td height='8'&gt;&lt;/td&gt;<br />
&nbsp; &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;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &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;td height='4'&gt;&lt;/td&gt;<br />
&nbsp; &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;/table&gt;&lt;/body&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/html&gt;&quot;;</pre>.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>muralikalpana</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239129.html</guid>
		</item>
		<item>
			<title>auto refresh</title>
			<link>http://www.daniweb.com/forums/thread239125.html</link>
			<pubDate>Tue, 17 Nov 2009 06:19:29 GMT</pubDate>
			<description>hi, 
got a new prob, how can i create a php page that automatically refreshes each time i access the page.</description>
			<content:encoded><![CDATA[<div>hi,<br />
got a new prob, how can i create a php page that automatically refreshes each time i access the page.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>iraberyl</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239125.html</guid>
		</item>
		<item>
			<title>div tag + iframe</title>
			<link>http://www.daniweb.com/forums/thread239117.html</link>
			<pubDate>Tue, 17 Nov 2009 05:11:34 GMT</pubDate>
			<description>hi! 
I want add div value to ifram as source, 
help me</description>
			<content:encoded><![CDATA[<div>hi!<br />
I want add div value to ifram as source,<br />
help me</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>soeb</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239117.html</guid>
		</item>
		<item>
			<title>Concatination of variables in an UPDATE statement</title>
			<link>http://www.daniweb.com/forums/thread239099.html</link>
			<pubDate>Tue, 17 Nov 2009 03:41:05 GMT</pubDate>
			<description><![CDATA[I have an HTML form with three dropdown selects: 
month, day and year. 
I have four fields in my MySQL table: 
month, day, year, and date. 
The 'date' field is supposed to contain the concatenated values of the year, month and day separated by dashes. 
I write this in my PHP: 
 
  <div...]]></description>
			<content:encoded><![CDATA[<div>I have an HTML form with three dropdown selects:<br />
month, day and year.<br />
I have four fields in my MySQL table:<br />
month, day, year, and date.<br />
The 'date' field is supposed to contain the concatenated values of the year, month and day separated by dashes.<br />
I write this in my PHP:<br />
<br />
 <pre style="margin:20px; line-height:13px">$data = &quot;UPDATE inventors SET month='$month',<br />
day='$day', year='$year', date='$year . &quot;-&quot; . $month . &quot;-&quot; . $day' <br />
WHERE lastname=&quot;.'&quot;'.$lastname.'&quot;';</pre><br />
The concatenation doesn't work.<br />
What am I doing wrong?<br />
<br />
Thank you!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>levsha</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239099.html</guid>
		</item>
		<item>
			<title>what is wrong with my code</title>
			<link>http://www.daniweb.com/forums/thread239040.html</link>
			<pubDate>Mon, 16 Nov 2009 21:28:12 GMT</pubDate>
			<description><![CDATA[Why doesnt this code work.  I keep getting false even when i type in the correct username and password 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox"...]]></description>
			<content:encoded><![CDATA[<div>Why doesnt this code work.  I keep getting false even when i type in the correct username and password<br />
<br />
 <pre style="margin:20px; line-height:13px">$user_name = mysql_query(&quot;SELECT * FROM users WHERE username =<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  '&quot;.$Entered_UserName .&quot;' <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  AND password = '&quot;.md5($Entered_PassWord) . &quot;'&quot;);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;  $user_name_password = mysql_fetch_assoc($user_name);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;  if($user_name_password === false)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  echo 'false';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp;  else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  echo 'true';<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>mrjoli021</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239040.html</guid>
		</item>
		<item>
			<title>Checking for Value of 0 instead of Empty Value</title>
			<link>http://www.daniweb.com/forums/thread239039.html</link>
			<pubDate>Mon, 16 Nov 2009 21:26:37 GMT</pubDate>
			<description>I am checking to see if a value has been entered in a form and then updating only if a value is entered.  The problem is I want 0 to be an option that can be entered and php is treating 0 as if it were the same as NULL which is the default entry in the DB so what I end up with is 0 entered in each...</description>
			<content:encoded><![CDATA[<div>I am checking to see if a value has been entered in a form and then updating only if a value is entered.  The problem is I want 0 to be an option that can be entered and php is treating 0 as if it were the same as NULL which is the default entry in the DB so what I end up with is 0 entered in each column of the DB instead of empty values in some and numerical values in some.  <br />
<br />
<span style="color:Red">Is there a way to check and see if a number <span style="font-weight:bold">including 0 </span>has been entered and if not to treat the field as NULL?</span><br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($value != NULL ){<br />
&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; //Update The Standing Order Amount<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $insert = &quot;UPDATE custom_items SET AltQuantity='$value' WHERE VisitorID='$_SESSION[VisitorID]' AND ItemID='$item[id]'&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  mysqli_query($dbc, $insert);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</pre><br />
Thanks,<br />
Eric</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>zeusofolus</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239039.html</guid>
		</item>
		<item>
			<title>Create new directory based on new database record</title>
			<link>http://www.daniweb.com/forums/thread239035.html</link>
			<pubDate>Mon, 16 Nov 2009 21:02:03 GMT</pubDate>
			<description>Hello folks! 
 
Is it possible to create directories on my web server based on new database entries? 
 
I am implementing a photo gallery and want to have it such that, when a user ADDS a new Gallery, a (sub)directory is created with the name that the user gave the gallery. Then when the user...</description>
			<content:encoded><![CDATA[<div>Hello folks!<br />
<br />
Is it possible to create directories on my web server based on new database entries?<br />
<br />
I am implementing a photo gallery and want to have it such that, when a user ADDS a new Gallery, a (sub)directory is created with the name that the user gave the gallery. Then when the user uploads photos into that gallery, they are actually stored in the corresponding folder.<br />
<br />
Help, anyone?<br />
<br />
Thanks so much in advance!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>sadiebee</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239035.html</guid>
		</item>
		<item>
			<title>xml file from php script</title>
			<link>http://www.daniweb.com/forums/thread239033.html</link>
			<pubDate>Mon, 16 Nov 2009 20:56:27 GMT</pubDate>
			<description><![CDATA[Hi All, 
 
Im wanting the following script to output to an XML file, but im getting an error on line 18 and i have hit a brick wall.  
 
Help would be appreciated. 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Hi All,<br />
<br />
Im wanting the following script to output to an XML file, but im getting an error on line 18 and i have hit a brick wall. <br />
<br />
Help would be appreciated.<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;?php<br />
require_once(&quot;connect.inc.php&quot;);<br />
&nbsp;  $db = getConnectionMySql();<br />
&nbsp;  $stmt = $db-&gt;query(&quot;SELECT email, name, lastlogin FROM subscriber&quot;);<br />
&nbsp;  while ( $obj = $stmt-&gt;fetchObject()){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  echo $obj-&gt;email . &quot;:&quot; . $obj-&gt;name . &quot;:&quot; . $obj-&gt;lastlogin .&nbsp; &quot;&lt;br /&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  //&nbsp;  print &quot; &lt;row&gt;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; // print &quot;&nbsp; &lt;email&gt;$email&lt;/email&gt;\n&quot;;<br />
&nbsp; &nbsp; &nbsp;  //print &quot;&nbsp; &lt;name&gt;$name&lt;/name&gt;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  //print &quot; &lt;lastlogin&gt;$lastlogin&lt;/lastlogin&gt;\n&quot;;<br />
&nbsp; &nbsp; &nbsp;  //print &quot; &lt;/row&gt;\n&quot;;<br />
&nbsp;  }<br />
&nbsp;  <br />
&nbsp;  $fp = fopen('subscribers.xml','w');<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(!$fp) {<br />
&nbsp; &nbsp; die('Error cannot create XML file');<br />
}<br />
fwrite($fp-&gt;$obj());<br />
fclose($fp);<br />
?&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>whiteyoh</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239033.html</guid>
		</item>
		<item>
			<title>php syntax error</title>
			<link>http://www.daniweb.com/forums/thread239018.html</link>
			<pubDate>Mon, 16 Nov 2009 20:00:01 GMT</pubDate>
			<description><![CDATA[Hi All, 
 
the following code is giving me the following error and i would appreciate any help in identifying where the error lies 
 
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /Applications/MAMP/htdocs/CG0119/index.php on line 6 
 
the code is here,...]]></description>
			<content:encoded><![CDATA[<div>Hi All,<br />
<br />
the following code is giving me the following error and i would appreciate any help in identifying where the error lies<br />
<br />
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /Applications/MAMP/htdocs/CG0119/index.php on line 6<br />
<br />
the code is here, and line 6 is the echo statement<br />
<br />
 <pre style="margin:20px; line-height:13px"> $db = getConnectionMySql();<br />
&nbsp;  $stmt = $db-&gt;query(&quot;SELECT email, name, lastlogin FROM subscriber&quot;);<br />
&nbsp;  while ( $obj = $stmt-&gt;fetchObject()){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  echo $obj-&gt;email . ':''\n';</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>whiteyoh</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239018.html</guid>
		</item>
		<item>
			<title>Basic array question</title>
			<link>http://www.daniweb.com/forums/thread238983.html</link>
			<pubDate>Mon, 16 Nov 2009 17:33:57 GMT</pubDate>
			<description><![CDATA[I successfully scripted an fetch array while loop on a table called example.   
 
What's the name of the function that will return the name of the array that was created by the fetch array while loop? 
 
What's the name of the function that will turn the number of rows in an array? 
 
Thanks]]></description>
			<content:encoded><![CDATA[<div>I successfully scripted an fetch array while loop on a table called example.  <br />
<br />
What's the name of the function that will return the name of the array that was created by the fetch array while loop?<br />
<br />
What's the name of the function that will turn the number of rows in an array?<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>niche1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238983.html</guid>
		</item>
		<item>
			<title>Drop down menu populated from database and buttons</title>
			<link>http://www.daniweb.com/forums/thread238965.html</link>
			<pubDate>Mon, 16 Nov 2009 16:12:12 GMT</pubDate>
			<description><![CDATA[Hello everybody. I'm pretty new to PHP and mysql. I made a mysql database table: Election_Table 
One of the fields in there is elect_title, and the primary key is ID 
 
I am trying to make a drop down menu that has the names of all the names of the elections (elect_title) in this table. I also need...]]></description>
			<content:encoded><![CDATA[<div>Hello everybody. I'm pretty new to PHP and mysql. I made a mysql database table: Election_Table<br />
One of the fields in there is elect_title, and the primary key is ID<br />
<br />
I am trying to make a drop down menu that has the names of all the names of the elections (elect_title) in this table. I also need to pass whatever election the user chose to link with buttons with different functions. Say if I have a 'Status' button, I will choose a election from the drop down and click 'Status' button to see status (I will have a function called showStatus on this file that will handle this). Here's what i have so far: Nothing shows up<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;?<br />
<br />
$sql=mysql_query(&quot;SELECT elect_title FROM Election_Table&quot;) or die(&quot;Cannot retrieve names from election table&quot;);<br />
<br />
$result=mysql_query($sql);<br />
<br />
print($result);<br />
$options=&quot;&quot;;<br />
<br />
while ($row=mysql_fetch_array($result)) {<br />
<br />
&nbsp; $id=$row[&quot;elect_title&quot;];<br />
&nbsp; $options.=&quot;&lt;OPTION VALUE=\&quot;$elect_title\&quot;&gt;&quot;;<br />
}<br />
<br />
?&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>loveisblind</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238965.html</guid>
		</item>
		<item>
			<title>how to make a direct link web site</title>
			<link>http://www.daniweb.com/forums/thread238959.html</link>
			<pubDate>Mon, 16 Nov 2009 15:36:57 GMT</pubDate>
			<description>HI 
i have made a web site. what I want to do is that I want to make a direct link from rapidshare . I mean to transfer a file from rapidshare to my site and give it a direct link address .  
 
how can I do so ? 
 
thanks</description>
			<content:encoded><![CDATA[<div>HI<br />
i have made a web site. what I want to do is that I want to make a direct link from rapidshare . I mean to transfer a file from rapidshare to my site and give it a direct link address . <br />
<br />
how can I do so ?<br />
<br />
thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>hno</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238959.html</guid>
		</item>
		<item>
			<title>Passing data from one page into secure page page w/ sessions</title>
			<link>http://www.daniweb.com/forums/thread238955.html</link>
			<pubDate>Mon, 16 Nov 2009 15:25:33 GMT</pubDate>
			<description><![CDATA[Hello, 
 
This is my first post. I'm a web designer & SEO guy at a background check company. 
 
This morning I was handed down this project that, well... I lack much experience with. Definitely not my area of expertise, but willing to give it a crack rather than my company hiring someone else that...]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
This is my first post. I'm a web designer &amp; SEO guy at a background check company.<br />
<br />
This morning I was handed down this project that, well... I lack much experience with. Definitely not my area of expertise, but willing to give it a crack rather than my company hiring someone else that one day may take over job.<br />
<br />
1. From our regular XHTML website pages, we want to include textboxes whereby client's enter the FIRST, LAST NAME, DOB and SSN.<br />
<br />
2. This data is passed on to a secure webpage w/ cookie sessions (client is now on our secure server) and they go on to place order.<br />
<br />
OBJECTIVE: From a marketing standpoint, it is much easier for potential clients to enter information directly at page they are viewing rather than &quot;click here&quot; (is an added step and an added click) By achieving this, they are now at a secure page with info already entered, they provide payment info and get results instantly.<br />
<br />
Any advice is more than welcome as I have other projects to attend and cannot spend valuable time reading &quot;php for dummies&quot;.<br />
<br />
Is PHP the best solution or does anyone have any better recommendations?<br />
<br />
Thanks,<br />
<br />
Julian</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>joe524</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238955.html</guid>
		</item>
		<item>
			<title>insert images from a webform</title>
			<link>http://www.daniweb.com/forums/thread238953.html</link>
			<pubDate>Mon, 16 Nov 2009 15:21:36 GMT</pubDate>
			<description><![CDATA[I have a webform for users of the site to insert information about theirself and then an image. However I don't want to save the image into the database as it will slow everything down...is there a way to save the image to my hardrive then create a link in the mySQL database to this image? How can...]]></description>
			<content:encoded><![CDATA[<div>I have a webform for users of the site to insert information about theirself and then an image. However I don't want to save the image into the database as it will slow everything down...is there a way to save the image to my hardrive then create a link in the mySQL database to this image? How can I get the form to save the picture to my hardrive in the first place...thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>applebiz89</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238953.html</guid>
		</item>
		<item>
			<title>dynamic forms with mysql and use of arrays for input</title>
			<link>http://www.daniweb.com/forums/thread238910.html</link>
			<pubDate>Mon, 16 Nov 2009 12:21:35 GMT</pubDate>
			<description><![CDATA[I've been working at this most of the day, trying to figure out how I can accomplish this sort of form, even looking through countless sites for anything vaguely close to what I'm trying to do for help on logic or syntax behind this (to little to no avail, of course lol).  It's a little over my...]]></description>
			<content:encoded><![CDATA[<div>I've been working at this most of the day, trying to figure out how I can accomplish this sort of form, even looking through countless sites for anything vaguely close to what I'm trying to do for help on logic or syntax behind this (to little to no avail, of course lol).  It's a little over my head in terms of sophistication.  I've done dynamic forms before, but not like this.<br />
<br />
What I'm trying to do is this:<br />
A user needs to update points for attendance in 3 different categories for all people registered to the site - all at once.<br />
<br />
There are a total of 3 categories.  <br />
I can do the queries fine enough to <br />
(a.) get the total amount of rows and <br />
(b.) the names of all people registered within the site <br />
<br />
...and whatever else I might need - that's pretty easy stuff for me these days.<br />
<br />
when I do the second query (b) the form will then display the 3 categories for that person like such:<br />
person's Name &gt; cat1 (input text field) &gt; cat2 (input text field) &gt; cat3 (input text field)<br />
<br />
and so on and so forth until all users have been populated in this form with each of the 3 categories and input text fields next to their name.<br />
<br />
the user would then enter an integer x-xxx (default set to 0) for all users / categories and hit one submit button which would then go to the processing page, which would update the database by adding the new values to the old ones for all fields.  <br />
<br />
so if, say 5 people were registered, then all 15 values would be submitted at the same time and then updated into the db under their corresponding columns at the same time.<br />
<br />
I'm trying to do this with 4 arrays parallel to each other that store all values so that I can put them in one or a few sessions, and transfer all the values at once to the next page.<br />
<br />
I've done something similar to this, but not using parallel arrays and without throwing in retrieved data from a db, but since I am - the only way I'm familiar with outputting data from a database for inclusion in a form would be using a while loop like:<br />
<br />
 <pre style="margin:20px; line-height:13px">while($data = mysql_fetch_array($query))</pre><br />
I've never attempted to output information from a db, and retrieve 1 or more arrays worth of data on the same form before, and I'm finding out very quickly why - its very frustrating...<br />
<br />
furthermore, I'm not exactly sure how I would be able to implement arrays into the form dynamically, so that it can store all the values of however many people for all 3 categories before $_POST happens, so the arrays of data are not lost.  <br />
<br />
Can anyone point me in the right direction, or give me a rough sketch of how this should work?  Normally I try to post what code I have, but none of my code works, except for the layout itself including the names, and it's kind of chasing a train wreck at the moment, so I feel this is sort of a mute point to do so.<br />
<br />
any help is appreciated.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>sleign</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238910.html</guid>
		</item>
		<item>
			<title>Creating a variable from an image upload form</title>
			<link>http://www.daniweb.com/forums/thread238897.html</link>
			<pubDate>Mon, 16 Nov 2009 11:55:51 GMT</pubDate>
			<description>I am fairly new to image uploaders (worked in animation for a long time). 
 
I have an image upload form that works fine. The image uploads and redirects to another PHP page (imageupload_file.php) that confirms the image uploaded and gives you the name of the image and size on the server. 
 
By...</description>
			<content:encoded><![CDATA[<div>I am fairly new to image uploaders (worked in animation for a long time).<br />
<br />
I have an image upload form that works fine. The image uploads and redirects to another PHP page (imageupload_file.php) that confirms the image uploaded and gives you the name of the image and size on the server.<br />
<br />
By clicking a link you go through to another page (galleryinsert.php) where you can add the image details to, such as page to be shown on, section on the page.<br />
<br />
The only thing I cant do is get the image name to echo in the second details page. At the moment I have to copy and paste the name into galleryinsert.php and this is quite messy.<br />
<br />
Is there a way I can save the image name as a variable and pass it through to the last form so I dont need to copy/paste it in?<br />
<br />
Do you need to see the code?<br />
<br />
Any help would be appreciated.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>catfleamassacre</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238897.html</guid>
		</item>
		<item>
			<title>php/mysql multiple tables query help :(</title>
			<link>http://www.daniweb.com/forums/thread238894.html</link>
			<pubDate>Mon, 16 Nov 2009 11:36:12 GMT</pubDate>
			<description><![CDATA[I have an SQL Query question that I'd like help with if possible :) 
 
I have two tables "tbl_jobs" and "tbl_jobs_done" 
 
Here are the fields for both tables: 
 
tbl_jobs 
-jobs_id 
-jobs_description 
-jobs_datestart]]></description>
			<content:encoded><![CDATA[<div>I have an SQL Query question that I'd like help with if possible :)<br />
<br />
I have two tables &quot;tbl_jobs&quot; and &quot;tbl_jobs_done&quot;<br />
<br />
Here are the fields for both tables:<br />
<br />
tbl_jobs<br />
-jobs_id<br />
-jobs_description<br />
-jobs_datestart<br />
-jobs_dateend<br />
-jobs_datetype<br />
-jobs_user<br />
-jobs_updateuser<br />
<br />
tbl_jobs_done<br />
-jobs_done_id<br />
-jobs_id<br />
-jobs_date<br />
-jobs_comment<br />
-jobs_datedone<br />
-jobs_timedone<br />
-jobs_user<br />
<br />
How this works is, I have an SQL Query which goes something like this:<br />
 <pre style="margin:20px; line-height:13px">$result = mysql_query(&quot;SELECT * FROM tbl_jobs WHERE jobs_datetype IN('$everyday', '$dayname', '$wtype') ORDER BY jobs_id ASC&quot;);</pre>Now, someone ticks a checkbox and clicks on the complete button which submits the completed job data and inserts it into tbl_jobs_done.<br />
<br />
How I want it to display is, it will by default check the jobs_id field from both tables to see if it has been done and by current date yyyy-mm-dd within the jobs_date field in tbl_jobs_done (using something like $dayname=date('l');). If it has not been completed, it will show my tickbox next to each displayed item from tbl_jobs, however if it has been completed and can see it's been done within the tbl_jobs_done table, then it'll just return the the same information from the first tbl_jobs, except instead of showing my field with the tickbox, it's going to show the jobs_user field from the tbl_jobs_done.<br />
<br />
Is there anyway I can do this? Let it be within PHP else/if statements or the SQL query itself?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>julzk</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238894.html</guid>
		</item>
		<item>
			<title>How to insert unicode character in database from xls file</title>
			<link>http://www.daniweb.com/forums/thread238892.html</link>
			<pubDate>Mon, 16 Nov 2009 11:26:11 GMT</pubDate>
			<description>I am trying to insert unicode characters from excel file into phpmyadmin database through coding,but database is not accepting unicode characters and even date type,please help me if anyone having idea abt this,even i tried by converting .xls to csv format but .csv file does not support unicode...</description>
			<content:encoded><![CDATA[<div>I am trying to insert unicode characters from excel file into phpmyadmin database through coding,but database is not accepting unicode characters and even date type,please help me if anyone having idea abt this,even i tried by converting .xls to csv format but .csv file does not support unicode characters and not even date,English characters are working but not unicode...please help me for this...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>Lalita_shah</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238892.html</guid>
		</item>
		<item>
			<title>need php script to upload excelsheet data into mysql</title>
			<link>http://www.daniweb.com/forums/thread238891.html</link>
			<pubDate>Mon, 16 Nov 2009 11:21:57 GMT</pubDate>
			<description>i m searching for it from last two hrs. but didnt find anything useful.. 
i hope some reply to this topic..!!! 
 
i just need a php script to upload excelsheet data into mysql table..!!  
 
 
thanks</description>
			<content:encoded><![CDATA[<div>i m searching for it from last two hrs. but didnt find anything useful..<br />
i hope some reply to this topic..!!!<br />
<br />
i just need a php script to upload excelsheet data into mysql table..!! <br />
<br />
<br />
thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>sam023</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238891.html</guid>
		</item>
		<item>
			<title>Add username to URL</title>
			<link>http://www.daniweb.com/forums/thread238889.html</link>
			<pubDate>Mon, 16 Nov 2009 10:49:39 GMT</pubDate>
			<description><![CDATA[Hey people, 
I am doing a project in web development and I wanted to make a system where users can sign up and login to their profiles and have custom URLs like facebook or twitter (www.mysite.com/UserName). 
I dont wanna create a folder for every user on the system cuz that's a stupid thing to do...]]></description>
			<content:encoded><![CDATA[<div>Hey people,<br />
I am doing a project in web development and I wanted to make a system where users can sign up and login to their profiles and have custom URLs like facebook or twitter (<a rel="nofollow" class="t" href="http://www.mysite.com/UserName" target="_blank">www.mysite.com/UserName</a>).<br />
I dont wanna create a folder for every user on the system cuz that's a stupid thing to do :)<br />
<br />
Hope you can help :)<br />
thnx in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>Olsi009</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238889.html</guid>
		</item>
		<item>
			<title>Contact us form to email</title>
			<link>http://www.daniweb.com/forums/thread238877.html</link>
			<pubDate>Mon, 16 Nov 2009 09:56:17 GMT</pubDate>
			<description>Hi, 
 
Could someone assist me with this code. It gives me an error message whenever i press the submit button. 
 
It gives me this error message 
We are very sorry, but there were error(s) found with the form your submitted. 
These errors appear below. 
Please go back and fix these errors 
 
Here...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
Could someone assist me with this code. It gives me an error message whenever i press the submit button.<br />
<br />
It gives me this error message<br />
We are very sorry, but there were error(s) found with the form your submitted.<br />
These errors appear below.<br />
Please go back and fix these errors<br />
<br />
Here are the forms<br />
<br />
This is the contacts.php<br />
<br />
 <pre style="margin:20px; line-height:13px"><br />
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; <br />
<br />
&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;<br />
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br />
&lt;!-- @(#) $Id$ --&gt;<br />
&lt;head&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;title&gt;Jiomoe Foundation&lt;/title&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=ISO-8859-1&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta name=&quot;Keywords&quot; content= &quot;jiomoe, jiomoe foundation, youth, youth <br />
<br />
organization&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta name=&quot;Description&quot; content=&quot;&quot; /&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta http-equiv=&quot;pragma&quot; content=&quot;no-cache&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta http-equiv=&quot;cache-control&quot; content=&quot;no-cache&quot; /&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;link rel=&quot;shortcut icon&quot; href=&quot;./images/jiomoe-logo.jpg&quot; type=&quot;image/x-icon&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;./css/style.css&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;./css/customize.css&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;./css/layout.css&quot; /&gt;<br />
<br />
<br />
&lt;/head&gt; <br />
<br />
&lt;body&gt;<br />
&lt;div id=&quot;wrap&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;header&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;?php<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; include(&quot;logo.php&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ?&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;breadcrumb&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;ul&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;li&gt;&lt;a href=&quot;index.php&quot; <br />
<br />
class=&quot;&quot;&gt;Home&lt;/a&gt;&lt;/li&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;li&gt;&lt;a href=&quot;aboutus.php&quot; class=&quot;&quot;&gt;About <br />
<br />
Us&lt;/a&gt;&lt;/li&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;li&gt;&lt;a href=&quot;programs.php&quot; class=&quot;&quot;&gt;Our <br />
<br />
Programs&lt;/a&gt;&lt;/li&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;li&gt;&lt;a href=&quot;members.php&quot; <br />
<br />
class=&quot;&quot;&gt;Membership&lt;/a&gt;&lt;/li&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;li&gt;&lt;a href=&quot;careers.php&quot; <br />
<br />
class=&quot;&quot;&gt;Careers&lt;/a&gt;&lt;/li&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;li&gt;&lt;a href=&quot;contacts.php&quot; <br />
<br />
class=&quot;active&quot;&gt;Contacts&lt;/a&gt;&lt;/li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/ul&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
<br />
&lt;div id=&quot;main-body&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;content&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;inside&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;form method=&quot;POST&quot; action=&quot;mailer.php&quot; form name=&quot;contacts&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;label for=&quot;first_name&quot;&gt;First Name:*&lt;/label&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;input type=&quot;text&quot; name=&quot;first_name&quot; size=&quot;19&quot;/&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;label for=&quot;Last_name&quot;&gt;Last Name:*&lt;/label&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;input type=&quot;text&quot; name=&quot;last_name&quot; size=&quot;19&quot;/&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;br/&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;label for=&quot;email&quot;&gt;Email:*&lt;/label&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;input type=&quot;text&quot; name=&quot;email&quot; size=&quot;19&quot;/&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;label for=&quot;comments&quot;&gt;Message:*&lt;/label&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;textarea rows=&quot;9&quot; name=&quot;comments&quot; cols=&quot;30&quot;&gt;&lt;/textarea&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;input type=&quot;submit&quot; value=&quot;Submit&quot; name=&quot;submit&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/form&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
<br />
&lt;div id=&quot;sidebar&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;inside&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;border&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;Jiomoe Foundation is a Volunteer, Community based Youth <br />
<br />
initiative<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; founded by the Kenyan Youth to eradicate poverty,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; create employment opportunities, market and empower the Youth.&lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;border&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;info&quot;&gt;Information&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Founded&lt;br/&gt; 2008<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;border&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;info&quot;&gt;Links&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a <br />
<br />
href=&quot;http://www.jiomoeclub.net&quot;&gt;www.jiomoeclub.net&lt;/a&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a <br />
<br />
href=&quot;http://www.jamhurisoftware.com&quot;&gt;www.jamhurisoftware&lt;/a&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a <br />
<br />
href=&quot;http://www.fashtechcomputers.com&quot;&gt;www.fashtechcomputers&lt;/a&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&lt;/div&gt;<br />
<br />
&lt;/div&gt; &lt;!--end of main-body--&gt;<br />
<br />
&lt;div id=&quot;sidebar-2&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;inside&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;advertisement&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Contact details<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;img src=&quot;./images/contact_us.jpg&quot;/&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;strong&gt;Email: info@jiomoe.org&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Tel: +254723169577&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +254734297258&lt;/strong&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;advertisement&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Find Us<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a <br />
<br />
href=&quot;http://www.facebook.com/groups.php?ref=sb#/group.php?gid=98375464670&quot;&gt;&lt;img <br />
<br />
src=&quot;./images/facebook_badge.gif&quot; border=&quot;0&quot;/&gt;&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;?php<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; include(&quot;./include/footer.php&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ?&gt;<br />
&lt;/div&gt; &lt;!--end of wrap--&gt;<br />
<br />
&lt;/body&gt; &lt;/html&gt;</pre><br />
This is the mailer.php<br />
 <pre style="margin:20px; line-height:13px">&lt;?php<br />
if(isset($_POST['email'])) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; // EDIT THE 2 LINES BELOW AS REQUIRED<br />
&nbsp; &nbsp; &nbsp; &nbsp; $email_to = &quot;info@fashtechcomputers.com, matotien@gmail.com&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $email_subject = &quot;INQUIRIES&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; function died($error) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // your error code can go here<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;We are very sorry, but there were error(s) found with the form your submitted. &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;These errors appear below.&lt;br /&gt;&lt;br /&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo $error.&quot;&lt;br /&gt;&lt;br /&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;Please go back and fix these errors.&lt;br /&gt;&lt;br /&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; die();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; // validation expected data exists<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(!isset($_POST['first_name']) ||<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; !isset($_POST['last_name']) ||<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; !isset($_POST['email']) ||<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; !isset($_POST['telephone']) ||<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; !isset($_POST['comments'])) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; died('We are sorry, but there appears to be a problem with the form your submitted.');&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; $first_name = $_POST['first_name']; // required<br />
&nbsp; &nbsp; &nbsp; &nbsp; $last_name = $_POST['last_name']; // required<br />
&nbsp; &nbsp; &nbsp; &nbsp; $email_from = $_POST['email']; // required<br />
&nbsp; &nbsp; &nbsp; &nbsp; $telephone = $_POST['telephone']; // not required<br />
&nbsp; &nbsp; &nbsp; &nbsp; $comments = $_POST['comments']; // required<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; $error_message = &quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $email_exp = &quot;^[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$&quot;;<br />
&nbsp; if(!eregi($email_exp,$email_from)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $error_message .= 'The Email Address you entered does not appear to be valid.&lt;br /&gt;';<br />
&nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; $string_exp = &quot;^[a-z .'-]+$&quot;;<br />
&nbsp; if(!eregi($string_exp,$first_name)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $error_message .= 'The First Name you entered does not appear to be valid.&lt;br /&gt;';<br />
&nbsp; }<br />
&nbsp; if(!eregi($string_exp,$last_name)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $error_message .= 'The Last Name you entered does not appear to be valid.&lt;br /&gt;';<br />
&nbsp; }<br />
&nbsp; if(strlen($comments) &lt; 2) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $error_message .= 'The Comments you entered do not appear to be valid.&lt;br /&gt;';<br />
&nbsp; }<br />
&nbsp; $string_exp = &quot;^[0-9 .-]+$&quot;;<br />
&nbsp; if(!eregi($string_exp,$telephone)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $error_message .= 'The Telphone Number you entered does not appear to be valid.&lt;br /&gt;';<br />
&nbsp; }<br />
&nbsp; if(strlen($error_message) &gt; 0) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; died($error_message);<br />
&nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; $email_message = &quot;Form details below.\n\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; function clean_string($string) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $bad = array(&quot;content-type&quot;,&quot;bcc:&quot;,&quot;to:&quot;,&quot;cc:&quot;,&quot;href&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return str_replace($bad,&quot;&quot;,$string);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; $email_message .= &quot;First Name: &quot;.clean_string($first_name).&quot;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $email_message .= &quot;Last Name: &quot;.clean_string($last_name).&quot;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $email_message .= &quot;Email: &quot;.clean_string($email_from).&quot;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $email_message .= &quot;Telephone: &quot;.clean_string($telephone).&quot;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $email_message .= &quot;Comments: &quot;.clean_string($comments).&quot;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
// create email headers<br />
$headers = 'From: '.$email_from.&quot;\r\n&quot;.<br />
'Reply-To: '.$email_from.&quot;\r\n&quot; .<br />
'X-Mailer: PHP/' . phpversion();<br />
@mail($email_to, $email_subject, $email_message, $headers);&nbsp; <br />
?&gt;<br />
<br />
&lt;!-- include your own success html here --&gt;<br />
<br />
<br />
<br />
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;<br />
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br />
&lt;!-- @(#) $Id$ --&gt;<br />
&lt;head&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;title&gt;Jiomoe Foundation&lt;/title&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=ISO-8859-1&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta name=&quot;Keywords&quot; content= &quot;jiomoe, jiomoe foundation, youth, youth organization&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta name=&quot;Description&quot; content=&quot;Jiomoe Foundation is a volunteer community based youth initiative.&quot; /&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta http-equiv=&quot;pragma&quot; content=&quot;no-cache&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta http-equiv=&quot;cache-control&quot; content=&quot;no-cache&quot; /&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;link rel=&quot;shortcut icon&quot; href=&quot;./images/jiomoe-logo.jpg&quot; type=&quot;image/x-icon&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;./css/style.css&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;./css/customize.css&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;./css/layout.css&quot; /&gt;<br />
<br />
<br />
&lt;/head&gt; <br />
<br />
&lt;body&gt;<br />
&lt;div id=&quot;wrap&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;header&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;?php<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; include(&quot;logo.php&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ?&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;breadcrumb&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;ul&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;li&gt;&lt;a href=&quot;index.php&quot; class=&quot;&quot;&gt;Home&lt;/a&gt;&lt;/li&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;li&gt;&lt;a href=&quot;aboutus.php&quot; class=&quot;active&quot;&gt;About Us&lt;/a&gt;&lt;/li&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;li&gt;&lt;a href=&quot;programs.php&quot; class=&quot;&quot;&gt;Our Programs&lt;/a&gt;&lt;/li&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;li&gt;&lt;a href=&quot;members.php&quot; class=&quot;&quot;&gt;Membership&lt;/a&gt;&lt;/li&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;li&gt;&lt;a href=&quot;careers.php&quot; class=&quot;&quot;&gt;Careers&lt;/a&gt;&lt;/li&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;li&gt;&lt;a href=&quot;contacts.php&quot; class=&quot;&quot;&gt;Contacts&lt;/a&gt;&lt;/li&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/ul&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
<br />
&lt;div id=&quot;main-body&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;content&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;inside&quot;&gt;<br />
<br />
&lt;p&gt;&lt;b&gt;Your message was sent&lt;/b&gt;&lt;/p&gt;<br />
<br />
&lt;p&gt;Your message was successfully sent!<br />
Thank you for contacting us, we will reply<br />
to your inquiry as soon as possible!&lt;/p&gt;<br />
&lt;a href=&quot;contacts.php&quot;&gt;&lt;input type=&quot;submit&quot; value=&quot;Back&quot;/&gt;&lt;/a&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
<br />
&lt;div id=&quot;sidebar&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;inside&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;border&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;Jiomoe Foundation is a Volunteer, Community based Youth initiative<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; founded by the Kenyan Youth to eradicate poverty,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; create employment opportunities, market and empower the Youth.&lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;border&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;info&quot;&gt;Information&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Founded&lt;br/&gt; 2008<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;border&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;info&quot;&gt;Links&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;http://www.jiomoeclub.net&quot;&gt;www.jiomoeclub.net&lt;/a&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;http://www.jamhurisoftware.com&quot;&gt;www.jamhurisoftware&lt;/a&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;http://www.fashtechcomputers.com&quot;&gt;www.fashtechcomputers&lt;/a&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&lt;/div&gt;<br />
<br />
&lt;/div&gt; &lt;!--end of main-body--&gt;<br />
<br />
&lt;div id=&quot;sidebar-2&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;inside&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;advertisement&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Advertisements<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;advertisement&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Find Us<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;#&quot;&gt;&lt;img src=&quot;./images/facebook_badge.gif&quot; border=&quot;0&quot;/&gt;&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;?php<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; include(&quot;./include/footer.php&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ?&gt;<br />
&lt;/div&gt; &lt;!--end of wrap--&gt;<br />
<br />
&lt;/body&gt; &lt;/html&gt;<br />
<br />
<br />
<br />
&lt;?<br />
}<br />
?&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>motieno</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238877.html</guid>
		</item>
		<item>
			<title>Help with stored procedure</title>
			<link>http://www.daniweb.com/forums/thread238888.html</link>
			<pubDate>Mon, 16 Nov 2009 09:56:14 GMT</pubDate>
			<description><![CDATA[<?php 
include("config.php"); 
 
// $sql="delete from UsersR where  UsersID='$UsersID'"; 
$sql="CALL DeleteUsers('$_POST[UsersID]')"; 
 
if (!mysql_query($sql,$con)) 
  { 
  die('Error: ' . mysql_error());]]></description>
			<content:encoded><![CDATA[<div> <pre style="margin:20px; line-height:13px">&lt;?php<br />
include(&quot;config.php&quot;);<br />
<br />
// $sql=&quot;delete from UsersR where&nbsp; UsersID='$UsersID'&quot;;<br />
$sql=&quot;CALL DeleteUsers('$_POST&#91;UsersID&#93;')&quot;;<br />
<br />
if (!mysql_query($sql,$con))<br />
&nbsp; {<br />
&nbsp; die('Error: ' . mysql_error());<br />
&nbsp; }<br />
echo &quot;1 record deleted&quot;;<br />
<br />
<br />
mysql_close($con);<br />
header(&quot;location:delete.php&quot;);<br />
?&gt;</pre>it is my procedur<br />
 <pre style="margin:20px; line-height:13px">DROP PROCEDURE IF EXISTS `UsersR_DELETE_byPK` <br />
GO<br />
<br />
CREATE PROCEDURE UsersR_DELETE_byPK<br />
&nbsp;  (<br />
&nbsp; &nbsp; &nbsp; &nbsp; IN&nbsp; UsersID&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  INT(11) <br />
)&nbsp; &nbsp; &nbsp; &nbsp; <br />
BEGIN <br />
<br />
&nbsp;  DELETE FROM UsersR&nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  WHERE&nbsp; UsersID=UsersID;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; END</pre>but i give delete means all row delete please responce immeditly</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>kbramprasath</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238888.html</guid>
		</item>
		<item>
			<title>Problems with Drop downs</title>
			<link>http://www.daniweb.com/forums/thread238866.html</link>
			<pubDate>Mon, 16 Nov 2009 08:25:52 GMT</pubDate>
			<description><![CDATA[Hi,  
actually i've posted from the wrong thread and i apologize for that. 
anyway, let me post my problem and it goes like this. we've successfully created drop down menus that is connected to our database. we have 5 fields to display, each field contains different data [(ex. first field contains...]]></description>
			<content:encoded><![CDATA[<div>Hi, <br />
actually i've posted from the wrong thread and i apologize for that.<br />
anyway, let me post my problem and it goes like this. we've successfully created drop down menus that is connected to our database. we have 5 fields to display, each field contains different data [(ex. first field contains - milk, soap, sardines, noodles and coffee),(second field contains - powdered milk, condensed milk, evap milk, spanish sardines, tomato sardines, laundry soap, bath soap, instant noodles, quick cook noodles, instant coffee and decafinated coffee)]. so its like when you choose milk on your first drop down, the second drop down should contain everything concerning milk, thus it should only show powdered milk, condensed milk and evap milk. Please help me... Thanks in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>iraberyl</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238866.html</guid>
		</item>
		<item>
			<title>credit card validation with date, cvv??</title>
			<link>http://www.daniweb.com/forums/thread238860.html</link>
			<pubDate>Mon, 16 Nov 2009 07:45:28 GMT</pubDate>
			<description><![CDATA[Hi, i am trying to validate credit card. 
 
I want to validate credit card  
 
1> name on card 
2> card number 
3> card type (visa,mastercard... etc) 
4> cvv 
5> expiry date]]></description>
			<content:encoded><![CDATA[<div>Hi, i am trying to validate credit card.<br />
<br />
I want to validate credit card <br />
<br />
1&gt; name on card<br />
2&gt; card number<br />
3&gt; card type (visa,mastercard... etc)<br />
4&gt; cvv<br />
5&gt; expiry date<br />
<br />
I seared on google but most of links gives information to validate card according to number.<br />
<br />
How to do this? any sample link how to do this? or script ?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>Aamit</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238860.html</guid>
		</item>
		<item>
			<title>drop down menu</title>
			<link>http://www.daniweb.com/forums/thread238832.html</link>
			<pubDate>Mon, 16 Nov 2009 04:54:51 GMT</pubDate>
			<description>Hi how can i make a drop down menu usibg java script.... please help its urgent.</description>
			<content:encoded><![CDATA[<div>Hi how can i make a drop down menu usibg java script.... please help its urgent.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>elanorejoseph</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238832.html</guid>
		</item>
		<item>
			<title>Automatic Email to selected persons for alerts</title>
			<link>http://www.daniweb.com/forums/thread238829.html</link>
			<pubDate>Mon, 16 Nov 2009 04:42:39 GMT</pubDate>
			<description>Hi, all this is my file expire_show.php 
it shows expiry of those agreements which will expire with in 90 days from current date. 
Users have to login to their accounts for viewing these expiry alerts. 
but they require these alerts on their email. 
*1. how i can format these for email? 
2 how I...</description>
			<content:encoded><![CDATA[<div>Hi, all this is my file expire_show.php<br />
it shows expiry of those agreements which will expire with in 90 days from current date.<br />
Users have to login to their accounts for viewing these expiry alerts.<br />
but they require these alerts on their email.<br />
<span style="font-weight:bold">1. how i can format these for email?<br />
2 how I can send automatic email daily to selected persons?</span> <pre style="margin:20px; line-height:13px">&lt;?php<br />
$con = mysql_connect(&quot;localhost&quot;,&quot;root&quot;,&quot;root&quot;);<br />
if (!$con)<br />
&nbsp; {<br />
&nbsp; die('Could not connect: ' . mysql_error());<br />
&nbsp; }<br />
<br />
<br />
mysql_select_db(&quot;onm&quot;, $con);<br />
<br />
<br />
$result = mysql_query(&quot;SELECT * FROM lease_center WHERE (current_date() &gt;= (LAPeriodEnd - INTERVAL 90 DAY)) AND (current_date() &lt;= (LAPeriodEnd - INTERVAL 0 DAY)) &quot;);<br />
while($row = mysql_fetch_array($result))<br />
&nbsp; {<br />
&nbsp; echo &quot;&lt;table cellpadding=2 cellspacing=2 width=100%&gt;<br />
&lt;tr&gt;<br />
<br />
<br />
&lt;/tr&gt;&quot;;<br />
&nbsp; echo &quot;&lt;tr&gt;&quot;;<br />
&nbsp; echo &quot;&lt;th bgcolor=#FFCC00&nbsp; width=250px&gt;SiteId&lt;/th&gt;&quot;;<br />
&nbsp; echo &quot;&lt;td bgcolor=#FEE9A9&gt;&quot; . $row&#91;'SiteId'&#93; . &quot;&lt;/td&gt;&quot;;<br />
&nbsp; &nbsp; echo &quot;&lt;/tr&gt;&quot;;<br />
&nbsp; echo &quot;&lt;tr&gt;&quot;;<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; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;tr&gt;&quot;;<br />
&nbsp; echo &quot;&lt;th bgcolor=#FFCC00&gt;<br />
&nbsp; LAPeriodEnd&lt;/th&gt;&quot;;<br />
&nbsp; echo &quot;&lt;td bgcolor=#FEE9A9&gt;&quot; .date(&quot;j-F-Y&quot;,strtotime($row&#91;'LAPeriodEnd'&#93;)). &quot;&lt;/td&gt;&quot;;<br />
&nbsp; &nbsp; echo &quot;&lt;/tr&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;tr &gt;&quot;;<br />
&nbsp; echo &quot;&lt;th bgcolor=#FF6600 height=10px&gt;<br />
&lt;/th&gt;&quot;;<br />
&nbsp; echo &quot;&lt;td bgcolor=#FF6600 height=10px&gt;&lt;/td&gt;&quot;;<br />
&nbsp; &nbsp; echo &quot;&lt;/tr&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; }<br />
echo &quot;&lt;/table&gt;&quot;;<br />
<br />
<br />
mysql_close($con);<br />
<br />
<br />
<br />
?&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>ayesha789</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238829.html</guid>
		</item>
		<item>
			<title>Forum features</title>
			<link>http://www.daniweb.com/forums/thread238813.html</link>
			<pubDate>Mon, 16 Nov 2009 03:30:35 GMT</pubDate>
			<description>My friend is writing a simple forum,  
In this forum there is 1 MySQL database with 4 tables(forumsections, members, posts, replies) 
The question: 
He wants to notify by mail those members who have posted new posts, when anybody replies to their post. (like in this forum). Now he has a checkbox in...</description>
			<content:encoded><![CDATA[<div>My friend is writing a simple forum, <br />
In this forum there is 1 MySQL database with 4 tables(forumsections, members, posts, replies)<br />
The question:<br />
He wants to notify by mail those members who have posted new posts, when anybody replies to their post. (like in this forum). Now he has a checkbox in the post form(when posting a new post member has choice to have notifications by mail, if he checks the checkbox notifications will be sent him by mail otherwise not(by default checkbox is checked)). How to code this idea in PHP.<br />
Thanks in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>otherdummy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238813.html</guid>
		</item>
		<item>
			<title>Safari Scrolls to bottom of page</title>
			<link>http://www.daniweb.com/forums/thread238796.html</link>
			<pubDate>Mon, 16 Nov 2009 02:09:07 GMT</pubDate>
			<description>On my website whenever i load it in Safari (both on Windows and Mac computers) it scrolls to the bottom of the page. It does not do it in any other browser.</description>
			<content:encoded><![CDATA[<div>On my website whenever i load it in Safari (both on Windows and Mac computers) it scrolls to the bottom of the page. It does not do it in any other browser.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>jonow</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238796.html</guid>
		</item>
		<item>
			<title><![CDATA[background image in table <td> different in IE and Firefox]]></title>
			<link>http://www.daniweb.com/forums/thread238779.html</link>
			<pubDate>Sun, 15 Nov 2009 23:35:03 GMT</pubDate>
			<description><![CDATA[Hello, 
 
I have this php code : 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div>...]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I have this php code :<br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp;  <br />
//echo $i.&quot;&lt;br&gt;end-&quot;.$end.&quot;-start-&quot;.$start;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  echo &quot;&lt;table bgcolor=#666666 bordercolor=#C0C0C0 border=0 width=700 cellspacing=0 cellpadding=10&gt;&lt;tr&gt;&lt;td background=\&quot;images/topbar.gif\&quot; height=\&quot;45\&quot;&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;b&gt;$listDatetxt: &lt;/b&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $lines[$i]-&gt;showDate();<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;br&gt;&lt;b&gt;$listnametxt: &lt;/b&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $lines[$i]-&gt;showFrom();<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;$listMessagetxt: &lt;/b&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $lines[$i]-&gt;showMessage();<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;/td&gt;&lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;&lt;td background=\&quot;images/footbar.gif\&quot; height=\&quot;30\&quot;&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br&gt;&quot;;<br />
}<br />
<br />
echo &quot;&lt;center&gt;&quot;;</pre><br />
This is the problem :<br />
<br />
In Firefox the table is shown correctly, except that text is not centered<br />
In IE text is centered but the background images (topbar and footbar) seam to be ‘repeated’ in the in the imagebar.<br />
Sizes of my images :<br />
topbar.gif  700x45<br />
footbar.gif  700x30<br />
So obviously I am doing something wrong (newbee !)<br />
Someone can help me ?<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>belper</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238779.html</guid>
		</item>
		<item>
			<title>Upcoming Events script (Free or Commercial)...?</title>
			<link>http://www.daniweb.com/forums/thread238694.html</link>
			<pubDate>Sun, 15 Nov 2009 18:21:02 GMT</pubDate>
			<description>Hello All,  
 
 am looking for an events script like (Upcoming.yahoo.com)... 
 
 I found many but!! I want the same functions of upcoming.yahoo.com As much as possible ... 
 
Commercial or Free ....  
 
 It will be used by some charity organizations. Please help</description>
			<content:encoded><![CDATA[<div>Hello All, <br />
<br />
 am looking for an events script like (Upcoming.yahoo.com)...<br />
<br />
 I found many but!! I want the same functions of upcoming.yahoo.com As much as possible ...<br />
<br />
Commercial or Free .... <br />
<br />
 It will be used by some charity organizations. Please help</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>adelshehri</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238694.html</guid>
		</item>
		<item>
			<title>Noob question, many index.php?Page=2, how?</title>
			<link>http://www.daniweb.com/forums/thread238691.html</link>
			<pubDate>Sun, 15 Nov 2009 18:03:04 GMT</pubDate>
			<description><![CDATA[Hey all! I started to code php yesterday in need to create good dynamic websites to our server project for one game. I got c++ expirience of like 7 months soon, so the syntax is known to me excluding some differences. I've wondered how do I make a page like when you go to index page and click link...]]></description>
			<content:encoded><![CDATA[<div>Hey all! I started to code php yesterday in need to create good dynamic websites to our server project for one game. I got c++ expirience of like 7 months soon, so the syntax is known to me excluding some differences. I've wondered how do I make a page like when you go to index page and click link from there it goes to page like index.php?Page=2 not to other php file. Did I says it enough clear. I really don't know with what word to google for it.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>Silvershaft</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238691.html</guid>
		</item>
		<item>
			<title>Using A List Box in If Statement</title>
			<link>http://www.daniweb.com/forums/thread238679.html</link>
			<pubDate>Sun, 15 Nov 2009 17:00:14 GMT</pubDate>
			<description>Hi, I am using 2 list boxes with 4 values in each. I want to create an action when a button is pressed on the form which will be something like this: 
 
If(value of list box1 is 1 and value of list box2 is 1) 
{ 
 total = total + 1; 
} 
elseif(value of listbox1 is 1 and value of listbox2 is 2) 
{...</description>
			<content:encoded><![CDATA[<div>Hi, I am using 2 list boxes with 4 values in each. I want to create an action when a button is pressed on the form which will be something like this:<br />
<br />
If(value of list box1 is 1 and value of list box2 is 1)<br />
{<br />
 total = total + 1;<br />
}<br />
elseif(value of listbox1 is 1 and value of listbox2 is 2)<br />
{<br />
total = total + 2;<br />
}... and so on<br />
<br />
anyway thats what I want to happen, but Iv tried a few things, and none have worked. All I want to do is check the value of my list boxes then increase a variable by a certain amount. I have declared my total variable but I cant get it to work, if anyone has a solution it would be great.<br />
<br />
Cheers</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>Byrne86</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238679.html</guid>
		</item>
		<item>
			<title>I need a code to prevent SEOQuake on my sites</title>
			<link>http://www.daniweb.com/forums/thread238668.html</link>
			<pubDate>Sun, 15 Nov 2009 15:45:49 GMT</pubDate>
			<description><![CDATA[Please, I need a code that is capable of preventing SEOQuake from loading on my websites, even if a user has installed the plug-in. 
 
For example, Google, Yahoo and Bing implements such feature. I just don't want it to load whenever anybody visits my sites.]]></description>
			<content:encoded><![CDATA[<div>Please, I need a code that is capable of preventing SEOQuake from loading on my websites, even if a user has installed the plug-in.<br />
<br />
For example, Google, Yahoo and Bing implements such feature. I just don't want it to load whenever anybody visits my sites.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>mexabet</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238668.html</guid>
		</item>
		<item>
			<title>How to redirect page while showing the seconds...!</title>
			<link>http://www.daniweb.com/forums/thread238661.html</link>
			<pubDate>Sun, 15 Nov 2009 14:57:40 GMT</pubDate>
			<description>In many of the forums i have observed that , we can re direct the page like 
 
thanks for logging in u will be redirected in 5 secs 
 
and eventually the 5 secs decreases to 0 and the page gets redirected. 
 
 
In my php code i could redirect the page simply through</description>
			<content:encoded><![CDATA[<div>In many of the forums i have observed that , we can re direct the page like<br />
<br />
thanks for logging in u will be redirected in 5 secs<br />
<br />
and eventually the 5 secs decreases to 0 and the page gets redirected.<br />
<br />
<br />
In my php code i could redirect the page simply through<br />
<br />
<br />
 <pre style="margin:20px; line-height:13px"><br />
header(&quot;Location: http://www.MyWebPage.com/&quot;);</pre><br />
How do i show the seconds and finally redirect.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>rahul8590</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238661.html</guid>
		</item>
		<item>
			<title>xampp</title>
			<link>http://www.daniweb.com/forums/thread238657.html</link>
			<pubDate>Sun, 15 Nov 2009 13:56:22 GMT</pubDate>
			<description><![CDATA[hello 
i am new to xampp . and making a project using  php & mysql.  
whenever my php files run, its doesn't show any changes in my database. for eg. ,if i have entered certain values on my html page and through my php page ,the values is getting inserted into my database, it just displays the...]]></description>
			<content:encoded><![CDATA[<div>hello<br />
i am new to xampp . and making a project using  php &amp; mysql. <br />
whenever my php files run, its doesn't show any changes in my database. for eg. ,if i have entered certain values on my html page and through my php page ,the values is getting inserted into my database, it just displays the blank row without the values.<br />
can anyone tell me the correct code about how to insert the values in php.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>arushibafna</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238657.html</guid>
		</item>
		<item>
			<title>please help: moving a new sidebar from right to left</title>
			<link>http://www.daniweb.com/forums/thread238642.html</link>
			<pubDate>Sun, 15 Nov 2009 12:52:09 GMT</pubDate>
			<description><![CDATA[Hi there, 
I've just managed to add a new widgitized sidebar to my site, but no matter what I tried, it keeps showing up bellow sidebar 1. any thoughts? 
heres the style.css: 
 
/* begin LayoutCell */ 
.contentLayout .sidebar1 
{ 
	position: relative; 
	margin: 0; 
	padding: 0;]]></description>
			<content:encoded><![CDATA[<div>Hi there,<br />
I've just managed to add a new widgitized sidebar to my site, but no matter what I tried, it keeps showing up bellow sidebar 1. any thoughts?<br />
heres the style.css:<br />
<br />
/* begin LayoutCell */<br />
.contentLayout .sidebar1<br />
{<br />
	position: relative;<br />
	margin: 0;<br />
	padding: 0;<br />
	border: 0;<br />
	float: left;<br />
	overflow: hidden;<br />
	width: 218px;<br />
}<br />
/* end LayoutCell */<br />
<br />
/* begin LayoutCell */<br />
.contentLayout .content<br />
{<br />
	position: relative;<br />
	margin: 0;<br />
	padding: 0;<br />
	border: 0;<br />
	float: left;<br />
	overflow: hidden;<br />
	width: 655px;<br />
}<br />
.contentLayout .content-wide<br />
{<br />
	position: relative;<br />
	margin: 0;<br />
	padding: 0;<br />
	border: 0;<br />
	float: left;<br />
	overflow: hidden;<br />
	width: 873px;<br />
}<br />
/* end LayoutCell */<br />
<br />
/* begin LayoutCell */<br />
.contentLayout .sidebar2<br />
{<br />
	position: relative;<br />
	margin-right:   15px;<br />
	padding: 0;<br />
	border: 0;<br />
	float: right;<br />
	overflow: hidden;<br />
	width: 500px;<br />
}<br />
/* end LayoutCell */<br />
<br />
<br />
http:knows-dive.com</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>tobisan</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238642.html</guid>
		</item>
		<item>
			<title>Combining two different rows from one table</title>
			<link>http://www.daniweb.com/forums/thread238632.html</link>
			<pubDate>Sun, 15 Nov 2009 11:13:40 GMT</pubDate>
			<description><![CDATA[I have this table(building_lvl): 
lvl | building_id | region_id 
And I want to get the region_id for which building_id=3 has lvl 2 and building_id=2 has lvl 5 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>I have this table(building_lvl):<br />
 <pre style="margin:20px; line-height:13px">lvl | building_id | region_id</pre><br />
And I want to get the region_id for which building_id=3 has lvl 2 and building_id=2 has lvl 5<br />
<br />
 <pre style="margin:20px; line-height:13px">SELECT * FROM building_lvl INNER JOIN regions ON regions.region_id = building_lvl.region_id WHERE ((building_lvl.building_id='3') &amp;&amp; (building_lvl.lvl &gt; 1)) &amp;&amp; ((building_lvl.building_id='2') &amp;&amp; (building_lvl.lvl &gt; 4)) &amp;&amp; (regions.nation_id = '17');</pre><br />
but this gives an empty set, why?<br />
(and I'm sure there is a region_id which has this conditions)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>Kruptein</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238632.html</guid>
		</item>
	</channel>
</rss>
