<?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>Wed, 25 Nov 2009 05:56: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>Problem with innerHTML in php page</title>
			<link>http://www.daniweb.com/forums/thread241167.html</link>
			<pubDate>Wed, 25 Nov 2009 04:17:08 GMT</pubDate>
			<description><![CDATA[hi experts, 
 
Here i have a problem with innerHTML in php page. 
 
<script type="text/javascript">  
function GetInner(sid) 
{ 
document.getElementById("sid").innerHTML='<?php $id='+sid+'?>'; 
} 
}]]></description>
			<content:encoded><![CDATA[<div>hi experts,<br />
<br />
Here i have a problem with innerHTML in php page.<br />
<br />
&lt;script type=&quot;text/javascript&quot;&gt; <br />
function GetInner(sid)<br />
{<br />
document.getElementById(&quot;sid&quot;).innerHTML='&lt;?php $id='+sid+'?&gt;';<br />
}<br />
}<br />
&lt;/script&gt;<br />
<br />
&lt;body&gt; <br />
&lt;p id=&quot;sid&quot;&gt;&amp;nbsp;&lt;/p&gt;<br />
&lt;/body&gt;<br />
<br />
<br />
it doesn't give any result.<br />
<br />
Please help me.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>Narayan15</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241167.html</guid>
		</item>
		<item>
			<title>How to split results into multiple pages?</title>
			<link>http://www.daniweb.com/forums/thread241150.html</link>
			<pubDate>Wed, 25 Nov 2009 02:26:40 GMT</pubDate>
			<description>Hi, 
 
I had developed a viewing table from mysql database using php and it is showing me the whole list of contents in a single webpage. I would like to know if there anyway i can actually split the contents into multiple pages for easy viewing?? 
 
Your help is greatly appreciated. 
 
Cheers :)</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I had developed a viewing table from mysql database using php and it is showing me the whole list of contents in a single webpage. I would like to know if there anyway i can actually split the contents into multiple pages for easy viewing??<br />
<br />
Your help is greatly appreciated.<br />
<br />
Cheers :)</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/thread241150.html</guid>
		</item>
		<item>
			<title>Problems With Displaying columns</title>
			<link>http://www.daniweb.com/forums/thread241076.html</link>
			<pubDate>Tue, 24 Nov 2009 18:57:32 GMT</pubDate>
			<description><![CDATA[i am having trouble displaying my database table...i am new to php and mysql (just started last week)... this is the code iam using: 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>i am having trouble displaying my database table...i am new to php and mysql (just started last week)... this is the code iam using:<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;?php<br />
<br />
//connect<br />
mysql_connect(&quot;&quot;,&quot;&quot;,&quot;&quot;) or die(mysql_error());<br />
mysql_select_db(&quot;&quot;) or die(mysql_error());<br />
<br />
//query the db<br />
$getnews = mysql_query(&quot;SELECT * FROM shows ORDER BY id DESC&quot;) or die(mysql_error());<br />
<br />
while ($row = mysql_fetch_assoc($getnews))<br />
{<br />
<br />
<br />
&nbsp;//get data<br />
$id = $row['id'];<br />
$venue = $row['venue'];<br />
$date = date(&quot;m/d/Y&quot;, strtotime($row[date]));<br />
$city = $row['city'];<br />
$state = $row['state'];<br />
$exceptions = $row['exceptions'];<br />
$countries = $row['countries'];<br />
<br />
<br />
echo &quot;&amp;theDates=$date|&amp;theStates=$state|&amp;theCities=$city|&amp;theExceptions=$exceptions|&amp;theClubs=$venue|&amp;theIDs=$id|&amp;theCountries=$countries|<br />
&lt;br&gt;&quot;;<br />
<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
}<br />
?&gt;</pre><br />
but it is display it like this on the browser:<br />
&amp;theDates=date01|&amp;theStates=state01|&amp;theCities=city01|theExceptions=exceptions01|&amp;theClubs=club01|&amp;theIDs=id01|&amp;theCountries=countries01|<br />
<br />
&amp;theDates=date02|&amp;theStates=state02|&amp;theCities=city02|theExceptions=exceptions02|&amp;theClubs=club02|&amp;theIDs=id02|&amp;theCountries=countries02|<br />
<br />
<br />
I need it to display like this:<br />
<br />
&amp;theDates=date01|date02|&amp;theStates=state01|state02|&amp;theCities=city01|city02|theExceptions=exceptions01|exceptions02|&amp;theClubs=club01|club02|&amp;theIDs=id01|id02|&amp;theCountries=countries01|countries02|<br />
<br />
<br />
so that one the php calls up the information from the database it is displayed in the corresponding area not each row seperatly...can anyone help me with this problem.....?<br />
<br />
D</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>xGxTxEx</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241076.html</guid>
		</item>
		<item>
			<title>editing xml file using php</title>
			<link>http://www.daniweb.com/forums/thread241073.html</link>
			<pubDate>Tue, 24 Nov 2009 18:38:27 GMT</pubDate>
			<description>Hi 
Can anybody please tell me how to edit an xml file with the help of another php file. i am using this xml file in flash 
 
Thanks</description>
			<content:encoded><![CDATA[<div>Hi<br />
Can anybody please tell me how to edit an xml file with the help of another php file. i am using this xml file in flash<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>dalip_007</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241073.html</guid>
		</item>
		<item>
			<title>mulit-d array intersect question...</title>
			<link>http://www.daniweb.com/forums/thread241069.html</link>
			<pubDate>Tue, 24 Nov 2009 18:27:51 GMT</pubDate>
			<description><![CDATA[Hi all: 
 
I am having a heck of a time here... and can't seem to get this to work. I want to intersect arrays that are subset within a multi-dimensional array. 
 
For example, Take the following array: 
 
Array ( [0] => Array ( [0] => 2014 [1] => 2035 [2]=>1999 [3]=>1942 ) [1] => Array ( [0] =>...]]></description>
			<content:encoded><![CDATA[<div>Hi all:<br />
<br />
I am having a heck of a time here... and can't seem to get this to work. I want to intersect arrays that are subset within a multi-dimensional array.<br />
<br />
For example, Take the following array:<br />
<br />
<span style="color:Red"><span style="color:Green">Array ( [0] =&gt; Array ( [0] =&gt; 2014 [1] =&gt; 2035 [2]=&gt;1999 [3]=&gt;1942 ) [1] =&gt; Array ( [0] =&gt; 1894 [1] =&gt; 1957 [2] =&gt; 1963 [3] =&gt; 2035 [4]=&gt;1942) ) </span></span><br />
<br />
The intersection of the arrays within the above array should be this array:<br />
<span style="color:Green">Array([0] =&gt; 2035 [1] =&gt; 1942)</span><br />
<br />
The keys of the subset arrays are irrelevant.<br />
<br />
Problem is, I can't figure out the code to help me do this.<br />
<br />
----<br />
<br />
I've tried to use this user defined function &gt;&gt;<br />
<br />
<span style="color:Red">function array_intersect_m($m_array) {<br />
$intersection = $m_array[0];<br />
for ($i=1; $i &lt; count($m_array); $i++) {<br />
$intersection = array_intersect($m_array[$i], $intersection);<br />
}<br />
return $intersection;<br />
}</span><br />
<br />
And sent the above array example into it, but I am getting no result?!?<br />
<br />
Any ideas... help?<br />
<br />
Thanks,<br />
Chris in DC</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>cro_php</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241069.html</guid>
		</item>
		<item>
			<title>cURL and xmlrpc</title>
			<link>http://www.daniweb.com/forums/thread241054.html</link>
			<pubDate>Tue, 24 Nov 2009 17:08:07 GMT</pubDate>
			<description>Hi, 
 
I read a bit about both but I need to see your opinions about this. 
 
Are cURL and xmlrpc used for same purposes, are they same thing? 
 
Thanks</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I read a bit about both but I need to see your opinions about this.<br />
<br />
Are cURL and xmlrpc used for same purposes, are they same thing?<br />
<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/thread241054.html</guid>
		</item>
		<item>
			<title>HTML in arrays?</title>
			<link>http://www.daniweb.com/forums/thread241053.html</link>
			<pubDate>Tue, 24 Nov 2009 16:59:36 GMT</pubDate>
			<description><![CDATA[How do you get this to work? - well, for more than simple <strong> and <i> tags - I'm trying to get a HTML table in as an array, if this is possible! 
 
Any advice is appreciated!]]></description>
			<content:encoded><![CDATA[<div>How do you get this to work? - well, for more than simple &lt;strong&gt; and &lt;i&gt; tags - I'm trying to get a HTML table in as an array, if this is possible!<br />
<br />
Any advice is appreciated!</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/thread241053.html</guid>
		</item>
		<item>
			<title>need php code to send sms to mobile</title>
			<link>http://www.daniweb.com/forums/thread241039.html</link>
			<pubDate>Tue, 24 Nov 2009 15:39:49 GMT</pubDate>
			<description>Hi i am developing a new website for mobile shop in php, I need to implement to send sms for the login users, please help me with code in php</description>
			<content:encoded><![CDATA[<div>Hi i am developing a new website for mobile shop in php, I need to implement to send sms for the login users, please help me with code in php</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>rohoni</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241039.html</guid>
		</item>
		<item>
			<title><![CDATA[Browser won't show php pages]]></title>
			<link>http://www.daniweb.com/forums/thread240985.html</link>
			<pubDate>Tue, 24 Nov 2009 12:34:59 GMT</pubDate>
			<description><![CDATA[I'm having problem with opening php pages in browser. I'm using apache web server and the problem is that instead of a page browser shows php code that i wrote in text editor (for example it shows <?php phpinfo(); ?> instead list with informations about php). 
Everything worked fine before I've...]]></description>
			<content:encoded><![CDATA[<div>I'm having problem with opening php pages in browser. I'm using apache web server and the problem is that instead of a page browser shows php code that i wrote in text editor (for example it shows &lt;?php phpinfo(); ?&gt; instead list with informations about php).<br />
Everything worked fine before I've read somewhere that I have to put code <span style="font-style:italic">PHPIniDir &quot;E:/PHP&quot;</span> (thats location of my php.ini file) in the httpd.conf.<br />
After I did that browser wouldn't show php pages any more. Then I deleted the code but the problem remained. <br />
What did i mess up?<br />
<br />
After every change to httpd.conf I stopped and started again apache, but nothing changed.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>duka96</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240985.html</guid>
		</item>
		<item>
			<title>i need help.....</title>
			<link>http://www.daniweb.com/forums/thread240984.html</link>
			<pubDate>Tue, 24 Nov 2009 12:31:04 GMT</pubDate>
			<description>am a final yr student n am required to come up wit a project.......ive run out of ideas n if someone out there can help me with the topic that can carry me through all be very greatful.....i jas need topics that i can chose from......thnks guys......</description>
			<content:encoded><![CDATA[<div>am a final yr student n am required to come up wit a project.......ive run out of ideas n if someone out there can help me with the topic that can carry me through all be very greatful.....i jas need topics that i can chose from......thnks guys......</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>mgee</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240984.html</guid>
		</item>
		<item>
			<title>Need a TCP / IP Port Listener on my centos VPS Hosting to receive gps tracker signals</title>
			<link>http://www.daniweb.com/forums/thread240980.html</link>
			<pubDate>Tue, 24 Nov 2009 12:19:34 GMT</pubDate>
			<description>Hello, 
I Need a TCP / IP Port Listener on my centos VPS Hosting to receive gps tracker signals on ports and store in mysql db. 
 
For further processing of received stored data, we are working on a php mysql application, but to listen to port signals, which programming language is the best option...</description>
			<content:encoded><![CDATA[<div>Hello,<br />
I Need a TCP / IP Port Listener on my centos VPS Hosting to receive gps tracker signals on ports and store in mysql db.<br />
<br />
For further processing of received stored data, we are working on a php mysql application, but to listen to port signals, which programming language is the best option on centos, linux?<br />
<br />
Also, if you can show me a ready code for the same, that will be helpful. Also, let me know, what to take care of why working on such a solution.<br />
<br />
I have a dedicated IP, a VPS Hosting and port numbers 1701 to 1800 open on my server, is that all? and do I need anything else to make such a solution?<br />
<br />
Thanks in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>aruti</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240980.html</guid>
		</item>
		<item>
			<title>how can i get address from lattitude and longitude</title>
			<link>http://www.daniweb.com/forums/thread240979.html</link>
			<pubDate>Tue, 24 Nov 2009 12:18:24 GMT</pubDate>
			<description>what problem i am actually facing is that .. i have a database -- table in which i have lng and lat saved .. And i want that when i fetch them in textual form i also get the address to which those particular set of lng and lat are defined .. 
 
Is there any straight forward way to get this ?? I...</description>
			<content:encoded><![CDATA[<div>what problem i am actually facing is that .. i have a database -- table in which i have lng and lat saved .. And i want that when i fetch them in textual form i also get the address to which those particular set of lng and lat are defined ..<br />
<br />
Is there any straight forward way to get this ?? I dont need to plot them on map .. just in textual format .</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>aruti</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240979.html</guid>
		</item>
		<item>
			<title>Online video Streaming</title>
			<link>http://www.daniweb.com/forums/thread240967.html</link>
			<pubDate>Tue, 24 Nov 2009 11:29:12 GMT</pubDate>
			<description><![CDATA[how can i integrate live video playing in my personal website?i mean live video streaming integration in the website. I need the help[ urgently.]]></description>
			<content:encoded><![CDATA[<div>how can i integrate live video playing in my personal website?i mean live video streaming integration in the website. I need the help[ urgently.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>niladri.user</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240967.html</guid>
		</item>
		<item>
			<title>PHP upating a dropdown list with data from a MySQL database</title>
			<link>http://www.daniweb.com/forums/thread240961.html</link>
			<pubDate>Tue, 24 Nov 2009 11:01:47 GMT</pubDate>
			<description>I have a silly issue, 
 
I am creating a CMS at the moment. it has pages and menus . 
 
I created a page to add new pages. on that page i have a drop down list that is populated with data from the menu. 
 
I also have an edit page, on this page i want to pull in the current value from the database...</description>
			<content:encoded><![CDATA[<div>I have a silly issue,<br />
<br />
I am creating a CMS at the moment. it has pages and menus .<br />
<br />
I created a page to add new pages. on that page i have a drop down list that is populated with data from the menu.<br />
<br />
I also have an edit page, on this page i want to pull in the current value from the database into a drop down and be able to change the value.<br />
<br />
Can anyone help</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>Folaju</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240961.html</guid>
		</item>
		<item>
			<title>find host IP</title>
			<link>http://www.daniweb.com/forums/thread240936.html</link>
			<pubDate>Tue, 24 Nov 2009 09:36:54 GMT</pubDate>
			<description><![CDATA[hi 
 
Ive been posed this problem.  A friend does maintenance on a companies network, and would like to do it remotely.  Currently, their IP changes every 24hrs and so he has to phone them to find their IP so that he can log in... 
 
He asked me to write him something which would pull the host's IP...]]></description>
			<content:encoded><![CDATA[<div>hi<br />
<br />
Ive been posed this problem.  A friend does maintenance on a companies network, and would like to do it remotely.  Currently, their IP changes every 24hrs and so he has to phone them to find their IP so that he can log in...<br />
<br />
He asked me to write him something which would pull the host's IP and email it to him, probably running as a cron job...<br />
<br />
I can retrieve a visitors IP using PHP, but have no idea how to get the hosts IP...?</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/thread240936.html</guid>
		</item>
		<item>
			<title>PHP Recursion</title>
			<link>http://www.daniweb.com/forums/thread240926.html</link>
			<pubDate>Tue, 24 Nov 2009 08:32:53 GMT</pubDate>
			<description><![CDATA[i must be able to extract the results of this query and use it as another value for "Parent" in the succeeding  "THE SAME QUERY". Right here, the value of parent in WHERE clause is "1". Now, I want to create the same query but the value of the parent is the result of the query below. 
 
Thanks a...]]></description>
			<content:encoded><![CDATA[<div>i must be able to extract the results of this query and use it as another value for &quot;Parent&quot; in the succeeding  &quot;THE SAME QUERY&quot;. Right here, the value of parent in WHERE clause is &quot;1&quot;. Now, I want to create the same query but the value of the parent is the result of the query below.<br />
<br />
Thanks a lot! ^_^<br />
<br />
 <pre style="margin:20px; line-height:13px">//RIGHT HERE I GET THE TOTAL OF LEVEL&nbsp; RESULT OF LEVEL1<br />
$result = mysql_query(&quot;SELECT COUNT(*) FROM agents WHERE sponsor = '$parent'&quot;)or die(mysql_error());&nbsp; <br />
$output = array();<br />
while ($row = mysql_fetch_array($result)) {<br />
$lvl1 = $row['COUNT(*)'];<br />
echo &quot;&lt;b&gt;Total Level 1 Downlines&lt;/b&gt; : &quot;;<br />
echo &quot; &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;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &lt;/tr&gt;$lvl1 &lt;br&gt;&lt;br&gt;&quot;;<br />
}<br />
//NOW, I GET THE ID OF FIRST LEVEL RESULTS SO I CAN USE IT AS PARENT OF THE SAME QUERY ON LEVEL 2<br />
$result = mysql_query(&quot;SELECT id, lastname FROM agents WHERE sponsor = '$parent'&quot;)or die(mysql_error());&nbsp; <br />
$output = array();<br />
while ($row = mysql_fetch_array($result)) {<br />
&nbsp; $output[] = &quot;sponsor = '&quot;.$row['id'].&quot;' &quot;;<br />
}<br />
$newparent = implode(' or ', $output);</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>codewalkz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240926.html</guid>
		</item>
		<item>
			<title>how to use a external javascript file (like external CSS) in php</title>
			<link>http://www.daniweb.com/forums/thread240906.html</link>
			<pubDate>Tue, 24 Nov 2009 06:23:13 GMT</pubDate>
			<description>Hey all, 
i have been using php for past one month only and now im using javascripts with php too... 
but my javascript functions have grown out of proportion ... 
I want to make a SEPARATE file for JAVASCRIPT just like we do it for EXTERNAL CSS... 
 
how can i do that and is it possible to make a...</description>
			<content:encoded><![CDATA[<div>Hey all,<br />
i have been using php for past one month only and now im using javascripts with php too...<br />
but my javascript functions have grown out of proportion ...<br />
I want to make a SEPARATE file for JAVASCRIPT just like we do it for EXTERNAL CSS...<br />
<br />
how can i do that and is it possible to make a seperate javascript file and call the functions from my php code...?<br />
<br />
THNAKS</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>abhax</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240906.html</guid>
		</item>
		<item>
			<title>MLM Unilevel Compression ( PHP Parent Child Relation )</title>
			<link>http://www.daniweb.com/forums/thread240877.html</link>
			<pubDate>Tue, 24 Nov 2009 03:29:41 GMT</pubDate>
			<description><![CDATA[I am currently working on an MLM System which supports Unilevel with Dynamic Compression. So far, though the below code looks really messy, it was able to get what I want which is to get the Unilevel 8 Levels Deep. The system should run this way: 
 
1 is sponsor of 2 & 3 so UNILEVEL 1 has 2 childs...]]></description>
			<content:encoded><![CDATA[<div>I am currently working on an MLM System which supports Unilevel with Dynamic Compression. So far, though the below code looks really messy, it was able to get what I want which is to get the Unilevel 8 Levels Deep. The system should run this way:<br />
<br />
1 is sponsor of 2 &amp; 3 so UNILEVEL 1 has 2 childs ( 2 and 3) Now, the Level 2 Starts with Children 2 and 3 and so on up to 8th level. The code below did it. <br />
<br />
My problem now is, if a parent, like for example Number 2 is INACTIVE ( Active or Inactive ), its child should replace his position.<br />
<br />
If you know anything or if you can refer me to something related, please do.<br />
<br />
 Thank you so much!<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;?php<br />
&nbsp; &lt;?php<br />
mysql_connect(&quot;localhost&quot;, &quot;myhygeia_jun&quot;, &quot;xxxxxxxc&quot;) or die(mysql_error());<br />
mysql_select_db(&quot;myhygeia_agents&quot;) or die(mysql_error());<br />
<br />
//GET THE ID OF ROOT NODE<br />
$username = $_COOKIE['ID_my_site'];<br />
$pass = $_COOKIE['Key_my_site'];<br />
$query = &quot;SELECT id FROM agents WHERE username = '$username'&quot;;<br />
$result = mysql_query($query) or die('Error :On Right Head ' . mysql_error());<br />
$row = mysql_fetch_array($result);<br />
$parent = $row['id'];<br />
<br />
//----------------------------------------------------------------------------------------------------------<br />
<br />
//GET THE TOTAL OF LEVEL 1<br />
$result = mysql_query(&quot;SELECT COUNT(*) FROM agents WHERE sponsor = '$parent'&quot;)or die(mysql_error());&nbsp; <br />
$output = array();<br />
while ($row = mysql_fetch_array($result)) {<br />
$lvl1 = $row['COUNT(*)'];<br />
echo &quot;&lt;b&gt;Total Level 1 Downlines&lt;/b&gt; : &quot;;<br />
echo &quot; &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;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &lt;/tr&gt;$lvl1 &lt;br&gt;&lt;br&gt;&quot;;<br />
}<br />
//GET THE ID FIRST LEVEL FRONTLINES AND PASS TO GET 2ND LEVEL<br />
$result = mysql_query(&quot;SELECT id, lastname FROM agents WHERE sponsor = '$parent'&quot;)or die(mysql_error());&nbsp; <br />
$output = array();<br />
while ($row = mysql_fetch_array($result)) {<br />
&nbsp; $output[] = &quot;sponsor = '&quot;.$row['id'].&quot;' &quot;;<br />
}<br />
$level1 = implode(' or ', $output); <br />
<br />
//----------------------------------------------------------------------------------------------------------<br />
<br />
//GET THE TOTAL OF LEVEL 2<br />
$result = mysql_query(&quot;SELECT COUNT(*) FROM agents WHERE ($level1) &quot;)or die(mysql_error());&nbsp; <br />
while($row = mysql_fetch_array( $result )) {<br />
$lvl2parent = $row['COUNT(*)'];<br />
echo &quot;&lt;b&gt;Total Level 2 Downlines&lt;/b&gt; : &quot;;<br />
echo &quot;$lvl2parent &lt;br&gt;&lt;br&gt;&quot;; <br />
} <br />
//GET THE ID SECOND LEVEL FRONTLINES AND PASS TO GET 3rD LEVEL<br />
$result = mysql_query(&quot;SELECT id, lastname FROM agents WHERE ($level1)&quot;)or die(mysql_error());&nbsp; <br />
$output = array();<br />
while ($row = mysql_fetch_array($result)) {<br />
&nbsp; $output[] = &quot;sponsor = '&quot;.$row['id'].&quot;' &quot;;<br />
}<br />
$level2 = implode(' or ', $output); <br />
<br />
//-----------------------------------------------------------------------------------------------------------<br />
<br />
//GET THE TOTAL OF LEVEL 3<br />
$result = mysql_query(&quot;SELECT COUNT(*) FROM agents WHERE ($level2) &quot;)or die(mysql_error());&nbsp; <br />
while($row = mysql_fetch_array( $result )) {<br />
$lvl3parent = $row['COUNT(*)'];<br />
echo &quot;&lt;b&gt;Total Level 3 Downlines&lt;/b&gt; : &quot;;<br />
echo &quot;$lvl3parent &lt;br&gt;&lt;br&gt;&quot;; <br />
} <br />
//GET THE ID THIRD LEVEL FRONTLINES AND PASS TO GET 4th LEVEL<br />
$result = mysql_query(&quot;SELECT id, lastname FROM agents WHERE ($level2)&quot;)or die(mysql_error());&nbsp; <br />
$output = array();<br />
while ($row = mysql_fetch_array($result)) {<br />
&nbsp; $output[] = &quot;sponsor = '&quot;.$row['id'].&quot;' &quot;;<br />
}<br />
$level3 = implode(' or ', $output); <br />
<br />
//-----------------------------------------------------------------------------------------------------------<br />
<br />
//GET THE TOTAL OF LEVEL 4<br />
$result = mysql_query(&quot;SELECT COUNT(*) FROM agents WHERE ($level3) &quot;)or die(mysql_error());&nbsp; <br />
while($row = mysql_fetch_array( $result )) {<br />
$lvl4parent = $row['COUNT(*)'];<br />
echo &quot;&lt;b&gt;Total Level 4 Downlines&lt;/b&gt; : &quot;;<br />
echo &quot;$lvl4parent &lt;br&gt;&lt;br&gt;&quot;; <br />
} <br />
//GET THE ID FOURTH LEVEL FRONTLINES AND PASS TO GET 5TH LEVEL<br />
$result = mysql_query(&quot;SELECT id, lastname FROM agents WHERE ($level3)&quot;)or die(mysql_error());&nbsp; <br />
$output = array();<br />
while ($row = mysql_fetch_array($result)) {<br />
&nbsp; $output[] = &quot;sponsor = '&quot;.$row['id'].&quot;' &quot;;<br />
}<br />
$level4 = implode(' or ', $output); <br />
<br />
//-----------------------------------------------------------------------------------------------------------<br />
<br />
//GET THE TOTAL OF LEVEL 5<br />
$result = mysql_query(&quot;SELECT COUNT(*) FROM agents WHERE ($level4) &quot;)or die(mysql_error());&nbsp; <br />
while($row = mysql_fetch_array( $result )) {<br />
$lvl5parent = $row['COUNT(*)'];<br />
echo &quot;&lt;b&gt;Total Level 5 Downlines&lt;/b&gt; : &quot;;<br />
echo &quot;$lvl5parent &lt;br&gt;&lt;br&gt;&quot;; <br />
} <br />
//GET THE ID FIFTH LEVEL FRONTLINES AND PASS TO GET 6TH LEVEL<br />
$result = mysql_query(&quot;SELECT id, lastname FROM agents WHERE ($level4)&quot;)or die(mysql_error());&nbsp; <br />
$output = array();<br />
while ($row = mysql_fetch_array($result)) {<br />
&nbsp; $output[] = &quot;sponsor = '&quot;.$row['id'].&quot;' &quot;;<br />
}<br />
$level5 = implode(' or ', $output); <br />
<br />
//-----------------------------------------------------------------------------------------------------------<br />
<br />
//GET THE TOTAL OF LEVEL 6<br />
$result = mysql_query(&quot;SELECT COUNT(*) FROM agents WHERE ($level5) &quot;)or die(mysql_error());&nbsp; <br />
while($row = mysql_fetch_array( $result )) {<br />
$lvl6parent = $row['COUNT(*)'];<br />
echo &quot;&lt;b&gt;Total Level 6 Downlines&lt;/b&gt; : &quot;;<br />
echo &quot;$lvl6parent &lt;br&gt;&lt;br&gt;&quot;; <br />
} <br />
//GET THE ID SIXTH LEVEL FRONTLINES AND PASS TO GET 7TH LEVEL<br />
$result = mysql_query(&quot;SELECT id, lastname FROM agents WHERE ($level5)&quot;)or die(mysql_error());&nbsp; <br />
$output = array();<br />
while ($row = mysql_fetch_array($result)) {<br />
&nbsp; $output[] = &quot;sponsor = '&quot;.$row['id'].&quot;' &quot;;<br />
}<br />
$level6 = implode(' or ', $output); <br />
<br />
//-----------------------------------------------------------------------------------------------------------<br />
<br />
//GET THE TOTAL OF LEVEL 7<br />
$result = mysql_query(&quot;SELECT COUNT(*) FROM agents WHERE ($level6) &quot;)or die(mysql_error());&nbsp; <br />
while($row = mysql_fetch_array( $result )) {<br />
$lvl7parent = $row['COUNT(*)'];<br />
echo &quot;&lt;b&gt;Total Level 7 Downlines&lt;/b&gt; : &quot;;<br />
echo &quot;$lvl7parent &lt;br&gt;&lt;br&gt;&quot;; <br />
} <br />
//GET THE ID 7TH LEVEL FRONTLINES AND PASS TO GET 8TH LEVEL<br />
$result = mysql_query(&quot;SELECT id, lastname FROM agents WHERE ($level6)&quot;)or die(mysql_error());&nbsp; <br />
$output = array();<br />
while ($row = mysql_fetch_array($result)) {<br />
&nbsp; $output[] = &quot;sponsor = '&quot;.$row['id'].&quot;' &quot;;<br />
}<br />
$level7 = implode(' or ', $output); <br />
<br />
//-----------------------------------------------------------------------------------------------------------<br />
<br />
//GET THE TOTAL OF LEVEL 8<br />
$result = mysql_query(&quot;SELECT COUNT(*) FROM agents WHERE ($level7) &quot;)or die(mysql_error());&nbsp; <br />
while($row = mysql_fetch_array( $result )) {<br />
$lvl8parent = $row['COUNT(*)'];<br />
echo &quot;&lt;b&gt;Total Level 8 Downlines&lt;/b&gt; : &quot;;<br />
echo &quot;$lvl8parent &lt;br&gt;&lt;br&gt;&quot;; <br />
} <br />
<br />
?&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>codewalkz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240877.html</guid>
		</item>
		<item>
			<title>printer_open() function</title>
			<link>http://www.daniweb.com/forums/thread240867.html</link>
			<pubDate>Tue, 24 Nov 2009 02:52:58 GMT</pubDate>
			<description><![CDATA[hello.. i'd like to confirm if the printer function "printer_open()" without parameters opens the printer connected to the user/client computer? or does it look at all network connections including the web for the presence of a printer? 
 
thanks..]]></description>
			<content:encoded><![CDATA[<div>hello.. i'd like to confirm if the printer function &quot;printer_open()&quot; without parameters opens the printer connected to the user/client computer? or does it look at all network connections including the web for the presence of a printer?<br />
<br />
thanks..</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>sim_pack</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240867.html</guid>
		</item>
		<item>
			<title>Defining functions in an if-else statement</title>
			<link>http://www.daniweb.com/forums/thread240859.html</link>
			<pubDate>Tue, 24 Nov 2009 01:59:53 GMT</pubDate>
			<description><![CDATA[Hi all, 
 
I have seen code of the form: 
 
if(file_exists("foo.php") 
  include("foo.php"); 
else 
  include("blah.php"); 
 
As far as I know, this is perfectly legal in php. What I was wondering was is it possible to do the following in in-line code in PHP?]]></description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
I have seen code of the form:<br />
 <pre style="margin:20px; line-height:13px">if(file_exists(&quot;foo.php&quot;)<br />
&nbsp; include(&quot;foo.php&quot;);<br />
else<br />
&nbsp; include(&quot;blah.php&quot;);</pre><br />
As far as I know, this is perfectly legal in php. What I was wondering was is it possible to do the following in in-line code in PHP?<br />
<br />
 <pre style="margin:20px; line-height:13px">if(file_exists(&quot;foo.php&quot;)<br />
&nbsp; // contains a specialised version of myFoo function<br />
&nbsp; include(&quot;foo.php&quot;);<br />
else<br />
{<br />
&nbsp; // define the default function here<br />
&nbsp; function myFoo($param)<br />
&nbsp; {<br />
&nbsp; &nbsp; &nbsp; // do something here<br />
&nbsp; }<br />
}</pre><br />
So in other words I want to be able to define a function in my PHP code only if the specialised version does not exist. I need to do this without the use of classes and inheritance if possible, and I can't include a second file at this stage, just wondering if the above code is legal or not.<br />
<br />
Thanks in advance for your thoughts and time.<br />
<br />
Regards,<br />
darkagn</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>darkagn</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240859.html</guid>
		</item>
		<item>
			<title>Running different scripts off a single form</title>
			<link>http://www.daniweb.com/forums/thread240816.html</link>
			<pubDate>Mon, 23 Nov 2009 22:49:47 GMT</pubDate>
			<description><![CDATA[Let's say I have an HTML form and there is a group of radio buttons. 
A need different script to be run depending on which button is checked. 
Let's say I have this: 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Let's say I have an HTML form and there is a group of radio buttons.<br />
A need different script to be run depending on which button is checked.<br />
Let's say I have this:<br />
 <pre style="margin:20px; line-height:13px">&lt;input type=&quot;radio&quot; name=&quot;invtype&quot; value=&quot;product&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;b&gt;PRODUCT&lt;b&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;radio&quot; name=&quot;invtype&quot; value=&quot;software&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;b&gt;SOFTWARE&lt;b&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;radio&quot; name=&quot;invtype&quot; value=&quot;service&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;b&gt;SERVICE&lt;b&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;radio&quot; name=&quot;invtype&quot; value=&quot;slogan&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;b&gt;SLOGAN&lt;b&gt;</pre><br />
How do I do that?<br />
I'm thinking of doing multiple hidden submit buttons, but I don't know how to run PHP scripts off them.<br />
I used to do it through {header}, but when I do that, a parameter that I need to be passed to the next file, somehow doesn't get passed. Or I misunderstand something...</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/thread240816.html</guid>
		</item>
		<item>
			<title>Create a unique Hash</title>
			<link>http://www.daniweb.com/forums/thread240801.html</link>
			<pubDate>Mon, 23 Nov 2009 21:45:32 GMT</pubDate>
			<description><![CDATA[Hi DaniWeb users. 
 
I am creating a mp3 shop cart script, and I need a function to create a unique id of multiple items in the cart. 
 
for example in cart are these id's: _1,6,21,5_ 
base64 would make this: _MSw2LDIxLDU= _ 
 
I need it only alphanumeric as it is ment to be sent from a sms! 
 
So...]]></description>
			<content:encoded><![CDATA[<div>Hi DaniWeb users.<br />
<br />
I am creating a mp3 shop cart script, and I need a function to create a unique id of multiple items in the cart.<br />
<br />
for example in cart are these id's: <span style="text-decoration:underline">1,6,21,5</span><br />
base64 would make this: <span style="text-decoration:underline">MSw2LDIxLDU= </span><br />
<br />
I need it only alphanumeric as it is ment to be sent from a sms!<br />
<br />
So when the user sents the sms, my server needs to &quot;decode&quot; it and get the cart items user 'purchased' from with a sms!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>smartness</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240801.html</guid>
		</item>
		<item>
			<title>how do i display date()(the date from that function) in different timezones?</title>
			<link>http://www.daniweb.com/forums/thread240799.html</link>
			<pubDate>Mon, 23 Nov 2009 21:34:52 GMT</pubDate>
			<description>i need all the 24 timezones and i have to display them all. how do i display the date and time in all 24 timezones? 
im using time() to put the time into the mysql database now i need to use date() to display the date and time in all timezones please help</description>
			<content:encoded><![CDATA[<div>i need all the 24 timezones and i have to display them all. how do i display the date and time in all 24 timezones?<br />
im using time() to put the time into the mysql database now i need to use date() to display the date and time in all timezones please help</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/thread240799.html</guid>
		</item>
		<item>
			<title>Is it possible for host to do something itself</title>
			<link>http://www.daniweb.com/forums/thread240760.html</link>
			<pubDate>Mon, 23 Nov 2009 17:53:13 GMT</pubDate>
			<description><![CDATA[HI 
I want when somebody comes to my site and go out from it , a certain page still execute by the server and continue to do it's work. 
Is it possible to execute some codes after the user close it by the server ? 
Thanksv]]></description>
			<content:encoded><![CDATA[<div>HI<br />
I want when somebody comes to my site and go out from it , a certain page still execute by the server and continue to do it's work.<br />
Is it possible to execute some codes after the user close it by the server ?<br />
Thanksv</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/thread240760.html</guid>
		</item>
		<item>
			<title>error in php using ajax view list to full listt</title>
			<link>http://www.daniweb.com/forums/thread240726.html</link>
			<pubDate>Mon, 23 Nov 2009 14:56:42 GMT</pubDate>
			<description><![CDATA[i want to create list load from db countries and then full second list from db when condition true. 
code run in opera successfully but in IE Not run... 
I'm beginner and using Smarty Templates. 
first code country.tpl 
second show_country.php 
third country.js  <div class="codeblock"> <div...]]></description>
			<content:encoded><![CDATA[<div>i want to create list load from db countries and then full second list from db when condition true.<br />
code run in opera successfully but in IE Not run...<br />
I'm beginner and using Smarty Templates.<br />
first code country.tpl<br />
second show_country.php<br />
third country.js <pre style="margin:20px; line-height:13px">&lt;html&gt;<br />
&nbsp; &nbsp;  &lt;head&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;script type=&quot;text/javascript&quot; src=&quot;css/country.js&quot;&gt;&lt;/script&gt;<br />
&nbsp; &nbsp;  &lt;/head&gt;<br />
&nbsp; &nbsp;  &lt;body&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;table align=&quot;center&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr align=&quot;center&quot;&gt;&lt;td&gt;&lt;b&gt;&lt;h3&gt;&lt;ul&gt;Country List yousing AJAX&lt;/ul&gt;&lt;/h3&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&gt;&lt;br&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;table align=&quot;center&quot;&gt;<br />
<br />
&lt;!-- Form1 to show all countries in database using section loop and using function ShowCity() --&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;form action=&quot;&quot; method=&quot;&quot; name=&quot;frm1&quot; &gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;font color=&quot;#FF0000&quot;&gt;&lt;b&gt;Choose Your Country:&lt;/b&gt;&lt;/font&gt;&lt;br&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;select name=&quot;slccountry&quot; onChange=&quot;ShowCity()&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  {section loop=$arrcountry name=index}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;option value=&quot;{$arrcountry[index].id}&quot;&gt;{$arrcountry[index].country}&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  {/section}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;/select&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/form&gt;<br />
<br />
&lt;!-- Form2&nbsp; Recived Result from Form1 using id slccity--&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;form name=&quot;frm2&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;br&gt;&lt;font color=&quot;#FF0000&quot;&gt;&lt;b&gt;Choose your city&lt;/b&gt;&lt;/font&gt;&lt;br /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;select name=&quot;slccity&quot; id=&quot;slccity&quot;&gt;&lt;/select&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/form&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&gt;&lt;br/&gt;&lt;br/&gt;&lt;br&gt;&lt;br&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;table align=&quot;center&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;a href=&quot;show_customers.php&quot; class=&quot;link&quot;&gt;&lt;h3&gt;&amp;nbsp;Show Customers&amp;nbsp;&lt;/h3&gt;&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&gt;<br />
&nbsp; &nbsp;  &lt;/body&gt;<br />
&lt;/html&gt;<br />
<br />
----------------------------------------------------------------------------<br />
&lt;?<br />
&nbsp; &nbsp; &nbsp; &nbsp; include('header.php');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; $id = intval($_GET['id']);<br />
&nbsp; &nbsp; //$smarty-&gt;assign('id',$id);<br />
<br />
require_once('modules/modloadcountry.php');<br />
$arrcountry = loadcountries($id,false);<br />
$smarty-&gt;assign('arrcountry',$arrcountry);<br />
<br />
/* Smarty Class But Using looping<br />
<br />
&nbsp;  $sql = &quot;select * from cities where id = &quot;.$id;<br />
&nbsp;  $result = $db-&gt;Execute($sql);<br />
<br />
&nbsp;  $id = $result-&gt;fields['id'];<br />
&nbsp;  $city = $result-&gt;fields['city'];<br />
&nbsp;  $smarty-&gt;assign('id',$id);<br />
&nbsp;  $smarty-&gt;assign('city',$city);<br />
<br />
&nbsp;  echo &quot;&lt;option value=''&gt;{$city}&lt;/option&gt;&quot;;<br />
*/<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //Normal PHP<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $link = mysql_connect(&quot;localhost&quot;,&quot;root&quot;,&quot;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $db = mysql_select_db(&quot;entelaq&quot;,$link);<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $sql = &quot;SELECT * FROM cities WHERE id= $id&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $result = mysql_query($sql);<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; while ( $row = mysql_fetch_array($result) )<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;option value=$row[id]&gt;{$row[city]}&lt;/option&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; //echo &quot;&lt;th&gt;&quot;.$sql.&quot;&lt;/th&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; //echo &quot;&lt;th&gt;&quot;.$result.&quot;&lt;/th&gt;&quot;;<br />
<br />
$smarty-&gt;display('country.tpl');<br />
<br />
include('footer.php');<br />
?&gt;<br />
<br />
------------------------------------------------------------------------<br />
<br />
<br />
var xmlHttp = new XMLHttpRequest();&nbsp; &nbsp;  // Declaration Object<br />
<br />
function ShowCity()<br />
{<br />
&nbsp; &nbsp; xmlHttp.open('get','show_country.php?id='+document.frm1.slccountry.selectedIndex);&nbsp; &nbsp;  // Send Request<br />
&nbsp; &nbsp; xmlHttp.onreadystatechange = handleInfo;<br />
&nbsp; &nbsp; xmlHttp.send(null);&nbsp; &nbsp; // End Request<br />
}<br />
<br />
function handleInfo()<br />
{<br />
&nbsp; &nbsp; if(xmlHttp.readyState == 1)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; document.getElementById('slccountry').innerHTML = 'loading ..';<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; else if(xmlHttp.readyState == 4)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; var response = xmlHttp.responseText;&nbsp; &nbsp;  // Server Answer<br />
&nbsp; &nbsp; &nbsp; &nbsp; document.getElementById('slccity').innerHTML = response;&nbsp; &nbsp; // print to Menu<br />
&nbsp; &nbsp; }<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>mhran419</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240726.html</guid>
		</item>
		<item>
			<title>Create a shortening hash function</title>
			<link>http://www.daniweb.com/forums/thread240698.html</link>
			<pubDate>Mon, 23 Nov 2009 13:06:50 GMT</pubDate>
			<description><![CDATA[Hi, 
I need to create a function to shorten a numerical ID to a string of letters 
E.G. 
 
echo encode_num('1'); //Outputs a 
echo encode_num('3'); //Outputs c 
echo encode_num('26'); //Outputs z 
echo encode_num('27'); //Outputs A 
echo encode_num('52'); //Outputs Z 
echo encode_num('53');...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
I need to create a function to shorten a numerical ID to a string of letters<br />
E.G.<br />
 <pre style="margin:20px; line-height:13px">echo encode_num('1'); //Outputs a<br />
echo encode_num('3'); //Outputs c<br />
echo encode_num('26'); //Outputs z<br />
echo encode_num('27'); //Outputs A<br />
echo encode_num('52'); //Outputs Z<br />
echo encode_num('53'); //Outputs aa<br />
echo encode_num('54'); //Outputs ab</pre>etc.<br />
<br />
But I also need to be able to decode them again like<br />
 <pre style="margin:20px; line-height:13px">echo decode_num('a'); //Outputs 1</pre><br />
Is this possible to do?<br />
Thanx,<br />
Sam Rudge</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>samarudge</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240698.html</guid>
		</item>
		<item>
			<title>See PHP code from a website online</title>
			<link>http://www.daniweb.com/forums/thread240687.html</link>
			<pubDate>Mon, 23 Nov 2009 12:29:39 GMT</pubDate>
			<description><![CDATA[I can't access my old hosting account. I don't now my username. I now the domain and can i see PHP code on one page.]]></description>
			<content:encoded><![CDATA[<div>I can't access my old hosting account. I don't now my username. I now the domain and can i see PHP code on one page.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>web3</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240687.html</guid>
		</item>
		<item>
			<title>How to use curl option</title>
			<link>http://www.daniweb.com/forums/thread240652.html</link>
			<pubDate>Mon, 23 Nov 2009 09:48:35 GMT</pubDate>
			<description><![CDATA[Hai  
 i am using the curl option to validate the site for the rss feed. 
my code is 
  <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...]]></description>
			<content:encoded><![CDATA[<div>Hai <br />
 i am using the curl option to validate the site for the rss feed.<br />
my code is<br />
 <pre style="margin:20px; line-height:13px">&lt;?php<br />
// create a new cURL resource<br />
$ch = curl_init();<br />
$demo='http://chaitu09986025424.blog.co.in/feed/rss/';<br />
// set URL and other appropriate options<br />
curl_setopt($ch, CURLOPT_URL, &quot;http://validator.w3.org/feed/check.cgi?url=$demo&quot;);<br />
curl_setopt($ch, CURLOPT_HEADER, false);<br />
<br />
// grab URL and pass it to the browser<br />
curl_exec($ch);<br />
echo $info['http_code'] . &quot; &quot; . $http_codes[$info['http_code']];<br />
// close cURL resource, and free up system resources<br />
curl_close($ch);<br />
?&gt;</pre><br />
now the problem is that how do i read the file and pass the parameters...<br />
the result of this would be <br />
<br />
<span style="color:Red">Congratulations!<br />
 This is a valid RSS feed.<br />
<br />
Recommendations<br />
This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.<br />
<br />
•line 11, column 107: Self reference doesn't match document location [help]<br />
<br />
... rel=&quot;self&quot; type=&quot;application/rss+xml&quot; /&gt;                                             ^Source: <a rel="nofollow" class="t" href="http://chaitu09986025424.blog.co.in/feed/rss/" target="_blank">http://chaitu09986025424.blog.co.in/feed/rss/</a><br />
1.&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br />
2.&lt;rss version=&quot;2.0&quot;<br />
3.xmlns:content=&quot;http://purl.org/rss/1.0/modules/content/&quot;<br />
4.xmlns:wfw=&quot;http://wellformedweb.org/CommentAPI/&quot;<br />
5.xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot;<br />
6.xmlns:atom=&quot;http://www.w3.org/2005/Atom&quot;<br />
7.&gt;<br />
8. <br />
9.&lt;channel&gt;<br />
10.&lt;title&gt;Chaitu's&lt;/title&gt;<br />
11.&lt;atom:link href=&quot;http://chaitu09986025424.blog.co.in/wp-rss2.php&quot; rel=&quot;self&quot; type=&quot;application/rss+xml&quot; /&gt;<br />
12.&lt;link&gt;http://chaitu09986025424.blog.co.in&lt;/link&gt;<br />
13.&lt;description&gt;Know about the World and gain some Knowledge&lt;/description&gt;<br />
14.&lt;pubDate&gt;Fri, 20 Nov 2009 11:18:56 +0000&lt;/pubDate&gt;</span><br />
<br />
how do i pass the <span style="color:Green">This is a valid RSS feed.</span> data in code so that i can validate the given url..<br />
<br />
please some body help me on this..</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/thread240652.html</guid>
		</item>
		<item>
			<title>classes and session variables</title>
			<link>http://www.daniweb.com/forums/thread240636.html</link>
			<pubDate>Mon, 23 Nov 2009 07:57:59 GMT</pubDate>
			<description>Hi 
 
Im new to OO PHP, been reading through my book and in one example they are using a class structure in a shopping cart.  I have used session variables in the past for shopping carts, can I assume that if I create a class, which has a cart_contents array variable to which I add products, that...</description>
			<content:encoded><![CDATA[<div>Hi<br />
<br />
Im new to OO PHP, been reading through my book and in one example they are using a class structure in a shopping cart.  I have used session variables in the past for shopping carts, can I assume that if I create a class, which has a cart_contents array variable to which I add products, that the data will be accessible from page to page (like a session variable is accessible on all pages)...?<br />
<br />
thanks<br />
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/thread240636.html</guid>
		</item>
		<item>
			<title>birthday script</title>
			<link>http://www.daniweb.com/forums/thread240631.html</link>
			<pubDate>Mon, 23 Nov 2009 07:33:02 GMT</pubDate>
			<description><![CDATA[hello, 
  i want to display names of upcoming birthdays whose between "today" to "end of every month". how to do this]]></description>
			<content:encoded><![CDATA[<div>hello,<br />
  i want to display names of upcoming birthdays whose between &quot;today&quot; to &quot;end of every month&quot;. how to do this</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/thread240631.html</guid>
		</item>
		<item>
			<title>Converting PHP Feed to XML Feed?</title>
			<link>http://www.daniweb.com/forums/thread240513.html</link>
			<pubDate>Sun, 22 Nov 2009 21:49:36 GMT</pubDate>
			<description><![CDATA[I have developed an RSS Feed in php.  (can be found at http://www.mofikiworldwide.com by clicking the rss icon in the top right) 
 
My reason for using php to develop the feed was so that I wouldn't have to manually update a feed in an xml file everytime I needed to add something to it.  It just...]]></description>
			<content:encoded><![CDATA[<div>I have developed an RSS Feed in php.  (can be found at <a rel="nofollow" class="t" href="http://www.mofikiworldwide.com" target="_blank">http://www.mofikiworldwide.com</a> by clicking the rss icon in the top right)<br />
<br />
My reason for using php to develop the feed was so that I wouldn't have to manually update a feed in an xml file everytime I needed to add something to it.  It just reads a database and everytime I sbmit a new blog it auto populates the feed.<br />
<br />
You can use IE8 I know to subscribe to the feed but most feedburner style sites can't see my feed or wont load it due to the fact that its not actually a xml file.<br />
<br />
Any thoughts?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>brandonmofiki</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240513.html</guid>
		</item>
		<item>
			<title>PHP Image processing</title>
			<link>http://www.daniweb.com/forums/thread240495.html</link>
			<pubDate>Sun, 22 Nov 2009 19:52:15 GMT</pubDate>
			<description><![CDATA[hello everyone.. 
i would to ask about my simple code here.. it's not working..  
i actually want to display a forum badge which is data are received from the database. And i stucked at putting the avatar to a portion of the badge..i mean it looks like facebook profile badge...  
i created a...]]></description>
			<content:encoded><![CDATA[<div>hello everyone..<br />
i would to ask about my simple code here.. it's not working.. <br />
i actually want to display a forum badge which is data are received from the database. And i stucked at putting the avatar to a portion of the badge..i mean it looks like facebook profile badge... <br />
i created a background image using imagecreatefrompng() function.. <br />
<br />
can anybdy with this?<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;?php<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; define('PUN_ROOT', '../');<br />
&nbsp; &nbsp; &nbsp; &nbsp; require PUN_ROOT.'include/common.php';<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $id = isset($_GET['id']) ? base64_decode($_GET['id']) : 0;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; //PHP's GD class functions can create a variety of output image<br />
&nbsp; &nbsp; &nbsp; &nbsp; //types, this example creates a jpeg<br />
&nbsp; &nbsp; &nbsp; &nbsp; header(&quot;Content-type: image/png&quot;);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; //open up the image you want to put text over<br />
&nbsp; &nbsp; &nbsp; &nbsp; $im = imagecreatefrompng(&quot;testing.png&quot;);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; //The numbers are the RGB values of the color you want to use<br />
&nbsp; &nbsp; &nbsp; &nbsp; $black = imagecolorallocate($im, 0, 51, 102);<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $sql = $db-&gt;query('SELECT username, num_posts FROM '.$db-&gt;prefix.'users WHERE id='.$id) or error('Unable to fetch new password', __FILE__, __LINE__, $db-&gt;error());<br />
&nbsp; &nbsp; &nbsp; &nbsp; $result = $db-&gt;fetch_assoc($sql);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $Uname = $result['username'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; $Nopost = 'No. of posts&amp;raquo; '.$result['num_posts'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //font<br />
&nbsp; &nbsp; &nbsp; &nbsp; $font = './Verdana.ttf';<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //write data to the image&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; imagettftext($im, 10, 0, 20, 12, $black, $font, $Uname);<br />
&nbsp; &nbsp; &nbsp; &nbsp; imagettftext($im, 10, 0, 20, 30, $black, $font, $Nopost);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //path to avatar directory<br />
&nbsp; &nbsp; &nbsp; &nbsp; $avapath = '../img/avatars/'.$id.'png';<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; // Copy and merge avatar to the backgroud<br />
&nbsp; &nbsp; &nbsp; &nbsp; // Something wrong here.. =(<br />
&nbsp; &nbsp; &nbsp; &nbsp; $src = imagecreatefrompng($avapath);<br />
&nbsp; &nbsp; &nbsp; &nbsp; imagecopymerge($im, $src, 10, 10, 0, 0, 100, 47, 75);<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; imagepng($im);<br />
&nbsp; &nbsp; &nbsp; &nbsp; imagedestroy($im); <br />
<br />
?&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>lili.edryana</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240495.html</guid>
		</item>
		<item>
			<title>Adding a page - Trick behind</title>
			<link>http://www.daniweb.com/forums/thread240492.html</link>
			<pubDate>Sun, 22 Nov 2009 19:33:28 GMT</pubDate>
			<description><![CDATA[When you add a page in CMS (Like Wordpress' admin) what does it actually do? Add predefined table? Or what? 
Thanks!]]></description>
			<content:encoded><![CDATA[<div>When you add a page in CMS (Like Wordpress' admin) what does it actually do? Add predefined table? Or what?<br />
Thanks!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>evstevemd</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240492.html</guid>
		</item>
		<item>
			<title>Practical code for paging</title>
			<link>http://www.daniweb.com/forums/thread240458.html</link>
			<pubDate>Sun, 22 Nov 2009 15:33:47 GMT</pubDate>
			<description><![CDATA[Hi, 
I'm learning making CMS. As you can see, I cannot do everything from scratch. So I request anyone with code in his codebase that works fine on paging or knows practical code to point me. I want to page my articles once are more than let say 10 
 
Cheers :)]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
I'm learning making CMS. As you can see, I cannot do everything from scratch. So I request anyone with code in his codebase that works fine on paging or knows practical code to point me. I want to page my articles once are more than let say 10<br />
<br />
Cheers :)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>evstevemd</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240458.html</guid>
		</item>
		<item>
			<title>Select inner join, and limit</title>
			<link>http://www.daniweb.com/forums/thread240455.html</link>
			<pubDate>Sun, 22 Nov 2009 14:55:01 GMT</pubDate>
			<description><![CDATA[Hi all, 
I want to do simple query to do the Join 
Here is illustartion of my query which gives error 
"SELECT * FROM table1, INNER JOIN table2 ON table1.colx = table2.colx LIMIT 30" 
What goes wrong here?]]></description>
			<content:encoded><![CDATA[<div>Hi all,<br />
I want to do simple query to do the Join<br />
Here is illustartion of my query which gives error<br />
 <pre style="margin:20px; line-height:13px">&quot;SELECT * FROM table1, INNER JOIN table2 ON table1.colx = table2.colx LIMIT 30&quot;</pre><br />
What goes wrong here?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>evstevemd</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240455.html</guid>
		</item>
		<item>
			<title>Devide in pages (Pageing)</title>
			<link>http://www.daniweb.com/forums/thread240405.html</link>
			<pubDate>Sun, 22 Nov 2009 10:44:59 GMT</pubDate>
			<description><![CDATA[I need a help with php i have a query it generate result that list of cars and i want is divide in to pages here im giving the table structure and the php file can help me on this 
 
*Table Structute* 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>I need a help with php i have a query it generate result that list of cars and i want is divide in to pages here im giving the table structure and the php file can help me on this<br />
<br />
<span style="font-weight:bold">Table Structute</span><br />
 <pre style="margin:20px; line-height:13px">CREATE TABLE IF NOT EXISTS `cars` (<br />
&nbsp; `id` int(11) NOT NULL AUTO_INCREMENT,<br />
&nbsp; `make` varchar(50) NOT NULL,<br />
&nbsp; `model` varchar(50) NOT NULL,<br />
&nbsp; `trans` varchar(50) NOT NULL,<br />
&nbsp; `fuel` varchar(50) NOT NULL,<br />
&nbsp; `year` int(11) NOT NULL,<br />
&nbsp; `km` int(11) NOT NULL,<br />
&nbsp; `vin` int(11) NOT NULL,<br />
&nbsp; `regdetails` varchar(50) NOT NULL,<br />
&nbsp; `state` varchar(50) NOT NULL,<br />
&nbsp; `price` varchar(100) NOT NULL,<br />
&nbsp; `features` varchar(1000) NOT NULL,<br />
&nbsp; `pic1` varchar(5000) NOT NULL,<br />
&nbsp; `pic2` varchar(5000) NOT NULL,<br />
&nbsp; `pic3` varchar(5000) NOT NULL,<br />
&nbsp; `pic4` varchar(5000) NOT NULL,<br />
&nbsp; `pic5` varchar(5000) NOT NULL,<br />
&nbsp; `pic6` varchar(5000) NOT NULL,<br />
&nbsp; `uname` varchar(20) NOT NULL,<br />
&nbsp; PRIMARY KEY (`id`),<br />
&nbsp; KEY `uname` (`uname`)<br />
) ENGINE=MyISAM&nbsp; DEFAULT CHARSET=latin1 AUTO_INCREMENT=16 ;<br />
<br />
--<br />
-- Dumping data for table `cars`<br />
--<br />
<br />
INSERT INTO `cars` (`id`, `make`, `model`, `trans`, `fuel`, `year`, `km`, `vin`, `regdetails`, `state`, `price`, `features`, `pic1`, `pic2`, `pic3`, `pic4`, `pic5`, `pic6`, `uname`) VALUES<br />
(14, 'ALFA ROMEO ', 'ALFA', 'Automatic', 'Gasoline/Petrol', 2009, 0, 0, 'Unregisted', 'Northern Territory', 'ASK', '&lt;li&gt;Anti-Lock Brakes(ABS)&lt;/li&gt;&lt;li&gt;Driver Airbag&lt;/li&gt;&lt;li&gt;Passenger Airbag&lt;/li&gt;&lt;li&gt;Side Airbag&lt;/li&gt;&lt;li&gt;Alarm&lt;/li&gt;&lt;li&gt;A/C:front&lt;/li&gt;&lt;li&gt;Cruise Control&lt;/li&gt;&lt;li&gt;Navigation System&lt;/li&gt;&lt;li&gt;Power Steering&lt;/li&gt;&lt;li&gt;Remote Keyless Entry&lt;/li&gt;&lt;li&gt;Tilt Wheel&lt;/li&gt;&lt;li&gt;Digital Meter&lt;/li&gt;&lt;li&gt;Child Seat&lt;/li&gt;&lt;li&gt;Leather Seats&lt;/li&gt;&lt;li&gt;Power Seats&lt;/li&gt;&lt;li&gt;Bucket Seat&lt;/li&gt;&lt;li&gt;Power Windows&lt;/li&gt;&lt;li&gt;Rear Window Wiper&lt;/li&gt;&lt;li&gt;Tinted Glass&lt;/li&gt;&lt;li&gt;AM/FM Radio&lt;/li&gt;&lt;li&gt;AM/FM Stereo&lt;/li&gt;&lt;li&gt;CD Changer&lt;/li&gt;&lt;li&gt;CD Player&lt;/li&gt;&lt;li&gt;Premium Sound&lt;/li&gt;&lt;li&gt;Satellite Radio&lt;/li&gt;&lt;li&gt;DVD&lt;/li&gt;&lt;li&gt;TV&lt;/li&gt;&lt;li&gt;Alloy Wheels&lt;/li&gt;&lt;li&gt;Power Door Locks&lt;/li&gt;&lt;li&gt;Power Mirrors&lt;/li&gt;&lt;li&gt;Sunroof&lt;/li&gt;&lt;li&gt;Third Row Seats&lt;/li&gt;&lt;li&gt;Power Slide Door&lt;/li&gt;&lt;li&gt;Custom wheels&lt;/li&gt;&lt;li&gt;Fully loaded&lt;/li&gt;&lt;li&gt;Maintenance records available&lt;/li&gt;&lt;li&gt;New paint&lt;/li&gt;&lt;li&gt;New tires&lt;/li&gt;&lt;li&gt;No accidents&lt;/li&gt;&lt;li&gt;One owner&lt;/li&gt;&lt;li&gt;Performance tires&lt;/li&gt;&lt;li&gt;Upgraded sound system&lt;/li&gt;&lt;li&gt;Turbo&lt;/li&gt;', './adpics/AlfaRomeoC8.jpg', './adpics/Alfa-Romeo-8c-Competizione.jpg', './adpics/alfa-romeo-8c.jpg', './adpics/alfa-8c.jpg', './adpics/alfa8c.jpg', './adpics/2003_Alfa_Romeo_8C_Competizione_Concept.jpg', 'nirman'),<br />
(11, 'BMW ', 'M3', 'Automatic', 'Diesel', 2007, 123, 0, 'Unregisted', 'Western Australia', 'ASK', '&lt;li&gt;Anti-Lock Brakes(ABS)&lt;/li&gt;&lt;li&gt;Driver Airbag&lt;/li&gt;&lt;li&gt;Passenger Airbag&lt;/li&gt;&lt;li&gt;Side Airbag&lt;/li&gt;&lt;li&gt;Alarm&lt;/li&gt;&lt;li&gt;Power Door Locks&lt;/li&gt;&lt;li&gt;Power Mirrors&lt;/li&gt;', './adpics/2009_Camaro_1.jpg', './adpics/0007500089184_500X500.jpg', './adpics/0088732421005_AV_500X500.jpg', './adpics/AustraliaMap.png', './adpics/Iloverock.gif', './adpics/YeahIloverock.jpg', 'ruwanaru'),<br />
(12, 'BMW ', 'M3', 'Automatic', 'Diesel', 2009, 123, 0, 'Unregisted', 'Western Australia', 'ASK', '&lt;li&gt;Anti-Lock Brakes(ABS)&lt;/li&gt;&lt;li&gt;Driver Airbag&lt;/li&gt;&lt;li&gt;Passenger Airbag&lt;/li&gt;&lt;li&gt;Side Airbag&lt;/li&gt;&lt;li&gt;Alarm&lt;/li&gt;&lt;li&gt;Power Door Locks&lt;/li&gt;&lt;li&gt;Power Mirrors&lt;/li&gt;', './adpics/2009_Camaro_1.jpg', './adpics/0007500089184_500X500.jpg', './adpics/0088732421005_AV_500X500.jpg', './adpics/AustraliaMap.png', './adpics/Iloverock.gif', './adpics/YeahIloverock.jpg', 'ruwanaru'),<br />
(13, 'AUDI ', 'R8', 'Automanual', 'Gasoline/Petrol', 2008, 123, 0, 'Unregisted', 'Northern Territory', 'ASK', '&lt;li&gt;Anti-Lock Brakes(ABS)&lt;/li&gt;&lt;li&gt;Driver Airbag&lt;/li&gt;&lt;li&gt;Passenger Airbag&lt;/li&gt;&lt;li&gt;Side Airbag&lt;/li&gt;&lt;li&gt;Alarm&lt;/li&gt;&lt;li&gt;A/C:front&lt;/li&gt;&lt;li&gt;Cruise Control&lt;/li&gt;&lt;li&gt;Navigation System&lt;/li&gt;&lt;li&gt;Power Windows&lt;/li&gt;&lt;li&gt;DVD&lt;/li&gt;', './adpics/2009_Camaro_1.jpg', './adpics/0007500089184_500X500.jpg', './adpics/2009_Camaro_1.jpg', './adpics/AustraliaMap.png', './adpics/2009_Camaro_1.jpg', '../adpics/2009_Camaro_1.jpg', 'nirman'),<br />
(15, 'ALFA ROMEO ', 'ALFA', 'Automatic', 'Gasoline/Petrol', 2009, 0, 0, 'Unregisted', 'Northern Territory', 'ASK', '&lt;li&gt;Anti-Lock Brakes(ABS)&lt;/li&gt;&lt;li&gt;Driver Airbag&lt;/li&gt;&lt;li&gt;Passenger Airbag&lt;/li&gt;&lt;li&gt;Side Airbag&lt;/li&gt;&lt;li&gt;Alarm&lt;/li&gt;&lt;li&gt;A/C:front&lt;/li&gt;&lt;li&gt;Cruise Control&lt;/li&gt;&lt;li&gt;Navigation System&lt;/li&gt;&lt;li&gt;Power Steering&lt;/li&gt;&lt;li&gt;Remote Keyless Entry&lt;/li&gt;&lt;li&gt;Tilt Wheel&lt;/li&gt;&lt;li&gt;Digital Meter&lt;/li&gt;&lt;li&gt;Child Seat&lt;/li&gt;&lt;li&gt;Leather Seats&lt;/li&gt;&lt;li&gt;Power Seats&lt;/li&gt;&lt;li&gt;Bucket Seat&lt;/li&gt;&lt;li&gt;Power Windows&lt;/li&gt;&lt;li&gt;Rear Window Wiper&lt;/li&gt;&lt;li&gt;Tinted Glass&lt;/li&gt;&lt;li&gt;AM/FM Radio&lt;/li&gt;&lt;li&gt;AM/FM Stereo&lt;/li&gt;&lt;li&gt;CD Changer&lt;/li&gt;&lt;li&gt;CD Player&lt;/li&gt;&lt;li&gt;Premium Sound&lt;/li&gt;&lt;li&gt;Satellite Radio&lt;/li&gt;&lt;li&gt;DVD&lt;/li&gt;&lt;li&gt;TV&lt;/li&gt;&lt;li&gt;Alloy Wheels&lt;/li&gt;&lt;li&gt;Power Door Locks&lt;/li&gt;&lt;li&gt;Power Mirrors&lt;/li&gt;&lt;li&gt;Sunroof&lt;/li&gt;&lt;li&gt;Third Row Seats&lt;/li&gt;&lt;li&gt;Power Slide Door&lt;/li&gt;&lt;li&gt;Custom wheels&lt;/li&gt;&lt;li&gt;Fully loaded&lt;/li&gt;&lt;li&gt;Maintenance records available&lt;/li&gt;&lt;li&gt;New paint&lt;/li&gt;&lt;li&gt;New tires&lt;/li&gt;&lt;li&gt;No accidents&lt;/li&gt;&lt;li&gt;One owner&lt;/li&gt;&lt;li&gt;Performance tires&lt;/li&gt;&lt;li&gt;Upgraded sound system&lt;/li&gt;&lt;li&gt;Turbo&lt;/li&gt;', './adpics/AlfaRomeoC8.jpg', './adpics/Alfa-Romeo-8c-Competizione.jpg', './adpics/alfa-romeo-8c.jpg', './adpics/alfa-8c.jpg', './adpics/alfa8c.jpg', './adpics/2003_Alfa_Romeo_8C_Competizione_Concept.jpg', 'nirman');</pre><br />
<br />
<span style="font-weight:bold">PHP file</span><br />
 <pre style="margin:20px; line-height:13px">&nbsp; &lt;?php<br />
&nbsp; &nbsp; include(&quot;init/db.php&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $yearfom = $_POST[&quot;yearFrom&quot;];<br />
&nbsp; &nbsp; &nbsp; &nbsp; $yearTo = $_POST[&quot;yearTo&quot;];<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; $Year =&quot;SELECT&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; if($yearfom!=&quot;SELECT&quot;){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $Year =&quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $content = array(&quot;make&quot;=&gt;$_POST[&quot;make&quot;],<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;model&quot;=&gt;$_POST[&quot;model&quot;],<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;year&quot;=&gt;&quot;$Year&quot; );<br />
<br />
<br />
&nbsp;  <br />
&nbsp; &nbsp; $validValues=array();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; foreach ($content as $key=&gt;$value)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if($value != &quot;SELECT&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $validValues[$key]=$value;&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; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; $query =&quot;select * from cars where &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; foreach($validValues as $key=&gt;$value)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $query1 = $query.$key.&quot;='&quot;.$value.&quot;' AND &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $qu1=true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if($key == &quot;year&quot;){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $query1 = substr($query1,0,-8);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $query2 = $query1.&quot; BETWEEN '&quot;.$yearfom.&quot;' AND ' &quot;.$yearTo.&quot;'&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $qu1=false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $qu2=true;<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; }<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; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; if($qu1==true){<br />
&nbsp; &nbsp; &nbsp; &nbsp; $query = substr($query1,0,-4);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }elseif($qu2==true){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $query = $query2;<br />
&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; <br />
&nbsp; &nbsp; &nbsp; &nbsp; echo $query;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $result=mysql_query($query);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $row=mysql_num_rows($result);<br />
&nbsp;if($row&gt;0){&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; while ($info=mysql_fetch_array($result)){<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp;  $make = $info['make'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $model = $info['model'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $price = $info['price'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $features = $info['features'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $year= $info['year'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp;  $pic1=$info['pic1'];<br />
&nbsp; &nbsp; &nbsp; &nbsp;  $pic2=$info['pic2'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $pic3=$info['pic3'];<br />
&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;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $id = $info['id'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $desc=str_replace (&quot;&lt;li&gt;&quot;, &quot;&nbsp;  &quot;, $features);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $ftt = substr($desc,0,120).&quot;.................&quot;; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $abc=&quot;'viewad.php?id=$id'&quot;;<br />
<br />
<br />
echo&nbsp; &nbsp; &nbsp; &nbsp; '&lt;div id=&quot;adcontent&quot;&gt;&lt;a&nbsp; onclick=&quot;javascript<b></b>:popUp('.$abc.')&quot;&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;cars&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div style=&quot;background-color:#0091DE; padding:5px; font-weight: bold; color:#FFF;&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '.$make.' - '.$model.' -&nbsp; '.$year.'<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; &nbsp; &lt;div style=&quot;padding:10px; font-size: 30px;&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;img src=&quot;'.$pic1.'&quot; width=&quot;20%&quot; height=&quot;20%&quot; style=&quot;margin:5px;&quot;/&gt;&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;img src=&quot;'.$pic2.'&quot; width=&quot;20%&quot; height=&quot;20%&quot; style=&quot;margin:5px;&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;img src=&quot;'.$pic3.'&quot; width=&quot;20%&quot; height=&quot;20%&quot;style=&quot;margin:5px;&quot;/&gt; $ '.$price.' <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;/div&gt;&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div style=&quot;padding: 15px;&quot;&gt;&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;P style=&quot;font-size: 12px; font-weight: normal;&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '.&nbsp; &nbsp; &nbsp; &nbsp; $ftt.'&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/P&gt;&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;img src=&quot;image/images/carbot.gif&quot; width=&quot;500&quot; height=&quot;10&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;&lt;/a&gt;<br />
&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;';<br />
&nbsp; }<br />
&nbsp;}<br />
&nbsp; else {echo '&lt;div id=&quot;commingsoon&quot;&gt;<br />
<br />
&nbsp; &lt;p&gt;&amp;nbsp;&lt;/p&gt;<br />
Comming Soon !<br />
&lt;p&gt;&amp;nbsp;&lt;/p&gt;<br />
&lt;p&gt;&amp;nbsp;&lt;/p&gt;<br />
&lt;p&gt;&amp;nbsp;&lt;/p&gt;<br />
&lt;/div&gt;';}<br />
?&gt;</pre></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/thread240405.html</guid>
		</item>
		<item>
			<title>can any one find the error of ths pageing</title>
			<link>http://www.daniweb.com/forums/thread240389.html</link>
			<pubDate>Sun, 22 Nov 2009 07:20:34 GMT</pubDate>
			<description><![CDATA[In this db and query are working and the firs page but after the 2nd page the variables are  not passing can any one help me on this  
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>In this db and query are working and the firs page but after the 2nd page the variables are  not passing can any one help me on this <br />
<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 />
<br />
&lt;?php <br />
&nbsp; <br />
&nbsp; include(&quot;../init/db.php&quot;);<br />
&nbsp; <br />
&nbsp; $yearfom = $_POST[&quot;yearFrom&quot;];<br />
&nbsp; &nbsp; &nbsp; &nbsp; $yearTo = $_POST[&quot;yearTo&quot;];<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; $Year =&quot;SELECT&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; if($yearfom!=&quot;SELECT&quot;){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $Year =&quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $content = array(&quot;make&quot;=&gt;$_POST[&quot;make&quot;],<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;model&quot;=&gt;$_POST[&quot;model&quot;],<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;year&quot;=&gt;&quot;$Year&quot;);<br />
<br />
<br />
&nbsp;  <br />
&nbsp; &nbsp; $validValues=array();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; foreach ($content as $key=&gt;$value)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if($value != &quot;SELECT&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $validValues[$key]=$value;&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; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; $query =&quot;select * from cars where &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; foreach($validValues as $key=&gt;$value)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $query1 = $query.$key.&quot;='&quot;.$value.&quot;' AND &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $qu1=true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if($key == &quot;year&quot;){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $query1 = substr($query1,0,-8);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $query2 = $query1.&quot; BETWEEN '&quot;.$yearfom.&quot;' AND ' &quot;.$yearTo.&quot;' &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $qu1=false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $qu2=true;<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; }<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; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; if($qu1==true){<br />
&nbsp; &nbsp; &nbsp; &nbsp; $query = substr($query1,0,-4);<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo $sql = $query;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }elseif($qu2==true){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $query = $query2;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo $sql = $query;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; <br />
&nbsp; <br />
// how many rows to show per page<br />
$rowsPerPage = 2;<br />
<br />
// by default we show first page<br />
$pageNum = 1;<br />
<br />
// if $_GET['page'] defined, use it as page number<br />
if(isset($_GET['page']))<br />
{<br />
&nbsp; &nbsp; $pageNum = $_GET['page'];<br />
}<br />
<br />
// counting the offset<br />
$offset = ($pageNum - 1) * $rowsPerPage;<br />
&nbsp; <br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
// $sql= &quot;select * from cars where year BETWEEN '2007' AND ' 2009' &quot;;<br />
&nbsp; $result=mysql_query($sql);<br />
&nbsp;  $row=mysql_num_rows($result);<br />
&nbsp; &nbsp;  <br />
&nbsp; while($info=mysql_fetch_array($result)){<br />
<br />
<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp;  $make = $info['make'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $model = $info['model'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $price = $info['price'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $features = $info['features'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $year= $info['year'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp;  $pic1=$info['pic1'];<br />
&nbsp; &nbsp; &nbsp; &nbsp;  $pic2=$info['pic2'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $pic3=$info['pic3'];<br />
&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;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $id = $info['id'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $desc=str_replace (&quot;&lt;li&gt;&quot;, &quot;&nbsp;  &quot;, $features);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $ftt = substr($desc,0,120).&quot;.................&quot;; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $abc=&quot;'viewad.php?id=$id'&quot;;<br />
<br />
<br />
echo&nbsp; &nbsp; &nbsp; &nbsp; '&lt;div id=&quot;adcontent&quot;&gt;&lt;a&nbsp; onclick=&quot;javascript<b></b>:popUp('.$abc.')&quot;&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;cars&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div style=&quot;background-color:#0091DE; padding:5px; font-weight: bold; color:#FFF;&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '.$make.' - '.$model.' -&nbsp; '.$year.'<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; &nbsp; &lt;div style=&quot;padding:10px; font-size: 30px;&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;img src=&quot;'.$pic1.'&quot; width=&quot;20%&quot; height=&quot;20%&quot; style=&quot;margin:5px;&quot;/&gt;&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;img src=&quot;'.$pic2.'&quot; width=&quot;20%&quot; height=&quot;20%&quot; style=&quot;margin:5px;&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;img src=&quot;'.$pic3.'&quot; width=&quot;20%&quot; height=&quot;20%&quot;style=&quot;margin:5px;&quot;/&gt; $ '.$price.' <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;/div&gt;&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div style=&quot;padding: 15px;&quot;&gt;&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;P style=&quot;font-size: 12px; font-weight: normal;&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '.&nbsp; &nbsp; &nbsp; &nbsp; $ftt.'&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/P&gt;&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;img src=&quot;image/images/carbot.gif&quot; width=&quot;500&quot; height=&quot;10&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;&lt;/a&gt;<br />
&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
<br />
// how many rows we have in database<br />
$foreditqu= substr($sql,19,-1);<br />
echo $foreditqu;<br />
<br />
$query&nbsp;  = &quot;SELECT COUNT(id) AS numrows FROM cars &quot;.$foreditqu;<br />
echo $query;<br />
$result&nbsp; = mysql_query($query) or die('Error, query failed');<br />
$row&nbsp; &nbsp;  = mysql_fetch_array($result, MYSQL_ASSOC);<br />
echo &quot;&lt;br /&gt;&quot;.$numrows = $row['numrows'];<br />
<br />
echo &quot;&lt;br /&gt;&quot;;<br />
// how many pages we have when using paging?<br />
echo $maxPage = ceil($numrows/$rowsPerPage);<br />
<br />
// print the link to access each page<br />
$self = $_SERVER['PHP_SELF'];<br />
$nav&nbsp; = '';<br />
<br />
for($page = 1; $page &lt;= $maxPage; $page++)<br />
{<br />
&nbsp;  if ($page == $pageNum)<br />
&nbsp;  {<br />
&nbsp; &nbsp; &nbsp; $nav .= &quot; $page &quot;; // no need to create a link to current page<br />
&nbsp;  }<br />
&nbsp;  else<br />
&nbsp;  {<br />
&nbsp; &nbsp; &nbsp; $nav .= &quot; &lt;a href=\&quot;$self?page=$page\&quot;&gt;$page&lt;/a&gt; &quot;;<br />
&nbsp;  }<br />
}<br />
&nbsp;  <br />
&nbsp;  <br />
&nbsp;  // creating previous and next link<br />
// plus the link to go straight to<br />
// the first and last page<br />
<br />
if ($pageNum &gt; 1)<br />
{<br />
&nbsp;  $page&nbsp; = $pageNum - 1;<br />
&nbsp;  $prev&nbsp; = &quot; &lt;a href=\&quot;$self?page=$page\&quot;&gt;[Prev]&lt;/a&gt; &quot;;<br />
<br />
&nbsp;  $first = &quot; &lt;a href=\&quot;$self?page=1\&quot;&gt;[First Page]&lt;/a&gt; &quot;;<br />
}<br />
else<br />
{<br />
&nbsp;  $prev&nbsp; = '&amp;nbsp;'; // we're on page one, don't print previous link<br />
&nbsp;  $first = '&amp;nbsp;'; // nor the first page link<br />
}<br />
<br />
if ($pageNum &lt; $maxPage)<br />
{<br />
&nbsp;  $page = $pageNum + 1;<br />
&nbsp;  $next = &quot; &lt;a href=\&quot;$self?page=$page\&quot;&gt;[Next]&lt;/a&gt; &quot;;<br />
<br />
&nbsp;  $last = &quot; &lt;a href=\&quot;$self?page=$maxPage\&quot;&gt;[Last Page]&lt;/a&gt; &quot;;<br />
}<br />
else<br />
{<br />
&nbsp;  $next = '&amp;nbsp;'; // we're on the last page, don't print next link<br />
&nbsp;  $last = '&amp;nbsp;'; // nor the last page link<br />
}<br />
<br />
// print the navigation link<br />
echo $first . $prev . $nav . $next . $last;<br />
<br />
<br />
&nbsp; ?&gt;<br />
&lt;form id=&quot;form1&quot; name=&quot;F2&quot; method=&quot;post&quot; action=&quot;&lt;?php $_SERVER['PHP_SELF']; ?&gt;&quot;&gt;<br />
&nbsp; &lt;div style=&quot;background-color:#84C8FD; text-align: center;&quot;&gt;<br />
&nbsp; &nbsp; &lt;h2&gt;Find a Car&lt;/h2&gt;<br />
&nbsp; &lt;/div&gt;<br />
&nbsp; &lt;table width=&quot;224&quot; border=&quot;0&quot;&gt;<br />
&nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;td width=&quot;42&quot;&gt;Make&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;td colspan=&quot;2&quot;&gt;&lt;label for=&quot;make&quot;&gt;&lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;select name=&quot;make&quot; id=&quot;master&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;SILECT&quot;&gt;Select&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;AC&quot;&gt;AC &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;ALFA ROMEO &quot;&gt;ALFA ROMEO &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;ASIA &quot;&gt;ASIA &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;AMAROO &quot;&gt;AMAROO &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;ASTON MARTIN &quot;&gt;ASTON MARTIN &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;AUDI &quot;&gt;AUDI &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;AUSTIN &quot;&gt;AUSTIN &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;AUSTIN HEALEY &quot;&gt;AUSTIN HEALEY &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;BEDFORD &quot;&gt;BEDFORD &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;BENTLEY &quot;&gt;BENTLEY &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;BERTONE &quot;&gt;BERTONE &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;BMW &quot;&gt;BMW &lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;td&gt;Model&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;td colspan=&quot;2&quot;&gt;&lt;label for=&quot;model&quot;&gt;&lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;select name=&quot;model&quot; id=&quot;slave&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;SELECT&quot;&gt;Select&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;td&gt;Year&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;td width=&quot;80&quot;&gt;&lt;label for=&quot;yearFrom&quot;&gt;&lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;select name=&quot;yearFrom&quot; id=&quot;yearFrom&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;SELECT&quot;&gt;From&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;2008&quot;&gt;2008&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;2009&quot;&gt;2009&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;td width=&quot;80&quot;&gt;&lt;select name=&quot;yearTo&quot; id=&quot;yearTo&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;SELECT&quot;&gt;To&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;2008&quot;&gt;2008&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;2009&quot;&gt;2009&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/select&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input name=&quot;input&quot; type=&quot;submit&quot; value=&quot;Search&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &amp;nbsp;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &lt;/table&gt;<br />
&lt;/form&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>ruwanaru</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240389.html</guid>
		</item>
		<item>
			<title>one account for multiple sites</title>
			<link>http://www.daniweb.com/forums/thread240388.html</link>
			<pubDate>Sun, 22 Nov 2009 07:19:51 GMT</pubDate>
			<description>how can i use a single account on my double sites.........either with cookies or any thing else...........!! 
 
suppose i have http://www.mydomain.com and also 
http://another.mydomain.com how can it use my single account with these both sites..........!!</description>
			<content:encoded><![CDATA[<div>how can i use a single account on my double sites.........either with cookies or any thing else...........!!<br />
<br />
suppose i have <a rel="nofollow" class="t" href="http://www.mydomain.com" target="_blank">http://www.mydomain.com</a> and also<br />
<a rel="nofollow" class="t" href="http://another.mydomain.com" target="_blank">http://another.mydomain.com</a> how can it use my single account with these both sites..........!!</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/thread240388.html</guid>
		</item>
		<item>
			<title>how to style highlight_string() without creating a mock function</title>
			<link>http://www.daniweb.com/forums/thread240375.html</link>
			<pubDate>Sun, 22 Nov 2009 04:53:20 GMT</pubDate>
			<description>i want to style highlight_string() how can i style it?</description>
			<content:encoded><![CDATA[<div>i want to style highlight_string() how can i style it?</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/thread240375.html</guid>
		</item>
		<item>
			<title>signup php page</title>
			<link>http://www.daniweb.com/forums/thread240364.html</link>
			<pubDate>Sun, 22 Nov 2009 03:27:27 GMT</pubDate>
			<description><![CDATA[Hi, I got this for nfl pickem program and installed it on my website.I use yahoo web hosting. I have most apps working but the signup form is killing me. when user go to my webpage and try to signup, it just takes you to a blank page. here is the code 
  <div class="codeblock"> <div class="spaced">...]]></description>
			<content:encoded><![CDATA[<div>Hi, I got this for nfl pickem program and installed it on my website.I use yahoo web hosting. I have most apps working but the signup form is killing me. when user go to my webpage and try to signup, it just takes you to a blank page. here is the code<br />
 <pre style="margin:20px; line-height:13px">&lt;?php<br />
require('includes/application_top.php');<br />
require('includes/classes/crypto.php');<br />
include('includes/classes/class.formvalidation.php');<br />
include('includes/classes/class.phpmailer.php');<br />
<br />
if (!$allow_signup) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; header('location: login.php?signup=yes');<br />
&nbsp; &nbsp; &nbsp; &nbsp; exit;<br />
}<br />
<br />
if (isset($_POST['submit'])) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; $my_form = new validator;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $mail = new PHPMailer();<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; if($my_form-&gt;checkEmail($_POST['email'])) { // check for good mail<br />
&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; if ($my_form-&gt;validate_fields('firstname,lastname,email,username,password')) { // comma delimited list of the required form fields<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($_POST['password'] == $_POST['password2']) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //create new user, enable<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $username = mysql_real_escape_string(str_replace(' ', '_', $_POST['username']));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $sql = &quot;SELECT userName FROM &quot; . $db_prefix . &quot;users WHERE userName='&quot;.$username.&quot;';&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $result = mysql_query($sql);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(mysql_numrows($result) &gt; 0){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $display = '&lt;div class=&quot;responseError&quot;&gt;User already exists, please try another username.&lt;/div&gt;&lt;br/&gt;';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $sql = &quot;SELECT email FROM &quot; . $db_prefix . &quot;users WHERE email='&quot;.$email.&quot;';&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $result = mysql_query($sql);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(mysql_numrows($result) &gt; 0){<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; $display = '&lt;div class=&quot;responseError&quot;&gt;Email address already exists.&nbsp; If this is your email account, please log in or reset your password.&lt;/div&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; } else {<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; $crypto = new phpFreaksCrypto;<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; $salt = substr($crypto-&gt;encrypt((uniqid(mt_rand(), true))), 0, 10);<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; $secure_password = $crypto-&gt;encrypt($salt . $crypto-&gt;encrypt($password));<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; $sql = &quot;INSERT INTO &quot; . $db_prefix . &quot;users (userName, password, salt, firstname, lastname, email, status) <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; VALUES ('&quot;.$username.&quot;', '&quot;.$secure_password.&quot;', '&quot;.$salt.&quot;', '&quot;.$firstname.&quot;', '&quot;.$lastname.&quot;', '&quot;.$email.&quot;', 1);&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; mysql_query($sql) or die(mysql_error());<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 />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //send confirmation email<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; $mail-&gt;IsHTML(true);<br />
&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; $mail-&gt;From = $user-&gt;email; // the email field of the form<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; $mail-&gt;FromName = 'NFL Pick \'Em Admin'; // the name field of the form<br />
&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; $mail-&gt;AddAddress($_POST['email']); // the form will be sent to this address<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; $mail-&gt;Subject = 'NFL Pick \'Em Confirmation'; // the subject of email<br />
&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; // html text block<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; $mail-&gt;Body = '&lt;p&gt;Thank you for signing up for the NFL Pick \'Em Pool.&nbsp; Please click the below link to confirm your account:&lt;br /&gt;' . &quot;\n&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; $siteUrl . 'signup.php?confirm=' . $crypto-&gt;encrypt($username) . '&lt;/p&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; &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; //$mail-&gt;Send();<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 />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; header('Location: login.php');<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; }<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; &nbsp; &nbsp; &nbsp; &nbsp; $display = '&lt;div class=&quot;responseError&quot;&gt;Passwords do not match, please try again.&lt;/div&gt;&lt;br/&gt;';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; $display = str_replace($_SESSION['email_field_name'], 'Email', $my_form-&gt;error);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $display = '&lt;div class=&quot;responseError&quot;&gt;' . $display . '&lt;/div&gt;&lt;br/&gt;';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; } else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $display = '&lt;div class=&quot;responseError&quot;&gt;There seems to be a problem with your email address, please check.&lt;/div&gt;&lt;br/&gt;';<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
}<br />
?&gt;&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 />
<br />
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; lang=&quot;en&quot;&gt;<br />
&lt;head&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;title&gt;NFL Pick 'Em Signup&lt;/title&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;link href=&quot;includes/css/main.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; media=&quot;screen&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 />
&lt;/head&gt;<br />
<br />
&lt;body&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;style&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; body {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; width: 550px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; #login {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; margin: 20px auto;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/style&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;login&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;table&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr valign=&quot;top&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;img src=&quot;images/logos/nfl-logo.png&quot; /&gt;&lt;/td&gt;<br />
&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; &lt;td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;h1&gt;NFL Pick 'Em Signup&lt;/h1&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;?php <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(isset($display)) {<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; echo $display;<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; ?&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;form action=&quot;signup.php&quot; method=&quot;post&quot; name=&quot;user&quot;&gt;&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; &lt;fieldset&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;legend style=&quot;font-weight:bold;&quot;&gt;Sign Up&lt;/legend&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;table cellpadding=&quot;3&quot; cellspacing=&quot;0&quot; 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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;&lt;td&gt;First Name:&lt;/td&gt;&lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;firstname&quot; value=&quot;&lt;?php echo $_POST['firstname']; ?&gt;&quot;&gt;&lt;/td&gt;&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; &lt;tr&gt;&lt;td&gt;Last Name:&lt;/td&gt;&lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;lastname&quot; value=&quot;&lt;?php echo $_POST['lastname']; ?&gt;&quot;&gt;&lt;/td&gt;&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; &lt;tr&gt;&lt;td&gt;Email:&lt;/td&gt;&lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;email&quot; value=&quot;&lt;?php echo $_POST['email']; ?&gt;&quot; size=&quot;30&quot;&gt;&lt;/td&gt;&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; &lt;tr&gt;&lt;td&gt;User Name:&lt;/td&gt;&lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;username&quot; value=&quot;&lt;?php echo $_POST['username']; ?&gt;&quot;&gt;&lt;/td&gt;&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; &lt;tr&gt;&lt;td&gt;Password:&lt;/td&gt;&lt;td&gt;&lt;input type=&quot;password&quot; name=&quot;password&quot; value=&quot;&quot;&gt;&lt;/td&gt;&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; &lt;tr&gt;&lt;td&gt;Confirm Password:&lt;/td&gt;&lt;td&gt;&lt;input type=&quot;password&quot; name=&quot;password2&quot; value=&quot;&quot;&gt;&lt;/td&gt;&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; &lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Submit&quot;&gt;&lt;/td&gt;&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;/table&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/fieldset&gt;<br />
&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; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&gt;<br />
&lt;?php<br />
include('includes/footer.php');<br />
?&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>dalypen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240364.html</guid>
		</item>
		<item>
			<title>Help needed to make Mafia Game.</title>
			<link>http://www.daniweb.com/forums/thread240293.html</link>
			<pubDate>Sat, 21 Nov 2009 18:51:03 GMT</pubDate>
			<description>I need help to make a Text based mafia game. 
 
I cant code :L But im willing to try and learn. 
The game i am thinking of should be something like Gangster Bliss or Gangster Paradise :) 
 
Anybody willing to help me? :D</description>
			<content:encoded><![CDATA[<div>I need help to make a Text based mafia game.<br />
<br />
I cant code :L But im willing to try and learn.<br />
The game i am thinking of should be something like Gangster Bliss or Gangster Paradise :)<br />
<br />
Anybody willing to help me? :D</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>NeeedYourHelppp</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240293.html</guid>
		</item>
		<item>
			<title>Web/C++/PHP File Updates</title>
			<link>http://www.daniweb.com/forums/thread240280.html</link>
			<pubDate>Sat, 21 Nov 2009 17:43:27 GMT</pubDate>
			<description><![CDATA[I'm not really sure which forum this belongs in, but please bear with me as I try to explain what I am looking to do. 
 
I have a PHP web site designed to display status updates from several dozen computers around the world.  Up until now an administrator updates a single .csv file and uploads it...]]></description>
			<content:encoded><![CDATA[<div>I'm not really sure which forum this belongs in, but please bear with me as I try to explain what I am looking to do.<br />
<br />
I have a PHP web site designed to display status updates from several dozen computers around the world.  Up until now an administrator updates a single .csv file and uploads it to the site, after which PHP parses and displays the information.  This is obvious very cumbersome, and has had too many inaccuracies due to the the human element.  Therefore, I am looking to automate the update of the csv file directly from each of the computers.<br />
<br />
I have designed a C++ program that runs locally on each machine, and will collect and format the respective line that will be updated in the .csv.  Unfortunately this all happens locally, and still requires a manual upload.  With that said, I am looking for any suggestions and help with being able to automate this process.  <br />
<br />
My current thought process is to remotely open the .csv file on the web server and update it directly from my C++ app.  Or possible download, update, then re-upload.  Or maybe PHP (with other technologies) provides the functionality to be able to take a string and update a text file on the server.  I may be way off base here, which is probably the case because I wouldn't know how to accomplish these ideas anyway.<br />
<br />
With that said, I am open to any and all suggestions to being able to do this.  Obviously the simpler the better, but I am really stuck and looking for some thoughts to accomplishing this.<br />
<br />
Thanks in advance,<br />
Jim</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>jimmiller96</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240280.html</guid>
		</item>
		<item>
			<title>how to validate a rss feed address</title>
			<link>http://www.daniweb.com/forums/thread240258.html</link>
			<pubDate>Sat, 21 Nov 2009 15:37:50 GMT</pubDate>
			<description>Hai 
    i am building a site for validation of the RSS feeds and adding it in the database. 
When a user enters a rss web address i need to validate the address and if it contains a rss then i need to enter it into the site or else i need to mention a message.. 
how do i do it. 
i think the easy...</description>
			<content:encoded><![CDATA[<div>Hai<br />
    i am building a site for validation of the RSS feeds and adding it in the database.<br />
When a user enters a rss web address i need to validate the address and if it contains a rss then i need to enter it into the site or else i need to mention a message..<br />
how do i do it.<br />
i think the easy way is to pass the feed address to this address <a rel="nofollow" class="t" href="http://validator.w3.org/feed/check.cgi?url=" target="_blank">http://validator.w3.org/feed/check.cgi?url=</a><br />
<br />
but how can i check what result is it giving..<br />
do any one have an idea or else if u have any validation things available. kindly help me out..<br />
 <pre style="margin:20px; line-height:13px">&lt;html&gt;<br />
&lt;body&gt;<br />
&lt;form action=&quot;subscription.php&quot; method=&quot;post&quot;&gt;<br />
&lt;b&gt;Add New Subscription URL :&lt;/b&gt;&lt;input name=&quot;subscr&quot; value=&quot;&quot; size=&quot;50&quot;&gt;<br />
&lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Add&quot; /&gt;<br />
&lt;/form&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
<br />
&lt;?php<br />
//include(&quot;login.php&quot;);<br />
include(&quot;access.php&quot;);<br />
mysql_select_db($dbname);<br />
if (isset($_COOKIE['user']))<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;Welcome $_COOKIE[user]&lt;br&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $username=&quot;$_COOKIE[user]&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; //echo &quot;&lt;p&gt;$username&lt;/p&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $query = mysql_query(&quot;SELECT email,password FROM userlogin WHERE username = '$username'&quot;) or die(mysql_error());<br />
&nbsp; &nbsp; &nbsp; &nbsp; $data = mysql_result($query,0);<br />
&nbsp; &nbsp; &nbsp; &nbsp; //echo $data;<br />
}<br />
else<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;META HTTP-EQUIV=\&quot;Refresh\&quot; CONTENT=\&quot;1; URL=login.php\&quot;&gt;&quot;;<br />
}<br />
<br />
$subscr=$_REQUEST['subscr'];<br />
if($subscr)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; //url validation<br />
<br />
if (preg_match('|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i', $subscr)) <br />
{<br />
&nbsp; &nbsp; //print &quot;$subscr url OK.&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; mysql_select_db($dbname);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $re=mysql_query(&quot;select * from usubs where url='$subscr'&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $rows=mysql_num_rows($re);<br />
&nbsp; &nbsp; &nbsp; &nbsp; if($rows==0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mysql_query(&quot;Insert into usubs(email,url) values('$data','$subscr')&quot;);&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //echo &quot;&lt;META HTTP-EQUIV=\&quot;Refresh\&quot; CONTENT=\&quot;1; URL=all.html\&quot;&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;The $subscr url already exists with your login&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //echo &quot;&lt;META HTTP-EQUIV=\&quot;Refresh\&quot; CONTENT=\&quot;1; URL=subscription.php\&quot;&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
}<br />
&nbsp;else <br />
&nbsp;{<br />
<br />
&nbsp; &nbsp; print &quot;$subscr url not valid!&quot;;<br />
}<br />
}<br />
else<br />
{ <br />
&nbsp; &nbsp; &nbsp; &nbsp; //echo &quot;&lt;META HTTP-EQUIV=\&quot;Refresh\&quot; CONTENT=\&quot;1; URL=subscription.php\&quot;&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; //echo(&quot;$subscr&quot;);<br />
}<br />
?&gt;</pre><br />
this is my code<br />
presently i am using the regular expression of the website address but how do i use it to verify the rss feed address..<br />
as the present one is validating the <a rel="nofollow" class="t" href="http://www.google.com" target="_blank">www.google.com</a> also as a valid feed..</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/thread240258.html</guid>
		</item>
		<item>
			<title>Snapshot of webpage using PHP</title>
			<link>http://www.daniweb.com/forums/thread240255.html</link>
			<pubDate>Sat, 21 Nov 2009 15:04:15 GMT</pubDate>
			<description>Hi dear all 
I want to take snapshot of webpage and then save it into  a folder. 
please tell me the basics , i am new to it.</description>
			<content:encoded><![CDATA[<div>Hi dear all<br />
I want to take snapshot of webpage and then save it into  a folder.<br />
please tell me the basics , i am new to it.</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/thread240255.html</guid>
		</item>
		<item>
			<title>automated sitemap ?</title>
			<link>http://www.daniweb.com/forums/thread240234.html</link>
			<pubDate>Sat, 21 Nov 2009 13:04:38 GMT</pubDate>
			<description>Hi, 
 
I have a sitemap and have decided to create an automated sitemap. 
 
I just wanted to ask would the way i am going to do it be ok. 
 
I was going to create a table let say called `sitemap` have a column in the table called `url`. Basically i would create a section in my admin so i can...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I have a sitemap and have decided to create an automated sitemap.<br />
<br />
I just wanted to ask would the way i am going to do it be ok.<br />
<br />
I was going to create a table let say called `sitemap` have a column in the table called `url`. Basically i would create a section in my admin so i can manually add/delete/edit if i wanted to.<br />
<br />
then i was going to create a sitemap.xml file<br />
<br />
in that file i was going to create a simple php script that querys the database and using mysql_fetch_array to get everything from the url column and echo it out something like the below, i just created the below script quickly as an example:<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br />
&lt;urlset xmlns=&quot;http://www.sitemaps.org/schemas/sitemap/0.9&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd&quot;&gt;<br />
<br />
&lt;?php<br />
&nbsp; &nbsp; &nbsp; &nbsp; // my global file will go here<br />
&nbsp; &nbsp; &nbsp; &nbsp; sql_con(); // function to connect to db in global file<br />
&nbsp; &nbsp; &nbsp; &nbsp; $query = mysql_query(&quot;SELECT * FROM `sitemap`&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $fetch_data = mysql_fetch_array($query);<br />
<br />
echo &quot;&lt;url&gt;&quot;;<br />
echo &quot;&lt;loc&gt;&quot; . $fetch_data['url'] . &quot;&lt;/loc&gt;&quot;;<br />
echo &quot;&lt;changefreq&gt;always&lt;/changefreq&gt;&quot;;<br />
echo &quot;&lt;/url&gt;&quot;;<br />
<br />
?&gt;<br />
&lt;/urlset&gt;</pre><br />
Would something like this work? <br />
<br />
If it does i will be adjusting some of my scripts that i have to insert url whilst for example submitting a blog post so i wont have to manually add to db, but before i go anyfurther i wanted to maker sure would something like the above work.<br />
<br />
Thanks<br />
Genieuk</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>genieuk</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240234.html</guid>
		</item>
		<item>
			<title>how do i get expandable veritical menu  with stable  in navigation</title>
			<link>http://www.daniweb.com/forums/thread240175.html</link>
			<pubDate>Sat, 21 Nov 2009 06:31:52 GMT</pubDate>
			<description>hi all, i want  expandable veritical menu . when click on header it will another page with expandable state is same as previous one. any one having this script help me.......</description>
			<content:encoded><![CDATA[<div>hi all, i want  expandable veritical menu . when click on header it will another page with expandable state is same as previous one. any one having this script help 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/thread240175.html</guid>
		</item>
		<item>
			<title>internal mail</title>
			<link>http://www.daniweb.com/forums/thread240167.html</link>
			<pubDate>Sat, 21 Nov 2009 06:01:05 GMT</pubDate>
			<description><![CDATA[hello, 
  i want to build a internal mailing system in website. 
only registered users can send mails to each other. 
i have taken "compose mail","inbox","sent items","trash". 
i want to create database now. can you please tell me cloumn names for this]]></description>
			<content:encoded><![CDATA[<div>hello,<br />
  i want to build a internal mailing system in website.<br />
only registered users can send mails to each other.<br />
i have taken &quot;compose mail&quot;,&quot;inbox&quot;,&quot;sent items&quot;,&quot;trash&quot;.<br />
i want to create database now. can you please tell me cloumn names for this</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/thread240167.html</guid>
		</item>
		<item>
			<title>Strange php behaviour</title>
			<link>http://www.daniweb.com/forums/thread240151.html</link>
			<pubDate>Sat, 21 Nov 2009 03:53:56 GMT</pubDate>
			<description>I have a site that I am working on, and I got tired of having to change the root path every time I uploaded the script from the local to on-line server.  
 
I tested the following code on both local (XAMPP under Windows) and web (shared Linux hosted on GoDaddy) server, and both returned the proper...</description>
			<content:encoded><![CDATA[<div>I have a site that I am working on, and I got tired of having to change the root path every time I uploaded the script from the local to on-line server. <br />
<br />
I tested the following code on both local (XAMPP under Windows) and web (shared Linux hosted on GoDaddy) server, and both returned the proper path.<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;?php<br />
<br />
echo $_SERVER['DOCUMENT_ROOT'];<br />
<br />
?</pre><br />
So, I added a way for the script to detect and automatically use the appropriate server path. <br />
<br />
This required changing 3 include files: <br />
<span style="text-decoration:underline"><span style="font-weight:bold">In myapp.inc:</span></span><br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;?php<br />
require_once 'db.inc';<br />
require_once 'customHandler.inc';<br />
<br />
// Switch between local &amp; server<br />
// - local - //define(&quot;D_INSTALL_PATH&quot;, &quot;c:/xampp/htdocs&quot;);<br />
// - server - //define(&quot;D_INSTALL_PATH&quot;, &quot;/home/content/o/r/c/myapp/html&quot;);<br />
define(&quot;D_INSTALL_PATH&quot;, $_SERVER['DOCUMENT_ROOT']);</pre><br />
<br />
<span style="font-weight:bold"><span style="text-decoration:underline">In template.inc:</span></span><br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;?php<br />
<br />
// ITX template class extensions for the myapp<br />
// -- myappTemplate is a generic page<br />
// -- myappFormTemplate is a &lt;form&gt; page (and extends myappTemplate)<br />
<br />
require_once &quot;MDB2.php&quot;;<br />
// Switch between local &amp; server<br />
if (D_INSTALL_PATH == &quot;c:/xampp/htdocs&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; require_once &quot;C:/xampp/htdocs/PEAR/HTML/Template/ITX.php&quot;;<br />
else<br />
&nbsp; &nbsp; &nbsp; &nbsp; require_once &quot;HTML/Template/ITX.php&quot;;</pre>	<br />
<span style="text-decoration:underline"><span style="font-weight:bold">In db.inc:</span></span><br />
	<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; &lt;?php<br />
&nbsp; &nbsp; &nbsp; &nbsp; // Database parameters<br />
&nbsp; &nbsp; &nbsp; &nbsp; // Switch between local &amp; server<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (D_INSTALL_PATH == &quot;c:/xampp/htdocs&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $hostname = &quot;localhost&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $username = &quot;********&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $hostname = &quot;myapp.db.5158902.hostedresource.com&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $username = &quot;********&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }</pre><br />
****************************************<br />
<br />
When I run this on the on-line server, it runs quite well - with little lag time between pages.<br />
<br />
But, when I run this on the local server, it spins it's wheels for over a minute before giving me the requested page - or, on the one page where I request an MySQL query, I get the following errors...<br />
<br />
 <pre style="margin:20px; line-height:13px">Notice: Use of undefined constant D_INSTALL_PATH - assumed 'D_INSTALL_PATH' in C:\xampp\htdocs\myapp\includes\template.inc on line 9<br />
<br />
Notice: Use of undefined constant D_INSTALL_PATH - assumed 'D_INSTALL_PATH' in C:\xampp\htdocs\myapp\includes\db.inc on line 4</pre><br />
So what am I missing?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>OrcaSoul</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240151.html</guid>
		</item>
		<item>
			<title>Form Mailer</title>
			<link>http://www.daniweb.com/forums/thread240150.html</link>
			<pubDate>Sat, 21 Nov 2009 03:45:35 GMT</pubDate>
			<description>hi guys, need your help on this..any ideas is greatly appreciated..i got this form mailer from this site: 
http://www.dtheatre.com/scripts/sour...e/formmail.txt 
 
but how to configure in php the form mailer that if in my form got two options (like the code below) that if the user choose this...</description>
			<content:encoded><![CDATA[<div>hi guys, need your help on this..any ideas is greatly appreciated..i got this form mailer from this site:<br />
<a rel="nofollow" class="t" href="http://www.dtheatre.com/scripts/sour...e/formmail.txt" target="_blank">http://www.dtheatre.com/scripts/sour...e/formmail.txt</a><br />
<br />
but how to configure in php the form mailer that if in my form got two options (like the code below) that if the user choose this particular option then it will go to that particular e-mail. <br />
<br />
So basically, got two options on the site but will have two e-mails also but not both of them will receive the mail, when the user press the submit button then it will go only to that particular mail in which the user selected. <br />
<br />
please help... <br />
<br />
but this one works if data is sent to one e-mail<br />
here's the code on my form:<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;form name=&quot;form1&quot; method=&quot;post&quot; action=&quot;formmail.php&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;table width=&quot;90%&quot;&nbsp; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;th width=&quot;42%&quot; valign=&quot;middle&quot; scope=&quot;row&quot;&gt;&lt;div align=&quot;right&quot;&gt; Type &lt;/div&gt;&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td width=&quot;58%&quot;&gt;&lt;select name=&quot;Appt_Type&quot; size=&quot;1&quot; class=&quot;entries&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;Karate&quot;&gt;Karate&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;Judo&quot;&gt;Judo&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;&lt;/label&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;th valign=&quot;middle&quot; scope=&quot;row&quot;&gt;&lt;div align=&quot;right&quot;&gt;Preferred Schedule Date &lt;/div&gt;&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input name=&quot;P_Date&quot; type=&quot;text&quot; class=&quot;entries&quot; id=&quot;P_Date&quot;&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;th valign=&quot;middle&quot; scope=&quot;row&quot;&gt;&lt;div align=&quot;right&quot;&gt;Preferred Schedule Time &lt;/div&gt;&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input name=&quot;P_Time&quot; type=&quot;text&quot; class=&quot;entries&quot; id=&quot;P_Time&quot;&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;th valign=&quot;middle&quot; scope=&quot;row&quot;&gt;&lt;div align=&quot;right&quot;&gt;Preferred Location &lt;/div&gt;&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;select name=&quot;Location&quot; class=&quot;entries&quot; id=&quot;Location&quot;&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;Kar_Vill&quot;&gt;The Karate Village&lt;/option&gt; 'problem here if the user choose this<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;  'then it will go to preferred e-mail<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;Judo_Mount&quot;&gt;The Judo Mountain&lt;/option&gt;'if the user choose this option<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt;&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  'then will go to particular e-mail&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;th valign=&quot;middle&quot; scope=&quot;row&quot;&gt;&lt;div align=&quot;right&quot;&gt;Name&lt;/div&gt;&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input name=&quot;Name&quot; type=&quot;text&quot; class=&quot;entries&quot; id=&quot;Name&quot;&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;th valign=&quot;middle&quot; scope=&quot;row&quot;&gt;&lt;div align=&quot;right&quot;&gt;Tel&lt;/div&gt;&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input name=&quot;Tel&quot; type=&quot;text&quot; class=&quot;entries&quot; id=&quot;Tel&quot;&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;th valign=&quot;middle&quot; scope=&quot;row&quot;&gt;&lt;div align=&quot;right&quot;&gt;Email&lt;/div&gt;&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input name=&quot;Email&quot; type=&quot;text&quot; class=&quot;entries&quot; id=&quot;Email&quot;&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;th valign=&quot;middle&quot; scope=&quot;row&quot;&gt;&lt;div align=&quot;right&quot;&gt;Member No. &lt;/div&gt;&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input name=&quot;Mem_No&quot; type=&quot;text&quot; class=&quot;entries&quot; id=&quot;Mem_No&quot;&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;th valign=&quot;middle&quot; scope=&quot;row&quot;&gt;&lt;div align=&quot;right&quot;&gt;&lt;/div&gt;&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input name=&quot;Submit&quot; type=&quot;submit&quot; class=&quot;entries&quot; value=&quot;Book Now&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input name=&quot;Reset&quot; type=&quot;reset&quot; class=&quot;entries&quot; value=&quot;Reset&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;subject&quot; value=&quot;The Karate_Appt&quot; /&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;recipient&quot; value=&quot;karate@karatexyz.com.ph&quot; /&gt; 'problem here I want to put another e-mail<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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  'depending on what option the user choose<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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  'from above selection<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;required&quot; value=&quot;Appt_Type,Pref_Date,Pref_Time,Location,Name,Tel,Email&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;missing_fields_redirect&quot; value=&quot;http://www.masterxyz.com/error.html&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;redirect&quot; value=&quot;http://www.masterxyz.com/thankyou.html&quot; /&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/form&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/table&gt;</pre><br />
getting the form's data is done by a function by php on the form mailer that i found on the link given above.. <br />
<br />
can anyone help on how to do  if there's two e-mail on the form..<br />
below is the php code of the form's mailer to get the data..<br />
<br />
thanks..<br />
 <pre style="margin:20px; line-height:13px">// This function takes the sorts, excludes certain keys and <br />
// makes a pretty content string.<br />
function parse_form($array, $sort = &quot;&quot;) {<br />
&nbsp;  // build reserved keyword array<br />
&nbsp;  $reserved_keys[] = &quot;MAX_FILE_SIZE&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;required&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;redirect&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;require&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;path_to_file&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;recipient&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;subject&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;sort&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;style_sheet&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;bgcolor&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;text_color&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;link_color&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;vlink_color&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;alink_color&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;title&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;missing_fields_redirect&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;env_report&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;submit&quot;;<br />
&nbsp;  if (count($array)) {<br />
&nbsp; &nbsp; &nbsp; if (is_array($sort)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp;  foreach ($sort as $field) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $reserved_violation = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for ($ri=0; $ri&lt;count($reserved_keys); $ri++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if ($array[$field] == $reserved_keys[$ri]) $reserved_violation = 1;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($reserved_violation != 1) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if (is_array($array[$field])) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for ($z=0;$z&lt;count($array[$field]);$z++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $content .= $field.SEPARATOR.$array[$field][$z].NEWLINE;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  } else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $content .= $field.SEPARATOR.$array[$field].NEWLINE;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; while (list($key, $val) = each($array)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp;  $reserved_violation = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  for ($ri=0; $ri&lt;count($reserved_keys); $ri++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($key == $reserved_keys[$ri]) $reserved_violation = 1;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;  for ($ri=0; $ri&lt;count($sort); $ri++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($key == $sort[$ri]) $reserved_violation = 1;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;  // prepare content<br />
&nbsp; &nbsp; &nbsp; &nbsp;  if ($reserved_violation != 1) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (is_array($val)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  for ($z=0;$z&lt;count($val);$z++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $content .= $key.SEPARATOR.$val[$z].NEWLINE;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $content .= $key.SEPARATOR.$val.NEWLINE;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp;  }<br />
&nbsp;  return $content;<br />
}<br />
<br />
// mail the content we figure out in the following steps<br />
function mail_it($content, $subject, $email, $recipient) {<br />
&nbsp;  global $attachment_chunk, $attachment_name, $attachment_type, $attachment_sent, $bcc;<br />
<br />
&nbsp;  $ob = &quot;----=_OuterBoundary_000&quot;;<br />
&nbsp;  $ib = &quot;----=_InnerBoundery_001&quot;;<br />
&nbsp;  <br />
&nbsp;  $headers&nbsp; = &quot;MIME-Version: 1.0\r\n&quot;; <br />
&nbsp;  $headers .= &quot;From: &quot;.$email.&quot;\n&quot;; <br />
&nbsp;  $headers .= &quot;To: &quot;.$recipient.&quot;\n&quot;; <br />
&nbsp;  $headers .= &quot;Reply-To: &quot;.$email.&quot;\n&quot;;<br />
&nbsp;  if ($bcc) $headers .= &quot;Bcc: &quot;.$bcc.&quot;\n&quot;; <br />
&nbsp;  $headers .= &quot;X-Priority: 1\n&quot;; <br />
&nbsp;  $headers .= &quot;X-Mailer: DT Formmail&quot;.VERSION.&quot;\n&quot;; <br />
&nbsp;  $headers .= &quot;Content-Type: multipart/mixed;\n\tboundary=\&quot;&quot;.$ob.&quot;\&quot;\n&quot;;<br />
&nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp;  $message&nbsp; = &quot;This is a multi-part message in MIME format.\n&quot;;<br />
&nbsp;  $message .= &quot;\n--&quot;.$ob.&quot;\n&quot;;<br />
&nbsp;  $message .= &quot;Content-Type: multipart/alternative;\n\tboundary=\&quot;&quot;.$ib.&quot;\&quot;\n\n&quot;;<br />
&nbsp;  $message .= &quot;\n--&quot;.$ib.&quot;\n&quot;;<br />
&nbsp;  $message .= &quot;Content-Type: text/plain;\n\tcharset=\&quot;iso-8859-1\&quot;\n&quot;;<br />
&nbsp;  $message .= &quot;Content-Transfer-Encoding: quoted-printable\n\n&quot;;<br />
&nbsp;  $message .= $content.&quot;\n\n&quot;;<br />
&nbsp;  $message .= &quot;\n--&quot;.$ib.&quot;--\n&quot;;<br />
&nbsp;  if ($attachment_name &amp;&amp; !$attachment_sent) {<br />
&nbsp; &nbsp; &nbsp; $message .= &quot;\n--&quot;.$ob.&quot;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; $message .= &quot;Content-Type: $attachment_type;\n\tname=\&quot;&quot;.$attachment_name.&quot;\&quot;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; $message .= &quot;Content-Transfer-Encoding: base64\n&quot;;<br />
&nbsp; &nbsp; &nbsp; $message .= &quot;Content-Disposition: attachment;\n\tfilename=\&quot;&quot;.$attachment_name.&quot;\&quot;\n\n&quot;;<br />
&nbsp; &nbsp; &nbsp; $message .= $attachment_chunk;<br />
&nbsp; &nbsp; &nbsp; $message .= &quot;\n\n&quot;;<br />
&nbsp; &nbsp; &nbsp; $attachment_sent = 1;<br />
&nbsp;  }<br />
&nbsp;  $message .= &quot;\n--&quot;.$ob.&quot;--\n&quot;;<br />
&nbsp;  <br />
&nbsp;  mail($recipient, $subject, $message, $headers);<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>cguan_77</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240150.html</guid>
		</item>
		<item>
			<title>Crawler</title>
			<link>http://www.daniweb.com/forums/thread240128.html</link>
			<pubDate>Sat, 21 Nov 2009 00:56:00 GMT</pubDate>
			<description>hey, so for my first project in my class, I need to build a crawler 
this is what I need it to do: 
 
- crawl and follow all urls on a domain (not go out into other websites) 
- get the title of the page 
- get the meta tag keywords of the page 
- get the meta tag description of the page 
- get the...</description>
			<content:encoded><![CDATA[<div>hey, so for my first project in my class, I need to build a crawler<br />
this is what I need it to do:<br />
<br />
- crawl and follow all urls on a domain (not go out into other websites)<br />
- get the title of the page<br />
- get the meta tag keywords of the page<br />
- get the meta tag description of the page<br />
- get the url of the page<br />
- store all of this information in a MySQL database<br />
- then follow the url's on the page and do the same thing on those pages<br />
<br />
- if possible, I would also like to get the full index of the page and store it into the MySQL database as well (we are going to make a script for our next project to search for keywords of what we crawled, but I can do that myself after I have the data).<br />
<br />
I'm not planning to create a public website or anything, just something for private testing. if you cannot help with this but you know of other scripts with similar features to use as reference, that would be huge help as well.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>taminder</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240128.html</guid>
		</item>
		<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>
	</channel>
</rss>
