<?xml version="1.0" encoding="utf-8"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>DaniWeb IT Discussion Community - PHP</title>
		<link>http://www.daniweb.com/forums/</link>
		<description><![CDATA[Our PHP forum is the place for Q&A-style discussions related to this popular development language.  LAMP programmers will appreciate our separate Apache forum, within the Networking sub-category of the Hardware and Software category, and MySQL forum, also within the Web Development category.]]></description>
		<language>en-US</language>
		<lastBuildDate>Sat, 07 Nov 2009 21:28:03 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>PHP and webcam</title>
			<link>http://www.daniweb.com/forums/thread236845.html</link>
			<pubDate>Sat, 07 Nov 2009 18:57:56 GMT</pubDate>
			<description><![CDATA[is there any way that php can show a person's webcam and their voice?]]></description>
			<content:encoded><![CDATA[<div>is there any way that php can show a person's webcam and their voice?</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/thread236845.html</guid>
		</item>
		<item>
			<title>php decode hacked my sites. Is it Virus</title>
			<link>http://www.daniweb.com/forums/thread236781.html</link>
			<pubDate>Sat, 07 Nov 2009 13:10:30 GMT</pubDate>
			<description><![CDATA[I Found a problem on my site and when i compare the files on the server with my local files i found that every page (*.js or *.php) has this line on it 
<?php /**/eval(base64_decode('aWYoZnVuY3Rpb25fZXhpc3RzKC 
or a javascript line 
 
so i knew that my site has been hacked.. 
so 
1 - i want to know...]]></description>
			<content:encoded><![CDATA[<div>I Found a problem on my site and when i compare the files on the server with my local files i found that every page (*.js or *.php) has this line on it<br />
&lt;?php /**/eval(base64_decode('aWYoZnVuY3Rpb25fZXhpc3RzKC<br />
or a javascript line<br />
<br />
so i knew that my site has been hacked..<br />
so<br />
1 - i want to know how to prevent anyone to hack my site?<br />
i made on every textfield or textarea on posting or getting it the htmlspecialcharacter($_POST['name'])<br />
<br />
is this true? and can it help me?<br />
2- how did anyone hack my site??<br />
3- how i can know what does this code mean???<br />
<br />
Help me please.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>hapizi84</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236781.html</guid>
		</item>
		<item>
			<title>complex sql database search using php code</title>
			<link>http://www.daniweb.com/forums/thread236773.html</link>
			<pubDate>Sat, 07 Nov 2009 12:32:52 GMT</pubDate>
			<description>Hi, I am trying to create a search function on an html page. I have written the page and part of a php page.  
 
I trying to get help with the search as there are 3 criteria; 
 
So far I have made this search form; 
 
(textbox name=searchterm) *Brand*: 
(dropdown name=type) *Type*: (3 options;...</description>
			<content:encoded><![CDATA[<div>Hi, I am trying to create a search function on an html page. I have written the page and part of a php page. <br />
<br />
I trying to get help with the search as there are 3 criteria;<br />
<br />
So far I have made this search form;<br />
<br />
(textbox name=searchterm) <span style="font-weight:bold">Brand</span>:<br />
(dropdown name=type) <span style="font-weight:bold">Type</span>: (3 options; 'PC', 'LAPTOP', 'PC and LAPTOP')<br />
(dropdown name=on0) <span style="font-weight:bold">Online or Highstreet</span>: (2 options; 'ONLINE', 'HIGHSTREET')<br />
(textbox name=postcode) <span style="font-weight:bold">postcode</span>: (this is hidden until the user chooses 'HIGHSTREET' on 'on0'<br />
<br />
so I am looking for the php code for the 'type' choice if the user says 'PC' then it will search for the 'Brand' in field 'PCBrand' but if the user chooses 'LAPTOP' then it searches for the 'Brand' in field 'LBrand' and also if they make choice 'PC and LAPTOP' then it searches for 'Brand' in both fields 'PCBrand' and 'LBrand'<br />
<br />
To add to this I am trying to find how to also query the 'Online or highstreet' by selecting only records where field 'ONLINEHIGHSTREET' equals 'ONLINE' or 'HIGHSTREET' and if 'HIGHSTREET' then take first 2 letters of 'postcode' and search in field 'postcode_code'<br />
<br />
<br />
Anyones advice would be very much appreciated</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>mattyp791</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236773.html</guid>
		</item>
		<item>
			<title>radiobutton with textarea</title>
			<link>http://www.daniweb.com/forums/thread236767.html</link>
			<pubDate>Sat, 07 Nov 2009 11:53:06 GMT</pubDate>
			<description>hi to all.  i have two radio buttons with one name. and also have one text area box.  Depending on first radio button is chosen It will allow 2  entries(Enter key words Separate by comers) per line, and at the same second radio button chosen it will allow 4 entries(Enter key words Separate by...</description>
			<content:encoded><![CDATA[<div>hi to all.  i have two radio buttons with one name. and also have one text area box.  Depending on first radio button is chosen It will allow 2  entries(Enter key words Separate by comers) per line, and at the same second radio button chosen it will allow 4 entries(Enter key words Separate by comers per line). how to do. give an idea.</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/thread236767.html</guid>
		</item>
		<item>
			<title>About uploading file</title>
			<link>http://www.daniweb.com/forums/thread236762.html</link>
			<pubDate>Sat, 07 Nov 2009 10:47:56 GMT</pubDate>
			<description>Hi every one, 
 
i m in a bit trouble as i have bought a new .co.cc domain name ,but not able to upload my files on that .can anyone tell me how to upload  file on that  and how to use use phpmyadmin.do i require ftp tool.</description>
			<content:encoded><![CDATA[<div>Hi every one,<br />
<br />
i m in a bit trouble as i have bought a new .co.cc domain name ,but not able to upload my files on that .can anyone tell me how to upload  file on that  and how to use use phpmyadmin.do i require ftp tool.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>imhunk</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236762.html</guid>
		</item>
		<item>
			<title>Disable address bar in mozilla, chrome???</title>
			<link>http://www.daniweb.com/forums/thread236758.html</link>
			<pubDate>Sat, 07 Nov 2009 10:12:35 GMT</pubDate>
			<description><![CDATA[hi frnd... 
 
i want to remove/disable  ADDRESS BAR  from the new pop up window... 
 
now i m using this code....its working only  for IE6..... 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>hi frnd...<br />
<br />
i want to remove/disable  ADDRESS BAR  from the new pop up window...<br />
<br />
now i m using this code....its working only  for IE6.....<br />
<br />
 <pre style="margin:20px; line-height:13px">window.open(url ,'title',<br />
'location=1,menubar=no,resizable=no,scrollbars=no,status=no ,toolbar=no,width=300,height=200')</pre><br />
<br />
Also i want to remove expand button in browser...plz tell me how can i do it...<br />
<br />
Thanks in advance...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>ahmksssv</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236758.html</guid>
		</item>
		<item>
			<title>To restrict users to choose date from date picker only</title>
			<link>http://www.daniweb.com/forums/thread236731.html</link>
			<pubDate>Sat, 07 Nov 2009 08:34:46 GMT</pubDate>
			<description>Hi all. 
 
I have two date input fields. Is there any way to restrict date input from only date picker (users are not allowed to input date through keyboard). The reason I want it this way is to prevent users from entering invalid dates. 
 
Any help provided is greatly appreciated. Thanks in...</description>
			<content:encoded><![CDATA[<div>Hi all.<br />
<br />
I have two date input fields. Is there any way to restrict date input from only date picker (users are not allowed to input date through keyboard). The reason I want it this way is to prevent users from entering invalid dates.<br />
<br />
Any help provided is greatly appreciated. Thanks in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>lcyew</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236731.html</guid>
		</item>
		<item>
			<title>Forget Password in PHP</title>
			<link>http://www.daniweb.com/forums/thread236728.html</link>
			<pubDate>Sat, 07 Nov 2009 08:10:11 GMT</pubDate>
			<description>Hello Guys  
 
I am working on a website 
 
I am not getting the forget password  
 
can u please help me in solving problem please 
 
 
Thanks in advance</description>
			<content:encoded><![CDATA[<div>Hello Guys <br />
<br />
I am working on a website<br />
<br />
I am not getting the forget password <br />
<br />
can u please help me in solving problem please<br />
<br />
<br />
Thanks in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>knrakesh</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236728.html</guid>
		</item>
		<item>
			<title>png image croping problem</title>
			<link>http://www.daniweb.com/forums/thread236727.html</link>
			<pubDate>Sat, 07 Nov 2009 08:02:16 GMT</pubDate>
			<description><![CDATA[hi all. i want to crop png  image. 
when i am croping the png image i got "Fatal error: imagepng() [<a href='function.imagepng'>function.imagepng</a>]: gd-png: fatal libpng error: zlib error in C:\wamp\www\taslan\admin\products.php on line 120" error message. at line no 120 shows...]]></description>
			<content:encoded><![CDATA[<div>hi all. i want to crop png  image.<br />
when i am croping the png image i got &quot;Fatal error: imagepng() [&lt;a href='function.imagepng'&gt;function.imagepng&lt;/a&gt;]: gd-png: fatal libpng error: zlib error in C:\wamp\www\taslan\admin\products.php on line 120&quot; error message. at line no 120 shows imagepng($bgim_new,$bgth_file_name,100); this function</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/thread236727.html</guid>
		</item>
		<item>
			<title>Retrieve all $_POST values...</title>
			<link>http://www.daniweb.com/forums/thread236719.html</link>
			<pubDate>Sat, 07 Nov 2009 06:50:32 GMT</pubDate>
			<description><![CDATA[I've been writing PHP for about two years now, nothing complex, mostly just HTML form processing scripts. 
 
My latest project for a customer has over 40 items in the form.  It's a dynamic form using some JavaScript and PHP that displays certain parts of the form based on other options selected. 
...]]></description>
			<content:encoded><![CDATA[<div>I've been writing PHP for about two years now, nothing complex, mostly just HTML form processing scripts.<br />
<br />
My latest project for a customer has over 40 items in the form.  It's a dynamic form using some JavaScript and PHP that displays certain parts of the form based on other options selected.<br />
<br />
My question is, due to the varying numbers of $_POST results that I may get, is there a more efficient way of getting the $_POST values?<br />
<br />
I've done a lot of searching here and on Google, but so far I've come up short.  This is the closest thing that I've found:<br />
<br />
 <pre style="margin:20px; line-height:13px">foreach($_POST as $name =&gt; $value) {<br />
&nbsp; &nbsp; print &quot;$name : $value&lt;br&gt;&quot;;<br />
}</pre><br />
Now, I wouldn't be printing the name and value, but would modifying this actually work?  Does anyone know of a more efficient way?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>Hummdis</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236719.html</guid>
		</item>
		<item>
			<title>PHP to png, png to pdf</title>
			<link>http://www.daniweb.com/forums/thread236697.html</link>
			<pubDate>Sat, 07 Nov 2009 03:40:47 GMT</pubDate>
			<description><![CDATA[Hi All, 
I'm looking for a technique how to save image generated from php to png/jpg/gif, save the image to the server. Later, I want to include the image file to a pdf file generated from a php code. 
 
I'm referring the image generated php from HERE...]]></description>
			<content:encoded><![CDATA[<div>Hi All,<br />
I'm looking for a technique how to save image generated from php to png/jpg/gif, save the image to the server. Later, I want to include the image file to a pdf file generated from a php code.<br />
<br />
I'm referring the image generated php from <a rel="nofollow" class="t" href="http://www.daniweb.com/forums/thread199886.html" target="_blank">HERE</a></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>waknash</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236697.html</guid>
		</item>
		<item>
			<title>Stamp text on an image.</title>
			<link>http://www.daniweb.com/forums/thread236668.html</link>
			<pubDate>Sat, 07 Nov 2009 00:08:39 GMT</pubDate>
			<description>I have images I would like to serve that will need individual information posted on them. Just a word or two. The information will be pulled from our database. The text will depend on the url that is entered. 
 
We tried just a simple echo but when you view just the image by right click the text...</description>
			<content:encoded><![CDATA[<div>I have images I would like to serve that will need individual information posted on them. Just a word or two. The information will be pulled from our database. The text will depend on the url that is entered.<br />
<br />
We tried just a simple echo but when you view just the image by right click the text disappears. And we want the text to stay on the image or dynamically create the images on the fly with the text when called.<br />
<br />
Does anyone have any idea how to accomplish this, Or does anyone know of a script that can do this.<br />
<br />
Thank you.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>valonesal</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236668.html</guid>
		</item>
		<item>
			<title>Warning: mysql_connect()</title>
			<link>http://www.daniweb.com/forums/thread236665.html</link>
			<pubDate>Fri, 06 Nov 2009 23:51:52 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;?<br />
$conn = mysql_connect(&quot;localhost&quot;, &quot;your_username&quot;,&quot;your_password&quot;) or die(mysql_error());<br />
mysql_select_db('your_database', $conn) or die(mysql_error());<br />
?&gt;</pre><br />
this is the code i have on database.php, when i run register page i get a erro.<br />
<br />
<div style="margin:20px; margin-top:5px; "> <div class="smallfont" style="margin-bottom:2px">Quote:</div> <table cellpadding="5" cellspacing="0" border="0" width="100%"> <tr> <td class="alt2"> <hr />  Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'your_username'@'localhost' (using password: YES) in /home/a4595523/public_html/database.php on line 2<br />
Access denied for user 'your_username'@'localhost' (using password: YES)  <hr /> </td> </tr> </table> </div>what should i do / change?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>Espanhol</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236665.html</guid>
		</item>
		<item>
			<title>connecting with mysqli</title>
			<link>http://www.daniweb.com/forums/thread236663.html</link>
			<pubDate>Fri, 06 Nov 2009 23:31:59 GMT</pubDate>
			<description><![CDATA[This script works with require_once and produces warnings for line 6 when I try to use $mysqli = new... (which I've commented out). Please help me with this script: 
 
[codebox]<?php 
 
require_once "connect_to_mysql.php"; 
 
//$mysqli = new mysqli("localhost","user","pw","db"); 
 
$result =...]]></description>
			<content:encoded><![CDATA[<div>This script works with require_once and produces warnings for line 6 when I try to use $mysqli = new... (which I've commented out). Please help me with this script:<br />
<br />
[codebox]&lt;?php<br />
<br />
require_once &quot;connect_to_mysql.php&quot;;<br />
<br />
//$mysqli = new mysqli(&quot;localhost&quot;,&quot;user&quot;,&quot;pw&quot;,&quot;db&quot;);<br />
<br />
$result = mysql_query(&quot;SELECT * FROM example&quot;)<br />
<br />
or die(mysql_error());<br />
<br />
echo &quot;&lt;table border='1'&gt;&quot;;<br />
<br />
echo &quot;&lt;tr&gt; &lt;th&gt;Name&lt;/th&gt; &lt;th&gt;Age&lt;/th&gt; &lt;/tr&gt;&quot;;<br />
<br />
while($row = mysql_fetch_array( $result )) {<br />
<br />
echo &quot;&lt;tr&gt;&lt;td&gt;&quot;;<br />
<br />
echo $row['name'];<br />
<br />
echo &quot;&lt;/td&gt;&lt;td&gt;&quot;;<br />
<br />
echo $row['age'];<br />
<br />
echo &quot;&lt;/td&gt;&lt;/tr&gt;&quot;;<br />
<br />
}<br />
<br />
echo &quot;&lt;/table&gt;&quot;;<br />
<br />
//mysqli_close($mysqli);<br />
<br />
?&gt; [/codebox]<br />
<br />
Thank-you</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>niche1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236663.html</guid>
		</item>
		<item>
			<title>Please Help Me Fix My PHP Register Form</title>
			<link>http://www.daniweb.com/forums/thread236636.html</link>
			<pubDate>Fri, 06 Nov 2009 20:44:57 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 />
if(isset($_POST['register']))<br />
{<br />
$username = $_POST[&quot;username&quot;];<br />
$password = $_POST[&quot;password&quot;];<br />
$email = $_POST[&quot;email&quot;];<br />
$conf_pass = $_POST[&quot;confirm&quot;];<br />
$error = false;<br />
<br />
$connect = mysql_connect(&quot;localhost&quot;, &quot;stickmi1_data&quot;, &quot;electricCompany&quot;);<br />
$database = mysql_select_db(&quot;account&quot;, $connect);<br />
<br />
$usernameCheck = mysql_query(&quot;SELECT username FROM users WHERE username = '$username'&quot;);<br />
&nbsp;<br />
// Registration Form Validation Script<br />
<br />
if(!$username || !$password || !$email || !$conf_pass)<br />
{<br />
$error = true;<br />
$errorMessage = &quot;Please fill in any missing fields before continuing!&quot;;<br />
}<br />
else if($password != $conf_pass);<br />
{<br />
$error = true;<br />
$errorMessage = &quot;Your password and confirmation password don't match!&quot;;<br />
}<br />
if($usernameCheck &gt; 0)<br />
{<br />
$error = true;<br />
$errorMessage = &quot;The requested username is already in use, try another!&quot;;<br />
}<br />
if($error == false)<br />
{<br />
$password = md5($password);<br />
mysql_query(&quot;INSERT INTO users(username, password, email) VALUES($username, $password, $email)&quot;,$connect);<br />
}<br />
}<br />
?&gt;<br />
&lt;form name=&quot;register_form&quot; method=&quot;post&quot;&gt;<br />
&lt;table&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;Username: &lt;/td&gt;<br />
&lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;username&quot; /&gt;&lt;/td&gt;<br />
&lt;/tr&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;tr&gt;<br />
&lt;td&gt;Confirm Pass: &lt;/td&gt;<br />
&lt;td&gt;&lt;input type=&quot;password&quot; name=&quot;conf_pass&quot; /&gt;&lt;/td&gt;<br />
&lt;/tr&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;tr&gt;<br />
&lt;td&gt;&lt;input type=&quot;submit&quot; name=&quot;register&quot; value=&quot;Register&quot; /&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/form&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>Chosen13</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236636.html</guid>
		</item>
		<item>
			<title>calling different images from one php file</title>
			<link>http://www.daniweb.com/forums/thread236622.html</link>
			<pubDate>Fri, 06 Nov 2009 18:58:25 GMT</pubDate>
			<description><![CDATA[Ok so I wrote a little script that allows me to call information from my database. Basicly this. 
 
<table> 
<tr> 
<td id="seal"><?php 
include("sql.php"); 
echo "$websiteaddress"; 
?></td></tr> 
</table>]]></description>
			<content:encoded><![CDATA[<div>Ok so I wrote a little script that allows me to call information from my database. Basicly this.<br />
<br />
&lt;table&gt;<br />
&lt;tr&gt;<br />
&lt;td id=&quot;seal&quot;&gt;&lt;?php<br />
include(&quot;sql.php&quot;);<br />
echo &quot;$websiteaddress&quot;;<br />
?&gt;&lt;/td&gt;&lt;/tr&gt;<br />
&lt;/table&gt;<br />
<br />
All this does is connects to the sql file echoing the users website address thus I type in mywebsite.com/index.php?name=aname and it returns their name now it also connects to a css file to display an image.<br />
<br />
What I want to be able to do is display a different image depending on the url such as mywebsite.com/index.php?name=aname=red or mywebsite.com/index.php?name=aname=blue and it displays a red or blue image depending.<br />
<br />
I thought about trying else elseif but can seem to get it to work.<br />
<br />
How would I go about doing this? Any help would be appreciated. Please remember I am still learning so take it easy on me and if possible post the code for examples so I can try it and better understand the idea and concept.<br />
<br />
Thank you.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>valonesal</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236622.html</guid>
		</item>
		<item>
			<title>upload</title>
			<link>http://www.daniweb.com/forums/thread236580.html</link>
			<pubDate>Fri, 06 Nov 2009 14:46:01 GMT</pubDate>
			<description>how can we upload file using php?</description>
			<content:encoded><![CDATA[<div>how can we upload file using php?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>pankaj_sengar</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236580.html</guid>
		</item>
		<item>
			<title>radio button validation</title>
			<link>http://www.daniweb.com/forums/thread236579.html</link>
			<pubDate>Fri, 06 Nov 2009 14:39:33 GMT</pubDate>
			<description>we have two radio buttons with same name. when we check radiobutton no.of imagefile boxes appear. 
for example i have two radio buttons. if i check 1 radio button appear 5 image upload fields. now selects another radio button selects then appear only 10 image upload  field. anybody help.</description>
			<content:encoded><![CDATA[<div>we have two radio buttons with same name. when we check radiobutton no.of imagefile boxes appear.<br />
for example i have two radio buttons. if i check 1 radio button appear 5 image upload fields. now selects another radio button selects then appear only 10 image upload  field. anybody help.</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/thread236579.html</guid>
		</item>
		<item>
			<title>Paypal is sending message invalid or bad order ??</title>
			<link>http://www.daniweb.com/forums/thread236565.html</link>
			<pubDate>Fri, 06 Nov 2009 13:43:34 GMT</pubDate>
			<description><![CDATA[Hi All, 
 
I am working on a website in which paypal is working very well. But when paypal complete the transaction it sends some "Inavalid or Bad order" Like this type of mail . Means customer is getting such a mail I am showing here: 
 
 
---Quote--- 
Subject: [Wed Nov 4 9:27:48 CST 2009]...]]></description>
			<content:encoded><![CDATA[<div>Hi All,<br />
<br />
I am working on a website in which paypal is working very well. But when paypal complete the transaction it sends some &quot;Inavalid or Bad order&quot; Like this type of mail . Means customer is getting such a mail I am showing here:<br />
<br />
<div style="margin:20px; margin-top:5px; "> <div class="smallfont" style="margin-bottom:2px">Quote:</div> <table cellpadding="5" cellspacing="0" border="0" width="100%"> <tr> <td class="alt2"> <hr />  Subject: [Wed Nov 4 9:27:48 CST 2009] paypay_ipn error<br />
<br />
<br />
Bad order (PayPal says it's invalid)<br />
<br />
The following input was received from (and sent back to) PayPal:<br />
<br />
<br />
<br />
<a rel="nofollow" class="t" href="http://www.paypal.com/cg...mp;cmd=_notify-validate" target="_blank">http://www.paypal.com/cg...mp;cmd=_notify-validate</a> <br />
<br />
HTTP/1.1 200 OK<br />
Date: Wed, 04 Nov 2009 15:27:48 GMT<br />
Server: Apache<br />
Set-Cookie:<br />
cwrClyrK4LoCV1fydGbAxiNL6iG=zkAG9DzlTtxANy3h_B1q13kLR2BfW6uyP4yUh89DStvXnAoI<br />
nHuRjB3bJomOgnl7lctZDk3TU_L78oQzmBN1i2f6hlIVsNJZ7j38vG6aANpJjxk0YtjAkjDmzvah<br />
g-B6CYEMDm%7c6XrVSqq9mHKKZp1llJe43TyFG6hR3_oAULg7WvwHSIkYu7P8dAy4CVJlh64LF2d<br />
MBLJtPG%7cYSivdzeYUK6_tAegQSUXrffHuz7ykpTY3vkOy-aCGpUtzkqyzlOWrLSvV54CH43wiK<br />
YGI0%7c1257348468; domain=.paypal.com &lt;<a rel="nofollow" class="t" href="http://paypal.com/" target="_blank">http://paypal.com/</a> &gt; ; path=/<br />
Set-Cookie: cookie_check=yes; expires=Sat, 02-Nov-2019 15:27:48 GMT;<br />
domain=.paypal.com; path=/<br />
Set-Cookie: navcmd=_notify-validate; domain=.paypal.com; path=/<br />
Set-Cookie: navlns=0; expires=Tue, 30-Oct-2029 15:27:48 GMT;<br />
domain=.paypal.com; path=/<br />
Vary: Accept-Encoding<br />
Transfer-Encoding: chunked<br />
Content-Type: text/html; charset=UTF-8<br />
<br />
INVALID <br />  <hr /> </td> </tr> </table> </div>And for this integration part i am using this code in integration. I am showing here :<br />
 <pre style="margin:20px; line-height:13px">&lt;form name=&quot;_xclick&quot; action=&quot;https://www.paypal.com/cgi-bin/webscr&quot; method=&quot;post&quot;&gt;<br />
<br />
&nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;cmd&quot; value=&quot;_xclick&quot;&gt;<br />
<br />
&nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;business&quot; value=&quot;&lt;?=$pay_email;?&gt;&quot;&gt;<br />
<br />
&nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;item_name&quot; value=&quot;&lt;?=$itm_name;?&gt;&quot;&gt;<br />
<br />
&nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;item_number&quot; value=&quot;&lt;?=$itm_no;?&gt;&quot;&gt;<br />
<br />
&nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;amount&quot; value=&quot;&lt;?=$pp_price;?&gt;&quot;&gt;<br />
<br />
&nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;custom&quot; value=&quot;&lt;? echo $custom_id; ?&gt;&quot;&gt;<br />
<br />
&nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;no_note&quot; value=&quot;1&quot;&gt;<br />
<br />
&nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;currency_code&quot; value=&quot;&lt;?=$pp_cur;?&gt;&quot;&gt;<br />
<br />
&nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;return&quot; value=&quot;http://www.mysite.com/events/pplreturn.php&quot;&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;rm&quot; value=&quot;2&quot;&gt;<br />
<br />
&nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;cbt&quot; value=&quot;Return to &lt;?=$site_name; ?&gt;&quot;&gt;<br />
<br />
&lt;/form&gt;</pre><br />
So I am not understanding the why my customer or Paypal is sending this mail . Please help me to solve this issue . This is so urgent for me very soon.<br />
<br />
Is it possible that we have to put in an IPN? But how ? and where I can put this ??<br />
Please help me.<br />
Thanks,<br />
Kparas</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>Kparas</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236565.html</guid>
		</item>
		<item>
			<title>create playlist for audio player ?</title>
			<link>http://www.daniweb.com/forums/thread236560.html</link>
			<pubDate>Fri, 06 Nov 2009 12:43:54 GMT</pubDate>
			<description>Hi, 
 
now i m working for musical website... 
 
here my problem is how can i create a playlist and how to pass the selected  songs to my player.... 
 
 
i dont have any idea regarding this.. plz give me JAVASCRIPT, php  code ... 
 
plz give me some suggestions...sorry for asking code..but i m new...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
now i m working for musical website...<br />
<br />
here my problem is how can i create a playlist and how to pass the selected  songs to my player....<br />
<br />
<br />
i dont have any idea regarding this.. plz give me JAVASCRIPT, php  code ...<br />
<br />
plz give me some suggestions...sorry for asking code..but i m new to this type of project....<br />
<br />
Thanks..</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>ahmksssv</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236560.html</guid>
		</item>
		<item>
			<title>Php5.3 + soap</title>
			<link>http://www.daniweb.com/forums/thread236554.html</link>
			<pubDate>Fri, 06 Nov 2009 12:04:18 GMT</pubDate>
			<description><![CDATA[Hi, 
 
nusoap doesn't support php 5.3 therefore, It is not usable for me. 
Is there any SOAP+PHP example for me to be run on my localhost rather than pointing/accessing wsdl files of other websites? 
 
Everything should be stored in my localhost.  
 
Thanks]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
nusoap doesn't support php 5.3 therefore, It is not usable for me.<br />
Is there any SOAP+PHP example for me to be run on my localhost rather than pointing/accessing wsdl files of other websites?<br />
<br />
Everything should be stored in my localhost. <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/thread236554.html</guid>
		</item>
		<item>
			<title>.png image files upload</title>
			<link>http://www.daniweb.com/forums/thread236546.html</link>
			<pubDate>Fri, 06 Nov 2009 11:02:58 GMT</pubDate>
			<description>i have to crop images. but i have code to crop images. but .png files are not cropping that code. i have to crop .png image files. plz any one help me.</description>
			<content:encoded><![CDATA[<div>i have to crop images. but i have code to crop images. but .png files are not cropping that code. i have to crop .png image files. plz any one help me.</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/thread236546.html</guid>
		</item>
		<item>
			<title>Button php export table data</title>
			<link>http://www.daniweb.com/forums/thread236545.html</link>
			<pubDate>Fri, 06 Nov 2009 10:53:28 GMT</pubDate>
			<description><![CDATA[Hi! I need a button in php code, that when i click on that button it export's my SELECT to a text file or excell file.. 
 
i searched.. there's a lot of program's that make that.. but i don't want that.. i want to make on my webpage a simple code button that when someone click there it save's the...]]></description>
			<content:encoded><![CDATA[<div>Hi! I need a button in php code, that when i click on that button it export's my SELECT to a text file or excell file..<br />
<br />
i searched.. there's a lot of program's that make that.. but i don't want that.. i want to make on my webpage a simple code button that when someone click there it save's the content of a table..<br />
<br />
<br />
<br />
thanks a lot</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>jppr03</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236545.html</guid>
		</item>
		<item>
			<title>Binary Tree - How to get total left and right children?</title>
			<link>http://www.daniweb.com/forums/thread236540.html</link>
			<pubDate>Fri, 06 Nov 2009 10:39:24 GMT</pubDate>
			<description><![CDATA[I am currently making a binary tree and I was able to create the tree. What I am facing now is " How to get the total number of children in my left side and total number in my right side ". 
 
The structure is: 
  <div class="codeblock"> <div class="spaced"> <div style="float:right;...]]></description>
			<content:encoded><![CDATA[<div>I am currently making a binary tree and I was able to create the tree. What I am facing now is &quot; How to get the total number of children in my left side and total number in my right side &quot;.<br />
<br />
The structure is:<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  3<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  6&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  7<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 8&nbsp; &nbsp; &nbsp;  9&nbsp; &nbsp; &nbsp; &nbsp; 10&nbsp; &nbsp;  11&nbsp; &nbsp; &nbsp; &nbsp;  12&nbsp; &nbsp; 13&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 14&nbsp; &nbsp; 15</pre><br />
<br />
My database variables for each person is Position and Upline<br />
Any help is appreciated. God Bless!</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/thread236540.html</guid>
		</item>
		<item>
			<title>Plugin could not be activated because it triggered a fatal error.</title>
			<link>http://www.daniweb.com/forums/thread236537.html</link>
			<pubDate>Fri, 06 Nov 2009 10:12:13 GMT</pubDate>
			<description>hi there, 
 
How to fix this ? i got below message when activating plugin from wp-admin 
 
Plugin could not be activated because it triggered a fatal error. 
Fatal error: Out of memory (allocated 15990784) (tried to allocate 77824 bytes) in …....</description>
			<content:encoded><![CDATA[<div>hi there,<br />
<br />
How to fix this ? i got below message when activating plugin from wp-admin<br />
<br />
Plugin could not be activated because it triggered a fatal error.<br />
Fatal error: Out of memory (allocated 15990784) (tried to allocate 77824 bytes) in …. plugins/wp-e-commerce/wpsc-admin/display-groups.page.php on line 187<br />
<br />
I found below code at display-groups.page.php on line 187<br />
” if($_POST['product_width'] &gt; 0) {<br />
$product_width = (int)$_POST['product_width'];<br />
} else {<br />
$product_width = ”;<br />
}<br />
“<br />
<br />
Also googled out &quot;http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP&quot; but not working for me.<br />
<br />
Regards,<br />
gptArun</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>gptArun</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236537.html</guid>
		</item>
		<item>
			<title>Posting data behind the scene</title>
			<link>http://www.daniweb.com/forums/thread236530.html</link>
			<pubDate>Fri, 06 Nov 2009 09:58:32 GMT</pubDate>
			<description><![CDATA[Hi, 
 
index.php posts data to process.php 
 
I want users to remain in index.php when they summit their form. I have seen this in some websites but don't know hot it done.  
Can anyone help me? 
 
Thanks]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
index.php posts data to process.php<br />
<br />
I want users to remain in index.php when they summit their form. I have seen this in some websites but don't know hot it done. <br />
Can anyone help me?<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/thread236530.html</guid>
		</item>
		<item>
			<title>session time out in php</title>
			<link>http://www.daniweb.com/forums/thread236518.html</link>
			<pubDate>Fri, 06 Nov 2009 09:06:09 GMT</pubDate>
			<description>hi guys, just wanna ask, could you give me some code about session time out? i have a different page for login and index. any help would be very much appreciated. 
thanks in advance ^^</description>
			<content:encoded><![CDATA[<div>hi guys, just wanna ask, could you give me some code about session time out? i have a different page for login and index. any help would be very much appreciated.<br />
thanks 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/thread236518.html</guid>
		</item>
		<item>
			<title>chechbox validations</title>
			<link>http://www.daniweb.com/forums/thread236504.html</link>
			<pubDate>Fri, 06 Nov 2009 07:25:36 GMT</pubDate>
			<description><![CDATA[hello friends .. 
 
 
 
                     i want to do one task. i want some one elp. i am new to php. when ever i check the checkbox amount will add in 'total' textbox. 
i am displaying table below. 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>hello friends ..<br />
<br />
<br />
<br />
                     i want to do one task. i want some one elp. i am new to php. when ever i check the checkbox amount will add in 'total' textbox.<br />
i am displaying table below.<br />
 <pre style="margin:20px; line-height:13px">&lt;form name=&quot;form&quot; action=&quot;&quot; method=&quot;post&quot; &gt;<br />
&lt;table align=&quot;center&quot;&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;<br />
Make my add featured $19.95 (your ad seen before free listings)<br />
&lt;/td&gt;<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;td&gt;&lt;input type=&quot;checkbox&quot; name=&quot;chk1&quot; onclick=&quot;check1()&quot;/&gt;&lt;/td&gt;&lt;/tr&gt;<br />
<br />
&lt;tr&gt;<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;<br />
Make my ad bold $4.95&nbsp; &nbsp; &nbsp; &nbsp; <br />
&lt;/td&gt;<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;td&gt;&lt;input type=&quot;checkbox&quot; name=&quot;chk2&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;<br />
Make my ad highlighted $4.95<br />
&lt;/td&gt;<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;td&gt;&lt;input type=&quot;checkbox&quot; name=&quot;chk3&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;<br />
Add Email $9.95<br />
&lt;/td&gt;<br />
&lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;email&quot; /&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;input type=&quot;checkbox&quot; name=&quot;chk4&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;<br />
Add link to my website $9.95<br />
&lt;/td&gt;<br />
&lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;link&quot; /&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;input type=&quot;checkbox&quot; name=&quot;chk5&quot; /&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;Add 10 key words $9.95&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;input type=&quot;checkbox&quot; name=&quot;chk6&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;<br />
or&lt;/td&gt;<br />
&lt;td&gt;Add 20 keywords $19.95&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;input type=&quot;checkbox&quot; name=&quot;chk7&quot; /&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;&lt;textarea name=&quot;text1&quot; rows=&quot;6&quot; cols=&quot;50&quot;&gt;&lt;/textarea&gt;&lt;/td&gt;<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;<br />
Add larger description (up to 4,000 charters) $29.95 <br />
&lt;/td&gt;<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;td&gt;&lt;input type=&quot;checkbox&quot; name=&quot;chk8&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;&lt;textarea name=&quot;text1&quot; rows=&quot;6&quot; cols=&quot;50&quot;&gt;&lt;/textarea&gt;&lt;/td&gt;<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;Add 10 key words $9.95&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;input type=&quot;checkbox&quot; name=&quot;chk6&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;<br />
or&lt;/td&gt;<br />
&lt;td&gt;Add 20 keywords $19.95&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;input type=&quot;checkbox&quot; name=&quot;chk7&quot; /&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;&lt;textarea name=&quot;text1&quot; rows=&quot;6&quot; cols=&quot;50&quot;&gt;&lt;/textarea&gt;&lt;/td&gt;<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align=&quot;right&quot;&gt;total &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;input name=&quot;total&quot; type=&quot;text&quot; /&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/form&gt;</pre><br />
here no.of checkboxs. when ever i check one checkbox that amt willadd to total amount. <br />
plz help me.</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/thread236504.html</guid>
		</item>
		<item>
			<title>SMS gateway in php</title>
			<link>http://www.daniweb.com/forums/thread236503.html</link>
			<pubDate>Fri, 06 Nov 2009 07:24:11 GMT</pubDate>
			<description>I need to send sms to my customers. I developed my website using PHP. I need Own SMS gateway to send and receive message. How to create own SMS gateway?</description>
			<content:encoded><![CDATA[<div>I need to send sms to my customers. I developed my website using PHP. I need Own SMS gateway to send and receive message. How to create own SMS gateway?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>Nareshdeven</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236503.html</guid>
		</item>
		<item>
			<title>problem with PHPMailer</title>
			<link>http://www.daniweb.com/forums/thread236497.html</link>
			<pubDate>Fri, 06 Nov 2009 06:57:20 GMT</pubDate>
			<description>PHP mailer class is a pretty famous 1 so i believe many of u have used or atleast heard abt it.. 
The problem i m facing is when i try using it with my application on my local system it works fine but as soon as i upload it on my server, it still works fine except that it sends each mail twice. 
I...</description>
			<content:encoded><![CDATA[<div>PHP mailer class is a pretty famous 1 so i believe many of u have used or atleast heard abt it..<br />
The problem i m facing is when i try using it with my application on my local system it works fine but as soon as i upload it on my server, it still works fine except that it sends each mail twice.<br />
I wanna know if its a common issue or there is somthing wrong wid my config??</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>venkat0904</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236497.html</guid>
		</item>
		<item>
			<title>Querystring</title>
			<link>http://www.daniweb.com/forums/thread236493.html</link>
			<pubDate>Fri, 06 Nov 2009 06:28:39 GMT</pubDate>
			<description><![CDATA[Hi folks, 
 
 
my url querystring 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 Tags" target="_blank">Help with Code Tags</a>...]]></description>
			<content:encoded><![CDATA[<div>Hi folks,<br />
<br />
<br />
my url querystring is <br />
<br />
 <pre style="margin:20px; line-height:13px">querytring.php?checkin=10/11/2009&amp;checkout=10/01/2009&amp;minprice=100&amp;maxprice=200&amp;page=1</pre><br />
i want to remove   <br />
<br />
 <pre style="margin:20px; line-height:13px">&amp;page=1</pre> from this url.<br />
<br />
Please help<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>itsrahulk</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236493.html</guid>
		</item>
		<item>
			<title>Filtering categories</title>
			<link>http://www.daniweb.com/forums/thread236489.html</link>
			<pubDate>Fri, 06 Nov 2009 06:10:59 GMT</pubDate>
			<description>How can we filter categories (checkbox) like this: http://tp.jobscentral.com.sg/pubsearchjobs.php</description>
			<content:encoded><![CDATA[<div>How can we filter categories (checkbox) like this: <a rel="nofollow" class="t" href="http://tp.jobscentral.com.sg/pubsearchjobs.php" target="_blank">http://tp.jobscentral.com.sg/pubsearchjobs.php</a></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>xueping</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236489.html</guid>
		</item>
		<item>
			<title>Code Snippet Export CSV TO Mysql and Import to CSV  from MYsql in PHP</title>
			<link>http://www.daniweb.com/code/snippet236476.html</link>
			<pubDate>Fri, 06 Nov 2009 04:45:26 GMT</pubDate>
			<description>Export CSV TO Mysql and Import to CSV  from MYsql in PHP</description>
			<content:encoded><![CDATA[<div>Export CSV TO Mysql and Import to CSV  from MYsql in PHP</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>tellysk</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236476.html</guid>
		</item>
		<item>
			<title>a Function that is not working...</title>
			<link>http://www.daniweb.com/forums/thread236405.html</link>
			<pubDate>Thu, 05 Nov 2009 22:59:09 GMT</pubDate>
			<description><![CDATA[I am generating a PHP error with this function but don't know why. 
 
Little help... 
 
  <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>I am generating a PHP error with this function but don't know why.<br />
<br />
Little help...<br />
<br />
 <pre style="margin:20px; line-height:13px"><br />
function Validate_Page_Nav($LastPage, $ErrorPage) {<br />
<br />
if($_SESSION['Staff_ID']) {<br />
$trimmed = str_replace($staffroot, '', $_SERVER['SCRIPT_NAME']);<br />
$resul = $db-&gt;query(&quot;SELECT * FROM Page_Access WHERE URI = '$trimmed'&quot;) or die(&quot;failed to get access data&quot;);<br />
$page_access = $resul-&gt;fetch_assoc();<br />
$URI_access = explode(&quot;,&quot;, $page_access['User_Level']);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(in_array($_SESSION['Staff_level'], $URI_access)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if($_SESSION['Last_Page'] != $LastPage) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; header(&quot;location: {$ErrorPage}?message=Unable to update user information.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
$_SESSION['Last_Page'] = $trimmed;<br />
}<br />
<br />
}<br />
<br />
Validate_Page_Nav(&quot;user_list.php&quot;,&quot;user_list.php&quot;);</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>dwdata</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236405.html</guid>
		</item>
		<item>
			<title>Error</title>
			<link>http://www.daniweb.com/forums/thread236356.html</link>
			<pubDate>Thu, 05 Nov 2009 19:36:14 GMT</pubDate>
			<description><![CDATA[//create and issue the first query 
    $add_topic_sql = "INSERT INTO forum_topics (topic_title, topic_create_time, topic_owner) VALUES ('$_POST[topic_title]',now(),'$_POST[topic_owner]')"; 
	$add_topic_res = mysql_query($conn, $add_topic_sql) 
	or die(mysql_error($conn)); 
			//get the id of the...]]></description>
			<content:encoded><![CDATA[<div> <pre style="margin:20px; line-height:13px">//create and issue the first query<br />
&nbsp; &nbsp; $add_topic_sql = &quot;INSERT INTO forum_topics (topic_title, topic_create_time, topic_owner) VALUES ('$_POST&#91;topic_title&#93;',now(),'$_POST&#91;topic_owner&#93;')&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $add_topic_res = mysql_query($conn, $add_topic_sql)<br />
&nbsp; &nbsp; &nbsp; &nbsp; or die(mysql_error($conn));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //get the id of the last query<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $topic_id = mysql_insert_id($mysql);</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>Millsy013</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236356.html</guid>
		</item>
		<item>
			<title>Need a little bit of help with PHPFormMail redirect</title>
			<link>http://www.daniweb.com/forums/thread236348.html</link>
			<pubDate>Thu, 05 Nov 2009 18:43:40 GMT</pubDate>
			<description>Hi, 
 
Hello, 
 
Few hours back I implemented phpFormMail (http://developerkarma.com/projects/phpformmail/readme-all-one-version) with simple form, and everything is working fine except after I submit form I get redirected to this page: 
  
The following information has been submitted: 
Name: Ultra...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
Hello,<br />
<br />
Few hours back I implemented <a rel="nofollow" class="t" href="http://developerkarma.com/projects/phpformmail/readme-all-one-version" target="_blank">phpFormMail</a> with simple form, and everything is working fine except after I submit form I get redirected to this page:<br />
 <br />
The following information has been submitted:<br />
Name: Ultra<br />
e-mail: <a href="mailto:email@email.com">email@email.com</a><br />
Comment: test<br />
email: <a href="mailto:email@example.com">email@example.com</a><br />
<br />
I wanted to know why do I get email: <a href="mailto:email@example.com">email@example.com</a> in this page ?<br />
<br />
Is it possible to get redirected back to previous page automatically?<br />
<br />
If  I know html + css, php not so much, can I modify this page a bit ?<br />
<br />
Thanks in advance!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>wonderland</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236348.html</guid>
		</item>
		<item>
			<title>Newbie in need of help with some PHP code :)</title>
			<link>http://www.daniweb.com/forums/thread236342.html</link>
			<pubDate>Thu, 05 Nov 2009 18:27:25 GMT</pubDate>
			<description><![CDATA[Hey! I'm quite new to this whole thing, so please don't fire me with shait on this one =D 
 
I'm trying to learn PHP and MySQL, and atm I am trying to make a website which corresponds with a database - a database with customers. 
 
1. I want the page to show all the customers in the database - with...]]></description>
			<content:encoded><![CDATA[<div>Hey! I'm quite new to this whole thing, so please don't fire me with shait on this one =D<br />
<br />
I'm trying to learn PHP and MySQL, and atm I am trying to make a website which corresponds with a database - a database with customers.<br />
<br />
1. I want the page to show all the customers in the database - with first- and surname.<br />
<br />
2. I want each customer to be clickable - when you click a customer, it shows all the information about that customer which is stored in the database.<br />
<br />
I can post some of the stuff I tried out with, but I'm not good with PHP (yet! =D), and therefore I got stuck quite early... but here's some of the stuff I've done so far..<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;?php<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Connect to the database server<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $dbcnx = @mysql_connect('localhost', 'root', 'password');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!$dbcnx) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit('&lt;p&gt;Unable to connect to the database server at this time.&lt;/p&gt;');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Select the database<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!@mysql_select_db('customerdb')) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit('&lt;p&gt;Unable to locate the database at this time');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ?&gt;<br />
<br />
&lt;p&gt;Here are all the customers:&lt;/p&gt;&lt;br /&gt;<br />
<br />
// Request data from the database<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $customers = @mysql_query('SELECT * FROM customers');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!$customers) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit('&lt;p&gt;Error performing query: ' . mysql_error() . '&lt;/p&gt;');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while ($row = mysql_fetch_array($customers)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $customerID = $row['kundeID'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $customer_forename = $row['forename'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $customer_surname = $row['surname'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo '&lt;p&gt;' . $customer_forename .<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $customer_surname . <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ' &lt;a href=&quot;' . $_SERVER['PHP_SELF'] .<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '?showcustomer=' . $customerID . '&quot;&gt;' .<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'customer details&lt;/a&gt;&lt;/p&gt;';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ?&gt;</pre><br />
This piece of code also gives me no spaces between the $customer_forename and $customer_surname.. How can I make a space between them?<br />
<br />
And one last question :) In this example, I have just created a link at the end of the customers listed - which says customer details.. Is there a way to make the $customer_forename and $customer_surname a clickable link which executes what I am trying to achieve?<br />
<br />
Thanks, and sorry for not being really good at this, at all! =D<br />
Have a nice day!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>hawkontvn</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236342.html</guid>
		</item>
		<item>
			<title>Uploading to specific field in datatbase</title>
			<link>http://www.daniweb.com/forums/thread236341.html</link>
			<pubDate>Thu, 05 Nov 2009 18:23:52 GMT</pubDate>
			<description><![CDATA[Heres one for ya... 
Lets say you have a mysql database with multiple entries (clients). Each one has a field for name, username ect. There is also one for say storing a doc file for billing. How can I make it so I can upload a file to just a specific clients "billing" field in the database?...]]></description>
			<content:encoded><![CDATA[<div>Heres one for ya...<br />
Lets say you have a mysql database with multiple entries (clients). Each one has a field for name, username ect. There is also one for say storing a doc file for billing. How can I make it so I can upload a file to just a specific clients &quot;billing&quot; field in the database?<br />
Oooooooor, do I store these files on the server? Which would bring me to the question of how to upload the files to a specific directory though a web browser. <br />
I am trying to figure out the best way to create an &quot;Admin control panel&quot; to be able to update the clients without having to use an ftp program. <br />
Mabey thats just the best way. I am looking for suggestions and code. Im still pretty new at this.<br />
I also have a post looking for ways to display these files for the clients on thier login page. I used the echo statment and only got a coded version of the file.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>SuntechWebsites</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236341.html</guid>
		</item>
		<item>
			<title>mail() problem</title>
			<link>http://www.daniweb.com/forums/thread236337.html</link>
			<pubDate>Thu, 05 Nov 2009 18:05:45 GMT</pubDate>
			<description><![CDATA[Hi guys, 
I'm trying to use the mail php function to send my subscribers emails like news, information, offers,etc. 
The problem is when I test it on my system (Fedora 11 box and sendmail is up and running without changing any settings) I usually receive the mails after 4 or 5 hours and sometimes...]]></description>
			<content:encoded><![CDATA[<div>Hi guys,<br />
I'm trying to use the mail php function to send my subscribers emails like news, information, offers,etc.<br />
The problem is when I test it on my system (Fedora 11 box and sendmail is up and running without changing any settings) I usually receive the mails after 4 or 5 hours and sometimes after 1 day. I googled it but I coundn't find something talking directly about it or even give a clear solution. I do know It's not the mail() problem but It's sendmail problem. Something not right in the config. I have some questions:-<br />
1- If It's a sendmail problem, would you provide me with the solution?<br />
2- Is the mail function can be used to send a large about of mails to the subscribers? and if It's not, Would you please suggest another way to send a large amount of mails?<br />
<br />
Thanks alot for the help</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>codemaker</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236337.html</guid>
		</item>
		<item>
			<title>Displaying files from database</title>
			<link>http://www.daniweb.com/forums/thread236305.html</link>
			<pubDate>Thu, 05 Nov 2009 15:37:22 GMT</pubDate>
			<description><![CDATA[Is there a way I can display an image, pdf or word doc that is stored in a my sql database?  
I tried to pull up a word doc with this: 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Is there a way I can display an image, pdf or word doc that is stored in a my sql database? <br />
I tried to pull up a word doc with this:<br />
 <pre style="margin:20px; line-height:13px">$sql = &quot; SELECT * FROM user WHERE username = '$_SESSION[MM_Username]' &quot;;<br />
$result = mysql_query($sql);<br />
while($row=mysql_fetch_array($result)) {<br />
$inv=$row['invoice'];}<br />
&nbsp;?&gt;<br />
&nbsp;&lt;?php echo &quot; Your Invoice: &quot;.$inv.&quot; &quot;;<br />
?&gt;</pre><br />
But all I got was code from the document.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>SuntechWebsites</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236305.html</guid>
		</item>
		<item>
			<title>random image from table</title>
			<link>http://www.daniweb.com/forums/thread236267.html</link>
			<pubDate>Thu, 05 Nov 2009 13:05:10 GMT</pubDate>
			<description>hi friends, 
 
again a problem 
 
I have a mysql table name tbl_admin fields are below 
 
id(int),     image1(text),     image2  (text) , image3 (text) 
 
 
now i want to show these pics, i use randomly function to display them</description>
			<content:encoded><![CDATA[<div>hi friends,<br />
<br />
again a problem<br />
<br />
I have a mysql table name tbl_admin fields are below<br />
<br />
id(int),     image1(text),     image2  (text) , image3 (text)<br />
<br />
<br />
now i want to show these pics, i use randomly function to display them<br />
<br />
 <pre style="margin:20px; line-height:13px"> $query=select * from tbl_admin where id=5;<br />
$result=mysql_query($query);<br />
$row=mysql_fetch_array($result)</pre><br />
now for show i use <br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;img src=&quot;&lt;? rand($row['image1'],$row['image2'],$row['image3'])&quot;&gt;</pre><br />
Problem occur when image1 or image2 or image3 is blank<br />
<br />
than sometime image show blank,,, but i don't want to show up blank, if there is only 2 images then show only 2 images randomly, if there is only one show only one<br />
<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>sanjaypandit</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236267.html</guid>
		</item>
		<item>
			<title>Send email using PHP to multiple recipients in mysql db</title>
			<link>http://www.daniweb.com/forums/thread236251.html</link>
			<pubDate>Thu, 05 Nov 2009 12:16:59 GMT</pubDate>
			<description><![CDATA[Hi there, 
I would like to make an email form that would select all the emails from a MySQL db and then send that message to all addresses.  
 
I got this script but was unable to get it working. Any help would be great. 
  <div class="codeblock"> <div class="spaced"> <div style="float:right;...]]></description>
			<content:encoded><![CDATA[<div>Hi there,<br />
I would like to make an email form that would select all the emails from a MySQL db and then send that message to all addresses. <br />
<br />
I got this script but was unable to get it working. Any help would be great.<br />
 <pre style="margin:20px; line-height:13px">&lt;?php <br />
//Connect to database<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; mysql_connect(&quot;localhost&quot;,&quot;user&quot;,&quot;password&quot;) or die(mysql_error());<br />
&nbsp; &nbsp; &nbsp; &nbsp; mysql_select_db(&quot;db&quot;) or die(mysql_error());<br />
<br />
$sql = &quot;SELECT email FROM members&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $res = mysql_query($sql) or die(mysql_error());<br />
&nbsp; &nbsp; &nbsp; &nbsp; while( $row = mysql_fetch_assoc($res) )<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp;  $area = $row['email']. &quot;, &quot;;&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; // read the list of emails from the file.<br />
&nbsp; &nbsp; &nbsp; &nbsp; $email_list = $area;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; // count how many emails there are.<br />
&nbsp; &nbsp; &nbsp; &nbsp; $total_emails = count($email_list);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; // go through the list and trim off the newline character.<br />
&nbsp; &nbsp; &nbsp; &nbsp; for ($counter=0; $counter&lt;$total_emails; $counter++) {<br />
&nbsp;  $email_list[$counter] = trim($email_list[$counter]);<br />
&nbsp;  }<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $to = $email_list;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo $to;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
if (isset($_REQUEST['email']))<br />
//if &quot;email&quot; is filled out, send email<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //send email<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $email = $_REQUEST['email'] ; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $subject = $_REQUEST['subject'] ;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $message = $_REQUEST['message'] ;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mail( &quot;someone@example.com&quot;, &quot;Subject: $subject&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $message, &quot;From: $email&quot; );<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;Thank you for using our mail form&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; //if &quot;email&quot; is not filled out, display the form<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;form method='post' action='mailform.php'&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Subject: &lt;input name='subject' type='text' /&gt;&lt;br /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Message:&lt;br /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;textarea name='message' rows='15' cols='40'&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/textarea&gt;&lt;br /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type='submit' /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/form&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
?&gt;</pre>Above file is mailform.php and of course i have changed db connection etc.<br />
Thanks in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>meko22</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236251.html</guid>
		</item>
		<item>
			<title>mySQL TABLES</title>
			<link>http://www.daniweb.com/forums/thread236245.html</link>
			<pubDate>Thu, 05 Nov 2009 11:50:13 GMT</pubDate>
			<description><![CDATA[how do i add an image path to a mysql table of mine which has "product image" as a field.  
i have saved the necessary images to images folder in root folder as well... 
please help!]]></description>
			<content:encoded><![CDATA[<div>how do i add an image path to a mysql table of mine which has &quot;product image&quot; as a field. <br />
i have saved the necessary images to images folder in root folder as well...<br />
please help!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>rukshilag</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236245.html</guid>
		</item>
		<item>
			<title>Customized user login</title>
			<link>http://www.daniweb.com/forums/thread236227.html</link>
			<pubDate>Thu, 05 Nov 2009 10:24:32 GMT</pubDate>
			<description><![CDATA[what is the script to customise a login. for example if "abc" logs in to the website, how do i get it to display "Welcome abc", if "pqr" logs in "Welcome pqr" and so on... 
  
please help!]]></description>
			<content:encoded><![CDATA[<div>what is the script to customise a login. for example if &quot;abc&quot; logs in to the website, how do i get it to display &quot;Welcome abc&quot;, if &quot;pqr&quot; logs in &quot;Welcome pqr&quot; and so on...<br />
 <br />
please help!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>rukshilag</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236227.html</guid>
		</item>
		<item>
			<title>how ro grab discription from oteh website in php?</title>
			<link>http://www.daniweb.com/forums/thread236148.html</link>
			<pubDate>Thu, 05 Nov 2009 05:28:22 GMT</pubDate>
			<description>I just want to know that How can I grab small discription of a specific news from the news websites using url like http://www.bhaskar.com/2009/11/05/091105062426_uid_number.html 
 
If you have a sample code,please send me. 
thanks</description>
			<content:encoded><![CDATA[<div>I just want to know that How can I grab small discription of a specific news from the news websites using url like <a rel="nofollow" class="t" href="http://www.bhaskar.com/2009/11/05/091105062426_uid_number.html" target="_blank">http://www.bhaskar.com/2009/11/05/09...id_number.html</a><br />
<br />
If you have a sample code,please send me.<br />
thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>shashank2009</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236148.html</guid>
		</item>
		<item>
			<title>Multiple file upload through an array</title>
			<link>http://www.daniweb.com/forums/thread236136.html</link>
			<pubDate>Thu, 05 Nov 2009 04:17:13 GMT</pubDate>
			<description><![CDATA[Hi everyone, I am new to PHP, and I am trying to upload 10 files with differnt input names.  From reading forums and such, I came up with the following code, but it doesn't seem to be working.  Can anyone tell me where I went wrong? 
 
  <div class="codeblock"> <div class="spaced"> <div...]]></description>
			<content:encoded><![CDATA[<div>Hi everyone, I am new to PHP, and I am trying to upload 10 files with differnt input names.  From reading forums and such, I came up with the following code, but it doesn't seem to be working.  Can anyone tell me where I went wrong?<br />
<br />
 <pre style="margin:20px; line-height:13px">if (isset($_POST[submit])) { <br />
<br />
$uploadArray= array();<br />
$uploadArray[] = $_POST['image01'];<br />
$uploadArray[] = $_POST['image02'];<br />
$uploadArray[] = $_POST['image03'];<br />
$uploadArray[] = $_POST['image04']; <br />
$uploadArray[] = $_POST['image05']; <br />
$uploadArray[] = $_POST['image06']; <br />
$uploadArray[] = $_POST['image07']; <br />
$uploadArray[] = $_POST['image08']; <br />
$uploadArray[] = $_POST['image09']; <br />
$uploadArray[] = $_POST['image10']; <br />
<br />
foreach($uploadArray as $file) {&nbsp; <br />
<br />
//This is the directory where images will be saved<br />
$target = &quot;orders/&quot;;<br />
$target = $target . basename( $_FILES[$file]['name'] );<br />
<br />
<br />
if (<br />
(($_FILES[$file][&quot;type&quot;] == &quot;image/gif&quot;)<br />
|| ($_FILES[$file][&quot;type&quot;] == &quot;image/jpg&quot;)<br />
|| ($_FILES[$file][&quot;type&quot;] == &quot;image/jpeg&quot;)<br />
|| ($_FILES[$file][&quot;type&quot;] == &quot;image/pjpeg&quot;))<br />
&amp;&amp; ($_FILES[$file][&quot;size&quot;] &lt; 5000000)<br />
<br />
)<br />
{ <br />
<br />
if(move_uploaded_file($_FILES[$file]['tmp_name'], $target)) <br />
&nbsp; &nbsp; &nbsp; &nbsp; {&nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // redirect to upload success url<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; header('Location: ' . SUCCESS_URL);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; die();<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <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; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;Sorry, there was a problem uploading your file.&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
}<br />
else<br />
&nbsp; {<br />
&nbsp; echo &quot;Invalid file&quot;;<br />
&nbsp; }<br />
<br />
} <br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>olunde</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236136.html</guid>
		</item>
		<item>
			<title>error message when calling localhost!</title>
			<link>http://www.daniweb.com/forums/thread236130.html</link>
			<pubDate>Thu, 05 Nov 2009 04:02:00 GMT</pubDate>
			<description><![CDATA[i have installed drupal in my xampp root. but recently even though my drupal sites work, when i call localhost, unlike other times where "xampp" page shows up to say that apache server is running successfully does not show and the following errors display. 
 
 
Warning:...]]></description>
			<content:encoded><![CDATA[<div>i have installed drupal in my xampp root. but recently even though my drupal sites work, when i call localhost, unlike other times where &quot;xampp&quot; page shows up to say that apache server is running successfully does not show and the following errors display.<br />
<br />
<br />
Warning: require_once(C:\xampp\htdocs\includes\defines.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\index.php on line 24<br />
<br />
Fatal error: require_once() [function.require]: Failed opening required 'C:\xampp\htdocs\includes\defines.php' (include_path='.;\xampp\php\PEAR') in C:\xampp\htdocs\index.php on line 24<br />
<br />
what shud i do??<br />
even though i have no problems with using my drupal sites, i dont know if these errors might be a problem later on... please tell me how to fix this so i can get the apache running successfully xampp page back...<br />
 thanks :)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>rukshilag</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236130.html</guid>
		</item>
		<item>
			<title>Accessing Unicode Data From a MySQL Database With PHP</title>
			<link>http://www.daniweb.com/forums/thread236091.html</link>
			<pubDate>Wed, 04 Nov 2009 23:57:12 GMT</pubDate>
			<description><![CDATA[Hello, 
 
I am a training developer in .NET and web 2.0 technologies and this one is an exercise from one of our first lessons in PHP: accessing a MySQL database from a PHP script. 
 
The problem I've encountered is that while database is thought to be in Unicode (i.e. the values contain accented...]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I am a training developer in .NET and web 2.0 technologies and this one is an exercise from one of our first lessons in PHP: accessing a MySQL database from a PHP script.<br />
<br />
The problem I've encountered is that while database is thought to be in Unicode (i.e. the values contain accented characters, as this exercise is in French), the PHP script result in garbage characters (actually just one, a enlongated rectangle).<br />
<br />
The exercise consists of a PHP script and a MySQL database with two tables where the script queries all entry data from one column in just one table (so no joins necessary).<br />
<br />
The MySQL table is called &quot;Restaurant&quot; - well, actually this side isn't that much important yet. (Which means I'll come back to that later.)<br />
<br />
The PHP script is<br />
 <pre style="margin:20px; line-height:13px">&lt;?php<br />
&nbsp;  mysql_connect(&quot;localhost&quot;,&quot;root&quot;,&quot;&quot;);<br />
&nbsp;  mysql_select_db(&quot;Restaurant&quot;);<br />
&nbsp;  $myQuery = &quot;SELECT LibPlat FROM Plats&quot;;<br />
&nbsp;  $rs = mysql_query($myQuery);<br />
&nbsp;  while ($row = mysql_fetch_array($rs)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo ($row['LibPlats'].&quot;&lt;br /&gt;\n&quot;);<br />
&nbsp;  }<br />
?&gt;</pre><br />
My setup consists of Eclipse with PDT and Zend Debugger (latest version, i.e. 3.5.1 and just updated). I use Zend Server CE with its MySQL install (phpMyAdmin).<br />
<br />
Basically the script does just what I've been asking it to do, except that the French accents (like in <span style="font-style:italic">thé</span> or <span style="font-style:italic">café</span>) don't appear (there's this rectangle instead).<br />
<br />
Shawn Olson (or rather Andrew Penry on Olson's website) says that storing data in UTF-8 is not enough on MySQL: &quot;[y]ou must also tell MySQL that the data you are passing into it is UTF-8 otherwise it will assume it is in its default encoding.&quot;<br />
<br />
His code looks like this:<br />
 <pre style="margin:20px; line-height:13px">&lt;?php<br />
&nbsp;  $DB = new mysqli('localhost', 'user', 'root', 'dbname');<br />
&nbsp;  $DB-&gt;query(&quot;SET NAMES 'utf8'&quot;);<br />
&nbsp;  if (!empty($_POST['ta'])) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; $DB-&gt;query(&quot;UPDATE document SET unicodeText='{$_POST['ta']}' WHERE ID=1&quot;);<br />
&nbsp;  }<br />
&nbsp;  $result = $DB-&gt;query(&quot;SELECT unicodeText FROM document WHERE ID=1&quot;);<br />
&nbsp;  $return = $result-&gt;fetch_object();<br />
&nbsp;  $result-&gt;close();<br />
?&gt;</pre><br />
I just have a little bit of a problem decyphering his code. I'm pretty sure that I can ignore his <span style="font-style:italic">mysqli</span> line. And <span style="font-weight:bold">$DB-&gt;query(&quot;&quot;);</span> looks pretty much the same way like my two-liner <span style="font-weight:bold">$myQuery = &quot;&quot;; mysql_query($myQuery);</span> but then I run into some code I can't my hands nor tails of.<br />
<br />
Does anyone know how to adapt Andrew's code snippet for my exercise? Or does anyone have a better idea of how to achieve that goal, and, as Andrew wrote, configuring the server may not always be an option, yet he hints that his code should eventually do the same thing as if I would set the server up to use unicode as the default character encoding.<br />
<br />
Thank you!<br />
<br />
Source:<br />
<a rel="nofollow" class="t" href="http://www.shawnolson.net/a/946/unicode-data-with-php-5-and-mysql-41.html" target="_blank">Unicode Data with PHP 5 and MySQL 4.1</a></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>Alba Ra</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236091.html</guid>
		</item>
		<item>
			<title>Question about mass mail function</title>
			<link>http://www.daniweb.com/forums/thread236089.html</link>
			<pubDate>Wed, 04 Nov 2009 23:53:56 GMT</pubDate>
			<description>Hey all, 
 
I need to use the PHP mail() function in order to send an email to a number of individuals.  
 
So lets say that I have 5 users that need to get a particular email. I was thinking that the correct way of going about using the mail() function, would be: 
1) to create an array variable 
...</description>
			<content:encoded><![CDATA[<div>Hey all,<br />
<br />
I need to use the PHP mail() function in order to send an email to a number of individuals. <br />
<br />
So lets say that I have 5 users that need to get a particular email. I was thinking that the correct way of going about using the mail() function, would be:<br />
1) to create an array variable<br />
<br />
2) load the 5 usernames in the array<br />
<br />
3) then store in a variable the size of the array, i.e. in my example it is  5 positions.<br />
<br />
4) make a for loop with its limit whatever the array size is...<br />
<br />
5) for each iteration read the corresponding username from the array and use the mail() function to email that specific username...<br />
<br />
The point is, does anyone know of any other function other than mail() that can take more than one recipients? That would be really helpful and actually it would be more optimal and save server time... I created a massml() function myself and it takes as recipient an array argument, it works with the specifications that I gave above. But I am using a loop inside my function so this is still the same as looping the mail() function... It's not much of a problem but the optimality of this has been bugging me since morning. <br />
<br />
Thanks for listening, I appreciate any answers,<br />
<br />
George</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>violarisgeorge</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236089.html</guid>
		</item>
		<item>
			<title>extract from a string</title>
			<link>http://www.daniweb.com/forums/thread236061.html</link>
			<pubDate>Wed, 04 Nov 2009 21:46:35 GMT</pubDate>
			<description><![CDATA[I would like to take a string (I have loaded it from the database) and extract it into chunks. 
 
The beginning string, lets call it "$string", has the following format: 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>I would like to take a string (I have loaded it from the database) and extract it into chunks.<br />
<br />
The beginning string, lets call it &quot;$string&quot;, has the following format:<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;li&gt;item1&lt;/li&gt;&lt;li&gt;item2&lt;/li&gt;&lt;li&gt;item3&lt;/li&gt;</pre> (maybe more li's, maybe less, or even none)<br />
<br />
What I would like to do is extract to an array each li, display each array element seperately ( with an option to &quot;delete it&quot;), then after add them back to the string and place back in the database. And yes I want each array element to include the li tags within(not that its necessary, I guess I could get around it)<br />
<br />
I understand most of it, just getting hung up on how to extract each from the string and place into an array.<br />
<br />
Anyone have an ideas how to go about this?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>verbob</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236061.html</guid>
		</item>
		<item>
			<title>using variable substitutions in conditional statements</title>
			<link>http://www.daniweb.com/forums/thread236047.html</link>
			<pubDate>Wed, 04 Nov 2009 19:51:50 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I don't know if I have just been working too much or have gone brain dead (or both), but the solution to this eludes me. 
 
I am using PHORM ( a PHP form processor) which uses variable substitution to allow you to quickly create user interaction pages etc. What I am doing here is creating an...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I don't know if I have just been working too much or have gone brain dead (or both), but the solution to this eludes me.<br />
<br />
I am using PHORM ( a PHP form processor) which uses variable substitution to allow you to quickly create user interaction pages etc. What I am doing here is creating an application over two pages. On the first page, we are collecting membership application info, including the type of membership and how they would like to pay for their membership (PayPal or invoicing). How PHORM works is that when you submit the form, the output is sent to the phorm.php script which does certain things, depending on the config for that form. In this case, it sends an email to the site owner, a confirmation email to the user and then redirects them to an acknowledgment page (page 2 of our little app). What I want is for all of this to happen as stated but, on the acknowledgment page, based on on the type of membership and payment preferences, build a Paypal button to submit the appropriate payment or, if they are being billed, simply indicate that they will receive an invoice via mail or email, as the case may be.<br />
<br />
PHORM uses variables in the form of {{field name from form}}. So in our case here, the values that I need are available on the acknowledgment page as {{howPay}} and {{appType}}. However, I am trying to use variations on the following in order to show or not show certain info on the page:<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;?php if ({{howpay}} == paypal) { ?&gt;</pre> or  <pre style="margin:20px; line-height:13px">&lt;?php if ($_POST['howpay'] == paypal) { ?&gt;</pre>but with no success. In the first case, when you look at the code, you just see  <pre style="margin:20px; line-height:13px">&lt;?php if (paypal == paypal) { ?&gt;</pre> which does not seem to work. I even tried:  <pre style="margin:20px; line-height:13px">&lt;? $pay = {{howpay}} ?&gt;</pre> but that does not work either. <br />
<br />
I would appreciate a fresh pair of eyes on this and a fresh brain.<br />
<br />
Thanks<br />
<br />
Dave</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>filch</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236047.html</guid>
		</item>
		<item>
			<title>session in php</title>
			<link>http://www.daniweb.com/forums/thread236039.html</link>
			<pubDate>Wed, 04 Nov 2009 19:29:10 GMT</pubDate>
			<description><![CDATA[i'm a newbie in php and maybe my question is so silly. 
 
i tried to create a session in a file named login.php 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox"...]]></description>
			<content:encoded><![CDATA[<div>i'm a newbie in php and maybe my question is so silly.<br />
<br />
i tried to create a session in a file named login.php<br />
 <pre style="margin:20px; line-height:13px">&lt;?php<br />
include &quot;koneksi.inc.php&quot;;<br />
$name=$_POST['name'];<br />
$password=$_POST['password'];<br />
<br />
$hasil=mysql_query(&quot;SELECT * FROM TabelPegawai WHERE nama='$name' AND password='$password'&quot;);<br />
$row=mysql_fetch_array($hasil);<br />
<br />
if ($row[nama]==$name AND $row[password]==$password)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; session_start();<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_SESSION['namauser']=$row[nama];<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_SESSION['passuser']=$row[password];<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_SESSION['level']=$row[jabatan];<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; if($_SESSION['level']==&quot;Manager&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {header(&quot;location: manager.php&quot;);}<br />
&nbsp; &nbsp; &nbsp; &nbsp; else if($_SESSION['level']==&quot;Kasir&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {header(&quot;location:kasir.php&quot;);}<br />
&nbsp; &nbsp; &nbsp; &nbsp; else if($_SESSION['level']==&quot;Gudang&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {header(&quot;location:gudang.php&quot;);}<br />
&nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {header(&quot;location:http://www.google.com&quot;);}<br />
}<br />
else<br />
&nbsp; &nbsp; &nbsp;  {header(&quot;location:http://www.yahoo.com&quot;);}<br />
?&gt;</pre><br />
but, $_SESSION['level'] is not recognized in other files like manager.php, gudang.php, and kasir.php<br />
<br />
is there something wrong with my code?<br />
thanks for your helps.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>AirGear</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236039.html</guid>
		</item>
		<item>
			<title>php code error</title>
			<link>http://www.daniweb.com/forums/thread236038.html</link>
			<pubDate>Wed, 04 Nov 2009 19:27:27 GMT</pubDate>
			<description><![CDATA[When I run my fie and open  this one folder, I get this error message 
 Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/ezbiz/public_html/ar/templates/a_settings.html on line 61 
 
 
Any help will be greatly appreciated.]]></description>
			<content:encoded><![CDATA[<div>When I run my fie and open  this one folder, I get this error message<br />
 Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/ezbiz/public_html/ar/templates/a_settings.html on line 61<br />
<br />
<br />
Any help will be greatly appreciated.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>ez123</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236038.html</guid>
		</item>
		<item>
			<title>need help with table</title>
			<link>http://www.daniweb.com/forums/thread236017.html</link>
			<pubDate>Wed, 04 Nov 2009 17:44:37 GMT</pubDate>
			<description><![CDATA[i have a table with 14 columns and 4 rows. i know how to echo a result with a table from a query but how do i input results into a table thats already there? results go into cell 1, cell 2, cell 3 etc 
 
 
been having trouble on this. table id= stack   
 
its pretty long but i'll post the example...]]></description>
			<content:encoded><![CDATA[<div>i have a table with 14 columns and 4 rows. i know how to echo a result with a table from a query but how do i input results into a table thats already there? results go into cell 1, cell 2, cell 3 etc<br />
<br />
<br />
been having trouble on this. table id= stack  <br />
<br />
its pretty long but i'll post the example so i can relate it to my code..<br />
<br />
 <pre style="margin:20px; line-height:13px">mysql_connect(&quot;localhost&quot;, &quot;Master&quot;, &quot;password;<br />
mysql_select_db(&quot;Ustack&quot;);<br />
<br />
$report = mysql_query(&quot;SELECT * FROM Reply &quot;)or die (mysql_error());<br />
<br />
while($row = mysql_fetch_array( $report)) {<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $id = $row['id'];<br />
<br />
}<br />
<br />
&lt;table&nbsp; border=&quot;0&quot;&gt;<br />
&nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &lt;td width=&quot;70&quot; height=&quot;70&quot;&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;td width=&quot;70&quot; height=&quot;70&quot;&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;td width=&quot;70&quot; height=&quot;70&quot;&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;td width=&quot;70&quot; height=&quot;70&quot;&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;td width=&quot;70&quot; height=&quot;70&quot;&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;td width=&quot;70&quot; height=&quot;70&quot;&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;td width=&quot;70&quot; height=&quot;70&quot;&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;td width=&quot;70&quot; height=&quot;70&quot;&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;td width=&quot;70&quot; height=&quot;70&quot;&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;td width=&quot;70&quot; height=&quot;70&quot;&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;td width=&quot;70&quot; height=&quot;70&quot;&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;td width=&quot;70&quot; height=&quot;70&quot;&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;td width=&quot;70&quot; height=&quot;70&quot;&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;td width=&quot;70&quot; height=&quot;70&quot;&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &lt;/tr&gt;<br />
<br />
&lt;/table&gt;</pre><br />
so how do i get $id to go to cell 1, cell 2, cell 3 etc and fill up the table.  its easy when you echo it into a table but i need the table there before.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>MDanz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236017.html</guid>
		</item>
		<item>
			<title>Check Boxes Update A Simple Y/N Field in mysql using php</title>
			<link>http://www.daniweb.com/forums/thread235984.html</link>
			<pubDate>Wed, 04 Nov 2009 15:00:54 GMT</pubDate>
			<description>Hello all.. Very new to php and am working on an online strategy game as a precursor to my business websites.  I am having a problem coming up with something I thought would be simple. 
 
My intention was to have a list of units display on the screen using checkboxes to select which units to...</description>
			<content:encoded><![CDATA[<div>Hello all.. Very new to php and am working on an online strategy game as a precursor to my business websites.  I am having a problem coming up with something I thought would be simple.<br />
<br />
My intention was to have a list of units display on the screen using checkboxes to select which units to attack.  In order for me to have a select all button I had to use a bit of javascript in there.  My problem is this...  I thought I could just use 2 arrays and match them up so I would be able to run through the mysql database and update each unit that was checked.  The arrays however come back only with the checkboxes that were checked so my idea for simply matching box 1 to unit 1 won't work.  I just want to update a field called 'checked' in a mysql database to yes or no so I can call a routine that will go through the records to use in the combat.<br />
<br />
If anybody has a better way of doing this since the way I thought would work won't I would appreciate a point in the right direction.  I was thrilled to have the select all button finally work.<br />
<br />
[code php]<br />
if(!$_POST['yes'] &amp;&amp; !$_POST['no']){<br />
?&gt;<br />
&lt;TABLE ALIGN=&quot;center&quot;&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;<br />
&lt;form action=&quot;selectattackers.php&quot; method=&quot;post&quot;&gt;<br />
<br />
     &lt;input type=&quot;checkbox&quot; value=&quot;on&quot; name=&quot;allbox&quot;   <br />
       onclick=&quot;checkAll();&quot;/&gt; Select All&lt;br /&gt;<br />
<br />
&lt;script language=&quot;javascript&quot;&gt;<br />
function checkAll(){<br />
	for (var i=0;i&lt;document.forms[0].elements.length;i++)<br />
	{<br />
		var e=document.forms[0].elements[i];<br />
		if ((e.name != 'allbox') &amp;&amp; (e.type=='checkbox'))<br />
		{<br />
			e.checked=document.forms[0].allbox.checked;<br />
		}<br />
	}<br />
}<br />
&lt;/script&gt;<br />
&lt;br&gt;<br />
     &lt;input name=&quot;yes&quot; type=&quot;submit&quot; value=&quot;Yes&quot;&gt;<br />
     &lt;input name=&quot;no&quot; type=&quot;submit&quot; value=&quot;No&quot;&gt;<br />
&lt;br&gt;<br />
<br />
&lt;?<br />
     $result3  = $db-&gt;query(&quot;SELECT * FROM UnitsZones WHERE OwnerID=\&quot;&quot; . $Owner . &quot;\&quot;&quot;); 	  <br />
     while($unitstoattack= $db-&gt;fetch($result3)){<br />
     		  if($unitstoattack[Checked]==&quot;Y&quot;){<br />
                       echo &quot;Unit Number: $unitstoattack[UnitNumber]  Zone:$unitstoattack[ZoneID]    Description:$unitstoattack[UnitDescription]&quot;;<br />
<br />
     echo&quot;&lt;INPUT TYPE=checkbox NAME=checkbox[] VALUE=1&gt;   <br />
     &lt;br&gt;&quot;; <br />
     $unitnumberarray = array($unitstoattack[UnitNumber]);              <br />
                    }         <br />
     }          <br />
?&gt;<br />
     &lt;/form&gt; <br />
     &lt;/td&gt;<br />
     &lt;/tr&gt;<br />
     &lt;/table&gt;<br />
<br />
<br />
    <br />
<br />
&lt;?<br />
}<br />
<br />
elseif($_POST['yes']){<br />
<br />
for($i = 0; $i &lt; 12; ++$i)<br />
{<br />
/*This is where I had planned on simply updating the field to Y in <br />
* the mysqul database the 12 above was to be the sizeof the array<br />
*<br />
*/<br />
    echo &quot;HI&quot;;<br />
    echo &quot;$unitnumberarray[$i] &lt;BR&gt;  &quot;;   <br />
    if($checkbox[$i]== true){echo &quot;YAY&quot;;}<br />
}<br />
    <br />
                  <br />
<br />
}<br />
<br />
include(&quot;../includes/inc-footer.php&quot;);<br />
?&gt;<br />
<br />
<br />
<br />
<br />
[icode php]</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>honos1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235984.html</guid>
		</item>
		<item>
			<title>How we can start to make a social networking website ??</title>
			<link>http://www.daniweb.com/forums/thread235977.html</link>
			<pubDate>Wed, 04 Nov 2009 14:15:29 GMT</pubDate>
			<description>Hi, 
 
I am new in making a social networking site. I want to make such a social networking site which have this type of feature: 
1.*Search EASILY for artists by name, type of art (about 10 variables), geography, etc - so the Database link and lookup function has to be solid, easy to expand, etc....</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I am new in making a social networking site. I want to make such a social networking site which have this type of feature:<br />
1.<span style="font-weight:bold">Search EASILY for artists by name, type of art (about 10 variables), geography, etc - so the Database link and lookup function has to be solid, easy to expand, etc. Our current Member dbase in MS Access or Excel has to be easily imported.</span><br />
2.<span style="font-weight:bold">Find &amp; see the art in photos, and also either links to,- or embedded youtube etc VIDEO</span><br />
3.<span style="font-weight:bold">Be easy for the user to upload their photos, info, etc.</span><br />
<br />
<br />
How i can make such type of website which should have these type of features.<br />
Please help me to provide if there is some code or url or free code of social networking site which i can get easily.Please help me to provide this.<br />
<br />
Thanks,<br />
gargan</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>gagan22</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235977.html</guid>
		</item>
		<item>
			<title>PHP Web FTP Software</title>
			<link>http://www.daniweb.com/forums/thread235975.html</link>
			<pubDate>Wed, 04 Nov 2009 13:44:33 GMT</pubDate>
			<description>Dear All, 
 
Since in Our Country is blocking the FTP port 21 and others port, we only use Web2FTP service. But unfortunately Web2FTP service is also down. 
 
Do you know a good PHP based WebFTP script. 
 
many thanks in advance, 
 
regards, 
saya</description>
			<content:encoded><![CDATA[<div>Dear All,<br />
<br />
Since in Our Country is blocking the FTP port 21 and others port, we only use Web2FTP service. But unfortunately Web2FTP service is also down.<br />
<br />
Do you know a good PHP based WebFTP script.<br />
<br />
many thanks in advance,<br />
<br />
regards,<br />
saya</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>sayakyi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235975.html</guid>
		</item>
		<item>
			<title>Problem Posting values</title>
			<link>http://www.daniweb.com/forums/thread235969.html</link>
			<pubDate>Wed, 04 Nov 2009 13:22:48 GMT</pubDate>
			<description><![CDATA[Hi Guys, a while back i was working on a components list for a marquee firm, the project was put on hold for a while but now i'm taking it up again. A while back i asked how to add extra input fields with an onClick button, this was achieved like so; 
  <div class="codeblock"> <div class="spaced">...]]></description>
			<content:encoded><![CDATA[<div>Hi Guys, a while back i was working on a components list for a marquee firm, the project was put on hold for a while but now i'm taking it up again. A while back i asked how to add extra input fields with an onClick button, this was achieved like so;<br />
 <pre style="margin:20px; line-height:13px">&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt; <br />
<br />
&nbsp; &nbsp; function addField() { <br />
&nbsp; &nbsp; var tbody = document.getElementById(&quot;tblBody&quot;); <br />
&nbsp; &nbsp; var ctr = tbody.getElementsByTagName(&quot;input&quot;).length + 1; <br />
&nbsp; &nbsp; var input; <br />
&nbsp;  <br />
&nbsp; &nbsp; if ( ctr &gt; 10 ) { <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert (&quot;Only Select 10 at a time please!&quot;); <br />
&nbsp; &nbsp; }else{ <br />
&nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; if (document.all){ //input.name doesn't work in IE <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; input = document.createElement('&lt;input name=&quot;field_'+ctr+'&quot;&gt; x &lt;input name=&quot;field_'+ctr+'&quot;&gt;'); <br />
&nbsp; &nbsp; &nbsp; &nbsp; }else{ <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; input = document.createElement('input'); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; input.name = &quot;marquee_&quot;+ctr; <br />
&nbsp; &nbsp; &nbsp; &nbsp; } <br />
&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; input.id = input.name; <br />
&nbsp; &nbsp; &nbsp; &nbsp; input.type = &quot;text&quot;; <br />
&nbsp; &nbsp; &nbsp; &nbsp; input.value = &quot;&quot;; <br />
&nbsp; &nbsp; &nbsp; &nbsp; input.className = &quot;textfield&quot;; <br />
&nbsp; &nbsp; &nbsp; &nbsp; var cell = document.createElement('td'); <br />
&nbsp; &nbsp; &nbsp; &nbsp; cell.style.height = '30px'; <br />
&nbsp; &nbsp; &nbsp; &nbsp; cell.appendChild(document.createTextNode(ctr+&quot;. &quot;)); <br />
&nbsp; &nbsp; &nbsp; &nbsp; cell.appendChild(input); <br />
&nbsp; &nbsp; &nbsp; &nbsp; var row = document.createElement('tr'); <br />
&nbsp; &nbsp; &nbsp; &nbsp; row.appendChild(cell); <br />
&nbsp; &nbsp; &nbsp; &nbsp; tbody.appendChild(row); <br />
&nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; window.document.the_form.count.value = ctr; <br />
&nbsp;  <br />
&nbsp; &nbsp; } <br />
}&nbsp; <br />
&lt;/script&gt;</pre><br />
And the html form is like so;<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;form name=&quot;the_form&quot; id=&quot;the_form&quot; method=&quot;post&quot; action=&quot;&lt;?php $_SERVER['PHP_SELF'];?&gt;&quot;&gt; <br />
&nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;table width=&quot;100%&quot;&nbsp; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tbody id=&quot;tblBody&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td height=&quot;30&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1. &lt;input name=&quot;marquee_1&quot; type=&quot;text&quot; class=&quot;textfield&quot; id=&quot;field_1&quot; /&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td height=&quot;30&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2. &lt;input name=&quot;marquee_2&quot; type=&quot;text&quot; class=&quot;textfield&quot; id=&quot;field_2&quot; /&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td height=&quot;30&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 3. &lt;input name=&quot;marquee_3&quot; type=&quot;text&quot; class=&quot;textfield&quot; id=&quot;field_3&quot; /&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;tbody&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input name=&quot;count&quot; type=&quot;hidden&quot; id=&quot;count&quot; value=&quot;4&quot;/&gt;&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp;  &lt;input name=&quot;add&quot; type=&quot;button&quot; class=&quot;button&quot; id=&quot;add&quot; value=&quot;Add Another&quot; onClick=&quot;addField();&quot;/&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Get Components&quot; /&gt;</pre><br />
The form (as you can tell) submits to it's self and the the database is accessed.<br />
<br />
The problem is, the first three fields work fine but i can't seem to post any more after the 3rd! i even tried  <pre style="margin:20px; line-height:13px">&lt;?php $one = $_POST['marquee_one']; ~ $ten = $_POST['marquee_ten'];</pre>  To see if it worked that way but it did not.<br />
Does anyone have an idea about this?<br />
<br />
Also when querying the db do i need to run a mysql_query for each posted item? or (like the method above do i need to run it 10 times)<br />
<br />
Many thanks for looking. :)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>emhmk1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235969.html</guid>
		</item>
		<item>
			<title>upload file and save the content to specific fields in mysql</title>
			<link>http://www.daniweb.com/forums/thread235947.html</link>
			<pubDate>Wed, 04 Nov 2009 12:09:42 GMT</pubDate>
			<description>Hi, 
Is it possible to upload a file that contains some data  
and directly save the data in  specific fields as in database using php?. 
 
this is important as the data retrieved according to their field name. 
Thank you.</description>
			<content:encoded><![CDATA[<div>Hi,<br />
Is it possible to upload a file that contains some data <br />
and directly save the data in  specific fields as in database using php?.<br />
<br />
this is important as the data retrieved according to their field name.<br />
Thank you.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>tulipputih</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235947.html</guid>
		</item>
		<item>
			<title>PHP echo email address as mailto</title>
			<link>http://www.daniweb.com/forums/thread235932.html</link>
			<pubDate>Wed, 04 Nov 2009 10:32:29 GMT</pubDate>
			<description><![CDATA[Hi, 
I'm sure this is very simple but am unable to find out how.  
How do I display an email address as a mailto link like in HTML? I have records displayed from a mysql db but would like to display a member email address that acts as a mailto link. Below displays the code that echos the value but...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
I'm sure this is very simple but am unable to find out how. <br />
How do I display an email address as a mailto link like in HTML? I have records displayed from a mysql db but would like to display a member email address that acts as a mailto link. Below displays the code that echos the value but of course I would like the value (email address) to function as a mailto link in HTML <br />
 <pre style="margin:20px; line-height:13px">&lt;?php echo $row_master_view&#91;'email'&#93;; ?&gt;</pre>Thanks in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>meko22</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235932.html</guid>
		</item>
		<item>
			<title>How to store</title>
			<link>http://www.daniweb.com/forums/thread235903.html</link>
			<pubDate>Wed, 04 Nov 2009 08:55:57 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">hi all<br />
<br />
How to store xls and xslx ,txt extension file to mysql database?</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>mike14</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235903.html</guid>
		</item>
		<item>
			<title>validation</title>
			<link>http://www.daniweb.com/forums/thread235879.html</link>
			<pubDate>Wed, 04 Nov 2009 07:31:28 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">hi<br />
can any one tell me how validation can be done in PHP WITH OUT USINGjavascript</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>elanorejoseph</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235879.html</guid>
		</item>
		<item>
			<title>Mp3 file upload problem</title>
			<link>http://www.daniweb.com/forums/thread235869.html</link>
			<pubDate>Wed, 04 Nov 2009 06:30:31 GMT</pubDate>
			<description><![CDATA[Hi frnds... 
 
 
i m trying to upload mp3 file ..this is my code.. 
 
 
---Quote--- 
upload_max_filesize = 20M;//in php.ini 
---End Quote--- 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Hi frnds...<br />
<br />
<br />
i m trying to upload mp3 file ..this is my code..<br />
<br />
<div style="margin:20px; margin-top:5px; "> <div class="smallfont" style="margin-bottom:2px">Quote:</div> <table cellpadding="5" cellspacing="0" border="0" width="100%"> <tr> <td class="alt2"> <hr />  upload_max_filesize = 20M;//in php.ini  <hr /> </td> </tr> </table> </div> <pre style="margin:20px; line-height:13px">$tname = $_FILES[&quot;tphoto&quot;][&quot;name&quot;];<br />
$ttmp_name = $_FILES[&quot;tphoto&quot;][&quot;tmp_name&quot;];<br />
<br />
&nbsp;//Audio File Uploading....&nbsp; <br />
&nbsp;if($_FILES['tphoto']['type'] == 'audio/mpeg'){<br />
&nbsp;$dir=&quot;../../music/$aid&quot;;<br />
&nbsp;move_uploaded_file($ttmp_name,&quot;$dir&quot;.&quot;/&quot;.&quot;$tname&quot;);<br />
&nbsp;}</pre><br />
it displays no error...but, no output.<br />
<br />
can any body give me some suggestion plz...<br />
<br />
Thanks in advance...<br />
Sari K</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>sarithak</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235869.html</guid>
		</item>
		<item>
			<title>Thumb an image</title>
			<link>http://www.daniweb.com/forums/thread235863.html</link>
			<pubDate>Wed, 04 Nov 2009 05:58:34 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">hi can any one tell&nbsp; me how i can make a thumb nail of an image?</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>elanorejoseph</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235863.html</guid>
		</item>
		<item>
			<title>error problem</title>
			<link>http://www.daniweb.com/forums/thread235857.html</link>
			<pubDate>Wed, 04 Nov 2009 05:21:23 GMT</pubDate>
			<description><![CDATA[hello... 
              
                 i am doing shopping cart. in that there is billing address is there and shipping address is there. in there between "copy" link is there. when that page is loading "billing address fields comming and 'copy' link is also comming. but  shipping address fields...]]></description>
			<content:encoded><![CDATA[<div>hello...<br />
             <br />
                 i am doing shopping cart. in that there is billing address is there and shipping address is there. in there between &quot;copy&quot; link is there. when that page is loading &quot;billing address fields comming and 'copy' link is also comming. but  shipping address fields are not comming. after 'copy' link bellow error occuring. billing address , copy link, shipping address fields are in one form. plz solve my prblm.<br />
<br />
&quot;HTTP/1.1 200 OK Date: Wed, 04 Nov 2009 05:13:59 GMT Server: Apache/2.0.55 (Win32) PHP/5.1.4 X-Powered-By: PHP/5.1.4 Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Keep-Alive: timeout=15, max=97 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/html 1200d &quot;</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>pushpakalpana</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235857.html</guid>
		</item>
		<item>
			<title>Suggestions on X-cart opensource ?</title>
			<link>http://www.daniweb.com/forums/thread235846.html</link>
			<pubDate>Wed, 04 Nov 2009 04:17:38 GMT</pubDate>
			<description>Hai Every one... 
 
Im totally new to X-cart open source .Its a e-commerce source actually..And my company needs to create a shopping cart with x-cart.. 
Any suggestions , tips on this will always welcome... 
 
thank you, 
shanti..</description>
			<content:encoded><![CDATA[<div>Hai Every one...<br />
<br />
Im totally new to X-cart open source .Its a e-commerce source actually..And my company needs to create a shopping cart with x-cart..<br />
Any suggestions , tips on this will always welcome...<br />
<br />
thank you,<br />
shanti..</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>Shanti Chepuru</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235846.html</guid>
		</item>
		<item>
			<title>Deleting rows</title>
			<link>http://www.daniweb.com/forums/thread235837.html</link>
			<pubDate>Wed, 04 Nov 2009 03:32:13 GMT</pubDate>
			<description>Hi 
What i want to do is using php code to write to delete the entire row in the db. each row has its own id, field and content. instead of deleting the row with the id, can i do by the field name? how would i do this?</description>
			<content:encoded><![CDATA[<div>Hi<br />
What i want to do is using php code to write to delete the entire row in the db. each row has its own id, field and content. instead of deleting the row with the id, can i do by the field name? how would i do this?</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/thread235837.html</guid>
		</item>
		<item>
			<title>if isset ==</title>
			<link>http://www.daniweb.com/forums/thread235824.html</link>
			<pubDate>Wed, 04 Nov 2009 02:25:27 GMT</pubDate>
			<description><![CDATA[I'm trying to display a menu option only for certain session id's and for some reason it displays for ALL session id's ... not just the ones i have indicated. Not too sure why it's doing this, it all looks okay to me.  
  <div class="codeblock"> <div class="spaced"> <div style="float:right;...]]></description>
			<content:encoded><![CDATA[<div>I'm trying to display a menu option only for certain session id's and for some reason it displays for ALL session id's ... not just the ones i have indicated. Not too sure why it's doing this, it all looks okay to me. <br />
 <pre style="margin:20px; line-height:13px">&lt;?PHP <br />
if(isset($_SESSION['user_id']) &amp;&amp; $_SESSION['user_id'] == 1 ||&nbsp; 68)<br />
{?&gt;<br />
&lt;li&gt;&lt;span class=&quot;qmdivider qmdividery&quot; &gt;&lt;/span&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a class=&quot;qmparent&quot; href=&quot;javascript<b></b>:void(0);&quot;&gt;ADMIN&lt;/a&gt; <br />
<br />
&lt;ul style=&quot;width:150px;&quot;&gt;<br />
&lt;li&gt;&lt;a href=&quot;/admin/&quot;&gt;Admin Home&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;span class=&quot;qmdivider qmdividerx&quot; &gt;&lt;/span&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;span class=&quot;qmtitle&quot; &gt;Hit Counter&lt;/span&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&quot;javascript<b></b>:void(0);&quot;&gt;Today&amp;nbsp;&lt;?=$hcount?&gt;&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;span class=&quot;qmdivider qmdividerx&quot; &gt;&lt;/span&gt;&lt;/li&gt;<br />
&lt;/ul&gt;&lt;/li&gt; <br />
&lt;? } ?&gt;</pre>Any ideas?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>CFROG</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235824.html</guid>
		</item>
		<item>
			<title>Deleting rows</title>
			<link>http://www.daniweb.com/forums/thread235823.html</link>
			<pubDate>Wed, 04 Nov 2009 02:24:12 GMT</pubDate>
			<description>Hi 
What i want to do is using php code to write to delete the entire row in the db. each row has its own id, field and content. instead of deleting the row with the id, can i do by the field name? how would i do this?</description>
			<content:encoded><![CDATA[<div>Hi<br />
What i want to do is using php code to write to delete the entire row in the db. each row has its own id, field and content. instead of deleting the row with the id, can i do by the field name? how would i do this?</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/thread235823.html</guid>
		</item>
		<item>
			<title>Messaging System</title>
			<link>http://www.daniweb.com/forums/thread235812.html</link>
			<pubDate>Wed, 04 Nov 2009 00:56:05 GMT</pubDate>
			<description><![CDATA[Hello, 
 
I'm a pretty basic php user, and I'm wondering how someone would go about implementing a message system into a website with different users.  It doesn't have to be anything specific, I'm just wondering about the basic design of it. 
 
Thanks]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I'm a pretty basic php user, and I'm wondering how someone would go about implementing a message system into a website with different users.  It doesn't have to be anything specific, I'm just wondering about the basic design of it.<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>phouse512</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235812.html</guid>
		</item>
		<item>
			<title>Parse Error in Class</title>
			<link>http://www.daniweb.com/forums/thread235769.html</link>
			<pubDate>Tue, 03 Nov 2009 21:32:54 GMT</pubDate>
			<description><![CDATA[I am writing this simple code. I used this class in PHP 10 minutes ago and now when I did it again it gives me this error. I cannot see the difference 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>I am writing this simple code. I used this class in PHP 10 minutes ago and now when I did it again it gives me this error. I cannot see the difference<br />
 <pre style="margin:20px; line-height:13px">&lt;?php<br />
<br />
class user<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; public $Username;<br />
&nbsp; &nbsp; &nbsp; &nbsp; public $FullName;<br />
&nbsp; &nbsp; &nbsp; &nbsp; public $Password;<br />
&nbsp; &nbsp; &nbsp; &nbsp; public $LoggedIn;<br />
&nbsp; &nbsp; &nbsp; &nbsp; public $JoinDate;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; public function changePassword($newPass)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;Password = md5($newPass);<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
}<br />
<br />
$user = new user();<br />
<br />
$user-&gt;Username = 'Username';<br />
$user-&gt;FullName = 'Name';<br />
$user-&gt;Password = 'password';<br />
<br />
echo $user-&gt;Username;<br />
echo $user-&gt;changePassword($newPass);<br />
<br />
?&gt;</pre><br />
This is the error I get:<br />
Parse error: syntax error, unexpected $end in C:\xampp\htdocs\Lessons\Arrays\test.php on line 26<br />
<br />
I would really appreicate someones help in this as I am new to OOP in PHP.<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>abrocketman</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235769.html</guid>
		</item>
		<item>
			<title>Age Calculation</title>
			<link>http://www.daniweb.com/forums/thread235754.html</link>
			<pubDate>Tue, 03 Nov 2009 20:18:58 GMT</pubDate>
			<description><![CDATA[Hi guys, i have been trawling around looking for a decent and simple way of working out an age from a birthday. 
 
The way i'm working is a date of birth is added to a database then when pulled we echo the actual age and not the d.o.b. 
 
It's probably quite simple but i can't seem to figure it...]]></description>
			<content:encoded><![CDATA[<div>Hi guys, i have been trawling around looking for a decent and simple way of working out an age from a birthday.<br />
<br />
The way i'm working is a date of birth is added to a database then when pulled we echo the actual age and not the d.o.b.<br />
<br />
It's probably quite simple but i can't seem to figure it out, Also there may not be an actual day eg 06/2009 instead of 13/06/2009 if you see my meaning.<br />
<br />
Any direction would be great! <br />
<br />
Thanks again...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>emhmk1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235754.html</guid>
		</item>
		<item>
			<title>Static Content + Paging</title>
			<link>http://www.daniweb.com/forums/thread235713.html</link>
			<pubDate>Tue, 03 Nov 2009 18:01:19 GMT</pubDate>
			<description><![CDATA[Hello everyone, and thank you in advance for any tips you may be able to provide. 
 
I am hoping there is a way to do paging with static html content with php? 
 
I have to redesign a very text-heavy site and would like to limit the page lengths of the 'whitepapers' that need to exist online.  
...]]></description>
			<content:encoded><![CDATA[<div>Hello everyone, and thank you in advance for any tips you may be able to provide.<br />
<br />
I am hoping there is a way to do paging with static html content with php?<br />
<br />
I have to redesign a very text-heavy site and would like to limit the page lengths of the 'whitepapers' that need to exist online. <br />
<br />
Is it possible to do paging without a db?<br />
<br />
Again, thanks to anyone who can send me in the right direction with this.<br />
<br />
-tom</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>dottomm</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235713.html</guid>
		</item>
		<item>
			<title>Select Menu Declaration in PHP</title>
			<link>http://www.daniweb.com/forums/thread235708.html</link>
			<pubDate>Tue, 03 Nov 2009 17:28:53 GMT</pubDate>
			<description><![CDATA[How do you declare your select menu in the PHP? 
Does it have to be an array of variables? One single variable? 
Something else? 
Let's say this one: 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>How do you declare your select menu in the PHP?<br />
Does it have to be an array of variables? One single variable?<br />
Something else?<br />
Let's say this one:<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;select&nbsp; name=&quot;search&quot; title=&quot;Search Criteria&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;id&quot;&gt;ID Status&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;ip&quot;&gt;IP Status&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;pd&quot;&gt;PD Status&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;option value=&quot;nva&quot;&gt;NVA Status&lt;/option&gt;<br />
&lt;/select&gt;</pre><br />
Thank you!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>levsha</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235708.html</guid>
		</item>
		<item>
			<title>PHP Security Framework needed...</title>
			<link>http://www.daniweb.com/forums/thread235707.html</link>
			<pubDate>Tue, 03 Nov 2009 17:23:42 GMT</pubDate>
			<description>Hello, 
 
I have just started to develop a PHP/mySQL site and was wondering if there are any Open Source Security Frameworks they can recommended. 
 
Not only do I want to deal with data hacking issues, but also want to know what the best practices to insure that users are not bookmarking or...</description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I have just started to develop a PHP/mySQL site and was wondering if there are any Open Source Security Frameworks they can recommended.<br />
<br />
Not only do I want to deal with data hacking issues, but also want to know what the best practices to insure that users are not bookmarking or manipulating strings that can be passed through the URL. For example, I have list of users where they can EDIT their info via a GET navigation link. I would prefer them not having the ability it bookmark the link or even better be able to access the user record via their HISTORY.<br />
<br />
In a nutshell, I am seeking a way to make user use the system as developed. For example, I want make a user does not have the ability to reach an update form unless they accessed it from the proper page.<br />
<br />
Any feedback on this would be greatly appreciated. Thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>dwdata</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235707.html</guid>
		</item>
		<item>
			<title>Opening email client with pdf attached to it</title>
			<link>http://www.daniweb.com/forums/thread235682.html</link>
			<pubDate>Tue, 03 Nov 2009 15:22:48 GMT</pubDate>
			<description>Hi, 
 
I can create pdf using fdf and send email out with pdf attached using PHPMailer on press of button. Now i would like to know how can i open an email client with pdf created with fpdf attached to it, user can then manually send the email with send button on email client. 
 
Thanks, 
Vidya</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I can create pdf using fdf and send email out with pdf attached using PHPMailer on press of button. Now i would like to know how can i open an email client with pdf created with fpdf attached to it, user can then manually send the email with send button on email client.<br />
<br />
Thanks,<br />
Vidya</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>vs224</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235682.html</guid>
		</item>
		<item>
			<title>json and multi-dimensional array</title>
			<link>http://www.daniweb.com/forums/thread235677.html</link>
			<pubDate>Tue, 03 Nov 2009 14:58:00 GMT</pubDate>
			<description><![CDATA[Hello everyone, 
 
I have a problem when i use json and array. And i need your help. 
 
Here is my code:  
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox"...]]></description>
			<content:encoded><![CDATA[<div>Hello everyone,<br />
<br />
I have a problem when i use json and array. And i need your help.<br />
<br />
Here is my code: <br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while($row = mysql_fetch_assoc($result)){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo json_encode($row);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</pre><br />
The result is: <br />
<br />
 <pre style="margin:20px; line-height:13px">{&quot;id&quot;:&quot;1&quot;,&quot;title&quot;:&quot;event1&quot;,&quot;start&quot;:&quot;2009-11-10 14:18:15&quot;,&quot;end&quot;:&quot;2009-11-03 14:38:22&quot;,&quot;allDay&quot;:&quot;false&quot;,&quot;url&quot;:null}{&quot;id&quot;:&quot;2&quot;,&quot;title&quot;:&quot;event2&quot;,&quot;start&quot;:&quot;2009-11-09 15:41:20&quot;,&quot;end&quot;:&quot;2009-11-10 16:41:25&quot;,&quot;allDay&quot;:&quot;false&quot;,&quot;url&quot;:null}</pre><br />
But i want the result is like this:<br />
<br />
 <pre style="margin:20px; line-height:13px"> [{&quot;id&quot;:&quot;1&quot;,&quot;title&quot;:&quot;event1&quot;,&quot;start&quot;:&quot;2009-11-10 14:18:15&quot;,&quot;end&quot;:&quot;2009-11-03 14:38:22&quot;,&quot;allDay&quot;:&quot;false&quot;,&quot;url&quot;:null},{&quot;id&quot;:&quot;2&quot;,&quot;title&quot;:&quot;event2&quot;,&quot;start&quot;:&quot;2009-11-09 15:41:20&quot;,&quot;end&quot;:&quot;2009-11-10 16:41:25&quot;,&quot;allDay&quot;:&quot;false&quot;,&quot;url&quot;:null}]</pre><br />
How can i accomplish this? Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>garcon1986</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235677.html</guid>
		</item>
		<item>
			<title>MySQL to search for spelling mistakes in rows, columns?</title>
			<link>http://www.daniweb.com/forums/thread235676.html</link>
			<pubDate>Tue, 03 Nov 2009 14:40:39 GMT</pubDate>
			<description><![CDATA[Hi!  
 
After years I decided to sign up! 
 
Can you please tell me of a bot tutorial or getting a solution to my problem. What direction should I be going. 
 
I want to make a PHP script that searches a MySQL table's columns, rows and then returns all the spelling mistakes in those cells.. 
...]]></description>
			<content:encoded><![CDATA[<div>Hi! <br />
<br />
After years I decided to sign up!<br />
<br />
Can you please tell me of a bot tutorial or getting a solution to my problem. What direction should I be going.<br />
<br />
I want to make a PHP script that searches a MySQL table's columns, rows and then returns all the spelling mistakes in those cells..<br />
<br />
Anyone?<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>slr</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235676.html</guid>
		</item>
		<item>
			<title>save file xls or txt</title>
			<link>http://www.daniweb.com/forums/thread235654.html</link>
			<pubDate>Tue, 03 Nov 2009 13:09:02 GMT</pubDate>
			<description><![CDATA[Hi! 
I need help... i want to make a button that when i click on it... it save's some attributes of my database (postgreSQL), and it save in .xls or .txt file... 
 
how can i make that? is it possible?? 
 
i can show my attributes on a table view on my webpage.. but i wanted to save them in a file...]]></description>
			<content:encoded><![CDATA[<div>Hi!<br />
I need help... i want to make a button that when i click on it... it save's some attributes of my database (postgreSQL), and it save in .xls or .txt file...<br />
<br />
how can i make that? is it possible??<br />
<br />
i can show my attributes on a table view on my webpage.. but i wanted to save them in a file .xls or .txt...<br />
<br />
if you dindt understand what i mean, feel free to ask..<br />
<br />
<br />
thanks a lot.. i appreciate a lot the help i already had before (love this forum)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>gpss</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235654.html</guid>
		</item>
		<item>
			<title>How to Convert .xls file to .csv file in php code</title>
			<link>http://www.daniweb.com/forums/thread235646.html</link>
			<pubDate>Tue, 03 Nov 2009 12:20:06 GMT</pubDate>
			<description>hi, 
 
if any one know that how to convert a excel file to csv file with php coding????? 
actually i want to make a site where user upload the data as a excel 
file format. 
 
and when they clicked button the  excel file is changing in csv file first  
then  the csv file data entered into the...</description>
			<content:encoded><![CDATA[<div>hi,<br />
<br />
if any one know that how to convert a <span style="color:Red">excel file to csv</span> file with <span style="color:Red">php </span>coding?????<br />
actually i want to make a site where user upload the data as a <span style="color:Red">excel<br />
file format.</span><br />
<br />
and when they clicked button the  <span style="color:Red">excel file is changing in csv file</span> first <br />
then  the <span style="color:Red">csv file data entered into the database</span> directly.<br />
<br />
i know the procedure to upload data from <span style="color:Red">csv to mysql</span> but i dont know how to change the type from <span style="color:Red">excel to csv.<br />
</span><br />
please help me.thank u.</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/thread235646.html</guid>
		</item>
		<item>
			<title>PRoblem in Delete</title>
			<link>http://www.daniweb.com/forums/thread235644.html</link>
			<pubDate>Tue, 03 Nov 2009 12:07:10 GMT</pubDate>
			<description>Hello Friends I am new to PHP can any one help me  
i am facing one problem  
whenever i am working on local host my delete command is working without problem 
but whenever i am uploading this file on internet through FTP 
the command not deleting any records 
 
Every one help wuld be appreciated...</description>
			<content:encoded><![CDATA[<div>Hello Friends I am new to PHP can any one help me <br />
i am facing one problem <br />
whenever i am working on local host my delete command is working without problem<br />
but whenever i am uploading this file on internet through FTP<br />
the command not deleting any records<br />
<br />
Every one help wuld be appreciated<br />
thanks manish mannan</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>manishmannan</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235644.html</guid>
		</item>
		<item>
			<title>Pagination Without Limit in Query</title>
			<link>http://www.daniweb.com/forums/thread235600.html</link>
			<pubDate>Tue, 03 Nov 2009 09:40:04 GMT</pubDate>
			<description>is there any way to paginate the page without using limit in Query..!! 
Actually i m working on predefined stored procedures. and i m not allowed to make in changes that..!!! and that does contain limit function at all..!!!! 
 
any suggestions how should i do it.? 
 
thanks in advance</description>
			<content:encoded><![CDATA[<div>is there any way to paginate the page without using limit in Query..!!<br />
Actually i m working on predefined stored procedures. and i m not allowed to make in changes that..!!! and that does contain limit function at all..!!!!<br />
<br />
any suggestions how should i do it.?<br />
<br />
thanks in advance</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/thread235600.html</guid>
		</item>
		<item>
			<title>Bulk Uploading Audio files to FTP?</title>
			<link>http://www.daniweb.com/forums/thread235599.html</link>
			<pubDate>Tue, 03 Nov 2009 09:38:32 GMT</pubDate>
			<description>Hi frnds... 
 
i m doing music portal. i need to upload Albums to FTP from admin side.Each Album having 5/6 audio files. Each song details should be saved in my DB also..plz give me some suggestions ...</description>
			<content:encoded><![CDATA[<div>Hi frnds...<br />
<br />
i m doing music portal. i need to upload Albums to FTP from admin side.Each Album having 5/6 audio files. Each song details should be saved in my DB also..plz give me some suggestions ...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>sarithak</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235599.html</guid>
		</item>
		<item>
			<title>implementing XML</title>
			<link>http://www.daniweb.com/forums/thread235576.html</link>
			<pubDate>Tue, 03 Nov 2009 06:23:46 GMT</pubDate>
			<description><![CDATA[Hello people, 
 
      I had an idea of storing my website's feedback form data into an xml file rather than using a database table. It works faster using an xml file when retrieving data than using a database table. Please suggest me, what if I use xml files for storing complex data. I am working...]]></description>
			<content:encoded><![CDATA[<div>Hello people,<br />
<br />
      I had an idea of storing my website's feedback form data into an xml file rather than using a database table. It works faster using an xml file when retrieving data than using a database table. Please suggest me, what if I use xml files for storing complex data. I am working in php, what kind of parsing methods can I use to make the process efficient if I deal with larger xml files.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>shankmuchlove</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235576.html</guid>
		</item>
		<item>
			<title>how create a streaming video in a web page using php?? is it possible ??</title>
			<link>http://www.daniweb.com/forums/thread235545.html</link>
			<pubDate>Tue, 03 Nov 2009 03:43:52 GMT</pubDate>
			<description>how to have a streaming video in a web page just like youtube?</description>
			<content:encoded><![CDATA[<div>how to have a streaming video in a web page just like youtube?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>new_divine</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235545.html</guid>
		</item>
		<item>
			<title>how to set a session to destroy itself unset whatever in a certain amount of time</title>
			<link>http://www.daniweb.com/forums/thread235503.html</link>
			<pubDate>Mon, 02 Nov 2009 23:22:58 GMT</pubDate>
			<description>i found that your supposed to use this: 
session.gc_maxlifetime 
 but i dont know how. does anyone know how i can destroy a log in session so the user wont be logged in 30 minutes later. 
?</description>
			<content:encoded><![CDATA[<div>i found that your supposed to use this:<br />
session.gc_maxlifetime<br />
 but i dont know how. does anyone know how i can destroy a log in session so the user wont be logged in 30 minutes later.<br />
?</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/thread235503.html</guid>
		</item>
		<item>
			<title>Is this a PHP installation problem??</title>
			<link>http://www.daniweb.com/forums/thread235476.html</link>
			<pubDate>Mon, 02 Nov 2009 21:13:14 GMT</pubDate>
			<description><![CDATA[I'm getting the following error 
 
A PHP Error was encountered  Severity: Notice  Message: Trying to get property of non-object 
 
Is this an installation error?? I'm using php 5.2.11 on centos 5.4.]]></description>
			<content:encoded><![CDATA[<div>I'm getting the following error<br />
<br />
A PHP Error was encountered  Severity: Notice  Message: Trying to get property of non-object<br />
<br />
Is this an installation error?? I'm using php 5.2.11 on centos 5.4.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>bonzi200x</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235476.html</guid>
		</item>
		<item>
			<title>Displaying friends on profile page</title>
			<link>http://www.daniweb.com/forums/thread235469.html</link>
			<pubDate>Mon, 02 Nov 2009 20:51:25 GMT</pubDate>
			<description><![CDATA[Hi all, i've recently made a friends script that adds the id of user who requested the friend (user) and the requestee (req), with a confirmed column, 0 if pending, 1 if accepted. 
 
i was looking for a way to search through the friends table for all friends of a certain id, i would need to search...]]></description>
			<content:encoded><![CDATA[<div>Hi all, i've recently made a friends script that adds the id of user who requested the friend (user) and the requestee (req), with a confirmed column, 0 if pending, 1 if accepted.<br />
<br />
i was looking for a way to search through the friends table for all friends of a certain id, i would need to search user column and req column where confirmed =1, then put all the values into an array and list them on the profile page. but im stuck, <br />
<br />
 <pre style="margin:20px; line-height:13px">$connect = mysql_connect(&quot;localhost&quot;, &quot;root&quot;, &quot;&quot;) or die (mysql_error());<br />
$connect;<br />
mysql_select_db (&quot;phplogin&quot;);<br />
$userfriend = mysql_query (&quot;SELECT req FROM friends WHERE user='$profileid' AND confirmed=1&quot;);<br />
$userfriendarray = mysql_fetch_array($userfriend);<br />
$userfriendreq = $userfriendarray['req'];<br />
<br />
<br />
$userreq = mysql_query (&quot;SELECT user FROM friends WHERE req='$profileid' AND confirmed=1&quot;);<br />
if ($userreq != 0)<br />
{<br />
$userreqarray = mysql_fetch_array($userreq);<br />
$userreq2 = $userreqarray['user'];<br />
}<br />
if ($userreqarray != 0 &amp;&amp; $userfriendarray!= 0) // merges arrays if they both contain data<br />
{<br />
$friends = array_merge($userreqarray, $userfriendarray);<br />
$friend1 = array_rand($friends);<br />
}<br />
elseif ($userreqarray != 0)<br />
{<br />
var_dump ($userreqarray);<br />
foreach($userreqarray as $userreq2);<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;$userreq2&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
}<br />
elseif($userfriendarray != 0)<br />
{<br />
foreach($userfriendarray as $req5 =&gt; $reqno) // there is one entry in the table yet this returns 2 values? i dont know why?<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp;  echo &quot;$reqno&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
}<br />
echo '&lt;br&gt;&lt;/center&gt;&lt;/a&gt;&lt;/div&gt;';<br />
<br />
<br />
<br />
?&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>enzo420</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235469.html</guid>
		</item>
		<item>
			<title>Is the a correct url regex?</title>
			<link>http://www.daniweb.com/forums/thread235462.html</link>
			<pubDate>Mon, 02 Nov 2009 20:17:56 GMT</pubDate>
			<description><![CDATA[Hi, i was searching for a correct url regex, but unsure how would i do it. I am not very expert in regex. So can't be sure that this will always work. I wanted to be able to match even inner urls, such as: 
http://google.com 
http://www.google.com 
http://google.com/something?some=unsome&w=anything...]]></description>
			<content:encoded><![CDATA[<div>Hi, i was searching for a correct url regex, but unsure how would i do it. I am not very expert in regex. So can't be sure that this will always work. I wanted to be able to match even inner urls, such as:<br />
<a rel="nofollow" class="t" href="http://google.com" target="_blank">http://google.com</a><br />
<a rel="nofollow" class="t" href="http://www.google.com" target="_blank">http://www.google.com</a><br />
<a rel="nofollow" class="t" href="http://google.com/something?some=unsome&amp;w=anything" target="_blank">http://google.com/something?some=unsome&amp;w=anything</a><br />
<br />
i only wanted to allow http(s) but not gopher or news protocol. Can someone help, please?<br />
<br />
 <pre style="margin:20px; line-height:13px">$allowed_chars = '[a-zA-Z0-9+._-]';<br />
$protocol = '(http|https)://'<br />
$w3 = &quot;(www.)?&quot;;<br />
$subdomain = &quot;{$allowed_chars}*\.?&quot;;<br />
$domain = &quot;{$allowed_chars}*\.&quot;;<br />
$domain_format &quot;{$allowed_chars}{2,3}&quot;;<br />
$country_code = &quot;{$allowed_chars}{2,3}&quot;;<br />
$end_parts = &quot;({$allowed_chars}/&amp;:\?)*&quot;;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>Mohammed S</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235462.html</guid>
		</item>
		<item>
			<title>Broken query string in PHP</title>
			<link>http://www.daniweb.com/forums/thread235461.html</link>
			<pubDate>Mon, 02 Nov 2009 20:16:19 GMT</pubDate>
			<description><![CDATA[This is my code which is intended to produce an URL like the following: 
www.mysite.com/test.php?day=1 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox"...]]></description>
			<content:encoded><![CDATA[<div>This is my code which is intended to produce an URL like the following:<br />
<a rel="nofollow" class="t" href="http://www.mysite.com/test.php?day=1" target="_blank">www.mysite.com/test.php?day=1</a><br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;? <br />
if (!$_GET['day']) {<br />
$day = date('N');<br />
}<br />
elseif ($_GET['day']==1){ ?&gt;<br />
&nbsp;&lt;?php include(&quot;test1.php&quot;) ?&gt;<br />
&lt;? }else if($_GET['day']==2){ ?&gt;<br />
&nbsp;&lt;?php include(&quot;test2.php&quot;) ?&gt;<br />
&lt;? }else if($_GET['day']==3){ ?&gt;<br />
&nbsp;&lt;?php include(&quot;test3.php&quot;) ?&gt;<br />
&nbsp;&lt;? }else if($_GET['day']==4){ ?&gt;<br />
&nbsp;&lt;?php include(&quot;test4.php&quot;) ?&gt;<br />
&nbsp;&lt;? }else if($_GET['day']==5){ ?&gt;<br />
&nbsp;&lt;?php include(&quot;test5.php&quot;) ?&gt;<br />
&nbsp;&lt;? }else if($_GET['day']==6){ ?&gt;<br />
&nbsp;&lt;?php include(&quot;test6.php&quot;) ?&gt;<br />
&nbsp;&lt;? }else if($_GET['day']==5){ ?&gt;<br />
&nbsp;&lt;?php include(&quot;test7.php&quot;) ?&gt;<br />
&lt;? }else if(!is_numeric($_GET['id']) || $_GET['id']&lt;1){ ?&gt;<br />
invalid id (or page not found)<br />
&lt;? } ?&gt;<br />
?&gt;<br />
&lt;?php<br />
$dat=date(&quot;w&quot;);<br />
switch ($dat)<br />
{<br />
&nbsp; case 1:<br />
&nbsp; &nbsp; include(&quot;test1.php&quot;);<br />
&nbsp; &nbsp; break;<br />
&nbsp; case 2:<br />
&nbsp;  include(&quot;test2.php&quot;);<br />
&nbsp; &nbsp; break;<br />
&nbsp; case 3:<br />
&nbsp;  include(&quot;test2.php&quot;);<br />
&nbsp; &nbsp; break;<br />
&nbsp; case 4:<br />
&nbsp;  include(&quot;test4.php&quot;);<br />
&nbsp; &nbsp; break;<br />
&nbsp; case 5:<br />
&nbsp;  include(&quot;test5.php&quot;);<br />
&nbsp; &nbsp; break;<br />
&nbsp; &nbsp; case 6:<br />
&nbsp;  include(&quot;test6.php&quot;);<br />
&nbsp; &nbsp; break;<br />
&nbsp; }<br />
&nbsp; ?&gt;</pre><br />
The query string <span style="font-style:italic">does</span> work, but shows the same page - test1.php, no matter what day I call up in the PHP URL.<br />
<br />
Anyone managed to get this working, as I tried and tried but can't figure it out!</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/thread235461.html</guid>
		</item>
		<item>
			<title>Error Fetching http headers</title>
			<link>http://www.daniweb.com/forums/thread235446.html</link>
			<pubDate>Mon, 02 Nov 2009 19:28:30 GMT</pubDate>
			<description><![CDATA[Hello, I keep getting a "Error Fetching http headers" when I make a soap call. It looks like something is interrupting my process exactly after 5 mins and forces this error.  I have already set 'default_socket_timeout' in php.ini  and restarted apache. Also I can't find any other reference in the...]]></description>
			<content:encoded><![CDATA[<div>Hello, I keep getting a &quot;Error Fetching http headers&quot; when I make a soap call. It looks like something is interrupting my process exactly after 5 mins and forces this error.  I have already set 'default_socket_timeout' in php.ini  and restarted apache. Also I can't find any other reference in the code that could be forcing this 5 min (300 sec) timeout. Could you please advise what else could be enforcing this 5 min timeout to happen?<br />
<br />
thanks<br />
--m</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>magica</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235446.html</guid>
		</item>
		<item>
			<title>Barcode reader</title>
			<link>http://www.daniweb.com/forums/thread235426.html</link>
			<pubDate>Mon, 02 Nov 2009 18:05:22 GMT</pubDate>
			<description>Hi all, anyone have idea how to setup a barcode reader within virtuemart ?</description>
			<content:encoded><![CDATA[<div>Hi all, anyone have idea how to setup a barcode reader within virtuemart ?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>lamjdx</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235426.html</guid>
		</item>
		<item>
			<title>Making an Admin page</title>
			<link>http://www.daniweb.com/forums/thread235412.html</link>
			<pubDate>Mon, 02 Nov 2009 17:13:48 GMT</pubDate>
			<description>Heres the skinny: 
I have created a site with user login that directs the user to a page that only shows thier information pulled from the database. What I want to do now is create an admin side that allows the site owner to be able to use 1 login but be able to administer all the users...</description>
			<content:encoded><![CDATA[<div>Heres the skinny:<br />
I have created a site with user login that directs the user to a page that only shows thier information pulled from the database. What I want to do now is create an admin side that allows the site owner to be able to use 1 login but be able to administer all the users individually. Example would be to send an invoice for the client to download.<br />
<br />
Thanks,<br />
Tim</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>SuntechWebsites</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235412.html</guid>
		</item>
		<item>
			<title>Search string is too exact help</title>
			<link>http://www.daniweb.com/forums/thread235394.html</link>
			<pubDate>Mon, 02 Nov 2009 15:49:09 GMT</pubDate>
			<description><![CDATA[Right im very new to php and kinda learning as i go, here is my code. 
 
What it is, is when i search a part number it has to be matching the case e.g if i search a6725 it doesnt work but if i search A6725 its returns the result. 
 
please help!!! 
  <div class="codeblock"> <div class="spaced">...]]></description>
			<content:encoded><![CDATA[<div>Right im very new to php and kinda learning as i go, here is my code.<br />
<br />
What it is, is when i search a part number it has to be matching the case e.g if i search a6725 it doesnt work but if i search A6725 its returns the result.<br />
<br />
please help!!!<br />
 <pre style="margin:20px; line-height:13px">$qresult = mysql_query(&quot;SELECT * FROM products WHERE part = \&quot;$pt\&quot;&quot;);<br />
&nbsp; &nbsp; $row = mysql_fetch_array($qresult);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; do <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;tr&gt;&lt;td&gt;&quot;.$row['part'].&quot;&lt;/td&gt;&lt;/tr&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;tr&gt;&lt;td&gt;&quot;.$row['desc'].&quot;&lt;/td&gt;&lt;/tr&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;tr&gt;&lt;td&gt;&quot;; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($row['part'] &lt;&gt; $pt){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo $none;<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; elseif ($row['qt'] == $qty){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  echo $limit;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; elseif ($row['qt'] &gt;= $qty){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  echo $in;<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; elseif ($row['qt'] &lt;= $qty){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  echo $out;<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; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while($row = mysql_fetch_array($qresult));<br />
&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 &quot;&lt;/table&gt;&quot;;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>dandixon</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235394.html</guid>
		</item>
		<item>
			<title>Silly Question that need HELP !!</title>
			<link>http://www.daniweb.com/forums/thread235375.html</link>
			<pubDate>Mon, 02 Nov 2009 14:51:50 GMT</pubDate>
			<description><![CDATA[Hi Guys, 
 
I'm new in PHP. I not familiar with it. Now i need to ask about the PHP  
Now i working we a program that have a login function  and can allow admin to change or update the data. The users van view the info only without change it . 
 
1. It is need to create a database for the login...]]></description>
			<content:encoded><![CDATA[<div>Hi Guys,<br />
<br />
I'm new in PHP. I not familiar with it. Now i need to ask about the PHP <br />
Now i working we a program that have a login function  and can allow admin to change or update the data. The users van view the info only without change it .<br />
<br />
1. It is need to create a database for the login function if there only one user to use it.Just a security issue that other can not change the data inside the web page.<br />
<br />
2. If i create a drop down box and i need to save the data like said the drop down box have figure 1 ,2 &amp; 3 it is need to involve database or other ?<br />
<br />
3. If i write something inside the text box and need to be save it is involve database? And how to display it to display it and the users can just view and admin can overwrite and save it?<br />
<br />
Please advise and give me a guideline , hint or clue to do it ?<br />
Thank<br />
<br />
p/s : the database i mean mysql.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>gingank</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235375.html</guid>
		</item>
		<item>
			<title>pls help me to figure this out</title>
			<link>http://www.daniweb.com/forums/thread235297.html</link>
			<pubDate>Mon, 02 Nov 2009 09:24:33 GMT</pubDate>
			<description>i got apache server......then how can i run my php program</description>
			<content:encoded><![CDATA[<div>i got apache server......then how can i run my php program</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>tsr.linkan</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235297.html</guid>
		</item>
		<item>
			<title>Prevent a user from viewing the info</title>
			<link>http://www.daniweb.com/forums/thread235345.html</link>
			<pubDate>Mon, 02 Nov 2009 08:12:55 GMT</pubDate>
			<description>I used sessions in these scripts: 
 Login, Main pg containing the different links, and theLogout pg. 
What i wanted is to prevent a user from viewing, the info/transactions of a previous user who loggedout, by clicking the windows Back button. 
But when i login, click one of the links to open it ,...</description>
			<content:encoded><![CDATA[<div>I used sessions in these scripts:<br />
 Login, Main pg containing the different links, and theLogout pg.<br />
What i wanted is to prevent a user from viewing, the info/transactions of a previous user who loggedout, by clicking the windows Back button.<br />
But when i login, click one of the links to open it , It can't allow me to go back to the main page. But instead asks for login yet i have not yet logged out.<br />
<br />
What could be the problem?<br />
OR<br />
Through me some Script  examples on Sessions</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>Bobic</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235345.html</guid>
		</item>
		<item>
			<title>Audio players for my website</title>
			<link>http://www.daniweb.com/forums/thread235262.html</link>
			<pubDate>Mon, 02 Nov 2009 06:27:19 GMT</pubDate>
			<description>hi frnds... 
 
i want the code for play audio files through my website..... alla audio files r placed in my server itself..how can i do this... 
 
which player is the best one. how can i add the code in my web page.plz send the script...</description>
			<content:encoded><![CDATA[<div>hi frnds...<br />
<br />
i want the code for play audio files through my website..... alla audio files r placed in my server itself..how can i do this...<br />
<br />
which player is the best one. how can i add the code in my web page.plz send the script...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>sarithak</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235262.html</guid>
		</item>
		<item>
			<title>registration form validation using ajax with php</title>
			<link>http://www.daniweb.com/forums/thread235253.html</link>
			<pubDate>Mon, 02 Nov 2009 05:32:16 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">&nbsp; &lt;?php<br />
ob_start();<br />
extract($_REQUEST);<br />
extract($_POST);<br />
session_start();<br />
$con = mysql_connect(&quot;localhost&quot;,&quot;root&quot;,&quot;&quot;);<br />
if (!$con)<br />
&nbsp; {<br />
&nbsp; die('Could not connect: ' . mysql_error());<br />
&nbsp; }<br />
$db=mysql_select_db('murali',$con);<br />
<br />
<br />
$message = '';<br />
&nbsp; &nbsp; $error = array();<br />
&nbsp; &nbsp;  $select=mysql_query(&quot;select * from registration where username='$_REQUEST[username]'&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp;  <br />
&nbsp; &nbsp;  <br />
$taken_usernames=mysql_fetch_array($select);<br />
<br />
&nbsp; &nbsp; // main submit logic<br />
&nbsp; &nbsp; if (@$_REQUEST['action'] == 'register') {<br />
&nbsp; &nbsp; &nbsp; &nbsp; $resp = check_username($_REQUEST['username']);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; if ($resp['ok']) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $message = 'All details fine';<br />
&nbsp; &nbsp; &nbsp; &nbsp; } else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $message = 'There was a problem with your registration details';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $error = $resp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; } else if (@$_REQUEST['action'] == 'check_username' &amp;&amp; isset($_SERVER['HTTP_X_REQUESTED_WITH'])) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; // means it was requested via Ajax<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo json_encode(check_username($_REQUEST['username']));<br />
&nbsp; &nbsp; &nbsp; &nbsp; exit; // only print out the json version of the response<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; function check_username($username) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; global $taken_usernames;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $resp = array();<br />
&nbsp; &nbsp; &nbsp; &nbsp; $username = trim($username);<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (!$username) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $resp = array('ok' =&gt; false, 'msg' =&gt; &quot;Please specify a username&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; } else if (!preg_match('/^[a-z0-9\.\-_]+$/', $username)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $resp = array('ok' =&gt; false, &quot;msg&quot; =&gt; &quot;Your username can only contain alphanumerics and period, dash and underscore (.-_)&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; } else if (in_array($username, $taken_usernames)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $resp = array(&quot;ok&quot; =&gt; false, &quot;msg&quot; =&gt; &quot;The selected username is not available&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; } else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $resp = array(&quot;ok&quot; =&gt; true, &quot;msg&quot; =&gt; &quot;This username is free&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; return $resp;&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; }<br />
?&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;<br />
&nbsp;  <br />
&nbsp; &nbsp; &nbsp; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br />
&nbsp; <br />
&nbsp; &nbsp; &nbsp; &lt;head&gt;<br />
&nbsp;  <br />
&nbsp; &nbsp; &nbsp; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &lt;title&gt;Ajax - PHP example&lt;/title&gt;<br />
&nbsp; <br />
&nbsp; &nbsp; &nbsp; &lt;/head&gt;<br />
&nbsp;<br />
&nbsp;  <br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &lt;body&gt;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp;  <br />
<br />
&nbsp; &nbsp; &nbsp; &lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &lt;!--<br />
&nbsp; <br />
&nbsp; &nbsp; &nbsp; // Get the HTTP Object<br />
&nbsp; <br />
&nbsp; &nbsp; &nbsp; function getHTTPObject(){<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; if (window.ActiveXObject) return new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);<br />
<br />
&nbsp; &nbsp; &nbsp; else if (window.XMLHttpRequest) return new XMLHttpRequest();<br />
<br />
&nbsp; &nbsp; &nbsp; else {<br />
<br />
&nbsp; &nbsp; &nbsp; alert(&quot;Your browser does not support AJAX.&quot;);<br />
<br />
&nbsp; &nbsp; &nbsp; return null;<br />
<br />
&nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp;  <br />
<br />
&nbsp; &nbsp; &nbsp; // Change the value of the outputText field<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; function setOutput(){<br />
<br />
&nbsp; &nbsp; &nbsp; if(httpObject.readyState == 4){<br />
&nbsp; <br />
&nbsp; &nbsp; &nbsp; document.getElementById('outputText').value = httpObject.responseText;<br />
&nbsp; <br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp;  <br />
<br />
&nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; // Implement business logic<br />
<br />
&nbsp; &nbsp; &nbsp; function doWork(){<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; httpObject = getHTTPObject();<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; if (httpObject != null) {<br />
&nbsp; <br />
&nbsp; &nbsp; &nbsp; httpObject.open(&quot;GET&quot;, &quot;upperCase.php?inputText=&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; +document.getElementById('inputText').value, true);<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; httpObject.send(null);<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; httpObject.onreadystatechange = setOutput;<br />
&nbsp; <br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp; <br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; var httpObject = null;<br />
<br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp; <br />
&nbsp; &nbsp; &nbsp; //--&gt;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &lt;/script&gt;<br />
<br />
&nbsp; &nbsp; &nbsp;  <br />
<br />
&nbsp; &nbsp; &nbsp; &lt;form name=&quot;testForm&quot;&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; Input text: &lt;input type=&quot;text&quot; onkeyup=&quot;doWork();&quot; name=&quot;inputText&quot; id=&quot;inputText&quot; /&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; Output text: &lt;input type=&quot;text&quot; name=&quot;outputText&quot; id=&quot;outputText&quot; /&gt;<br />
&nbsp; <br />
&nbsp; &nbsp; &nbsp; &lt;/form&gt;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &lt;/body&gt;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &lt;/html&gt;</pre>hello....<br />
<br />
i want to do the validations in registration form. but my validation is when the user enters the value in textbox that value automatically cheks that value is already in database or not.<br />
<br />
<br />
for example..........username textbox is there..now i am entering value first three letter &quot;kal&quot; then comes beside the textbox &quot;username 'kal' is available for you&quot;. and next i am entering nextletter &quot;kalp&quot; then comes beside the textbox &quot;kalp is available&quot;. plz help me.....any chances to do this task.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>pushpakalpana</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235253.html</guid>
		</item>
		<item>
			<title>Writing form.database output to xml</title>
			<link>http://www.daniweb.com/forums/thread235232.html</link>
			<pubDate>Mon, 02 Nov 2009 03:30:22 GMT</pubDate>
			<description>hi  guys, I would like to be able to take all the output of a order form and the database output of the selected items and return it to a xml document. 
 
I tried the  
file_get_contents and that just took the actual code from the php page. 
 
My website is all php pages and the checkout page...</description>
			<content:encoded><![CDATA[<div>hi  guys, I would like to be able to take all the output of a order form and the database output of the selected items and return it to a xml document.<br />
<br />
I tried the <br />
file_get_contents and that just took the actual code from the php page.<br />
<br />
My website is all php pages and the checkout page displays the final purchase details, eg title, volume and cost and the user details eg, name, number and address. <br />
<br />
some output comes from a function<br />
 <pre style="margin:20px; line-height:13px">paymentDetails();&nbsp; // displays bank details contains 3 lines txt<br />
contactUs();&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // displays our address contains 4 lines txt</pre><br />
and then some comes from variables/post<br />
 <pre style="margin:20px; line-height:13px">$name = $_POST['name'];<br />
$email = $_POST['email'];<br />
$number = $_POST['number'];<br />
$bAddress = $_POST['billingAddress'];<br />
$sAddress = $_POST['shippingAddress'];</pre><br />
and then the items ordered and the cost/total cost from a sql database<br />
 <pre style="margin:20px; line-height:13px">showCostsCheckout();</pre><br />
I just want to be able to write everything that is displayed on screen once the order is confirmed to a xml document. <br />
<br />
I'm assuming that its fwrite() or something similar, just can't find anything that captures it. <br />
<br />
cheers</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>mr_scooby</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235232.html</guid>
		</item>
	</channel>
</rss>
