<?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</title>
		<link>http://www.daniweb.com/forums/</link>
		<description>Tech support, programming, web development, and internet marketing community. Forums to get free computer help and support.</description>
		<language>en-US</language>
		<lastBuildDate>Mon, 30 Nov 2009 05:55:13 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.daniweb.com/alphaimages/misc/rss.jpg</url>
			<title>DaniWeb IT Discussion Community</title>
			<link>http://www.daniweb.com/forums/</link>
		</image>
		<item>
			<title>php on same page as form</title>
			<link>http://www.daniweb.com/forums/thread240042.html</link>
			<pubDate>Fri, 20 Nov 2009 16:21:45 GMT</pubDate>
			<description><![CDATA[I have an html form when i submit it it goes to a php page.  i want to change the action so the php execution happens on the same page. 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>I have an html form when i submit it it goes to a php page.  i want to change the action so the php execution happens on the same page.<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;form method =&quot;POST&quot; action = &quot;user.php&quot;&gt;<br />
&lt;table align=&quot;right&quot; cellpadding=&quot;10&quot; cellspacing=&quot;0&quot;&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;EMail: &lt;/td&gt;<br />
&lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;email&quot; /&gt;&lt;/td&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;First Name: &lt;/td&gt;<br />
&lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;fname&quot; /&gt;&lt;/td&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;Last Name: &lt;/td&gt;<br />
&lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;lname&quot; /&gt;&lt;/td&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;Password:&lt;/td&gt;<br />
&lt;td&gt;&lt;input type=&quot;password&quot; name=&quot;password&quot; /&gt;&lt;/td&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;&lt;input type =&quot;submit&quot;&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/form&gt;<br />
<br />
&lt;?php<br />
&nbsp; &nbsp; &nbsp; &nbsp; //conection<br />
&nbsp; &nbsp; &nbsp; &nbsp; include('sqlconn.php');<br />
&nbsp; &nbsp; &nbsp; &nbsp; $mysql = new sqlConnection;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //retrive data from POST form<br />
&nbsp; &nbsp; &nbsp; &nbsp; $email=$_POST['email'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; $fname=$_POST['fname'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; $lname=$_POST['lname'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; $password=$_POST['password'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //insert data into DB<br />
&nbsp; &nbsp; &nbsp; &nbsp; $query = &quot;INSERT INTO&nbsp; `client_Info`.`users` (`email` ,`fname` ,`lname` ,`password`)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VALUES (NULL , '$email', '$fname', '$lname', '$password')&quot;;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; mysql_query($query) or die('Error, insert query failed');<br />
&nbsp; &nbsp; &nbsp; &nbsp; $last_Id = mysql_insert_id();<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; $mysql-&gt;close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //redirect back to login page.<br />
&nbsp; &nbsp; &nbsp; &nbsp; header( 'Location: http://localhost/testsite' ) ;<br />
?&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>mrjoli021</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240042.html</guid>
		</item>
		<item>
			<title>else not working</title>
			<link>http://www.daniweb.com/forums/thread239808.html</link>
			<pubDate>Thu, 19 Nov 2009 17:25:13 GMT</pubDate>
			<description><![CDATA[my else statement is not executing it returns a black page. 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help...]]></description>
			<content:encoded><![CDATA[<div>my else statement is not executing it returns a black page.<br />
<br />
 <pre style="margin:20px; line-height:13px"> while($results = mysql_fetch_array($user_name))<br />
&nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($results['email'] == $Entered_UserName &amp;&amp; $results['password'] == $Entered_PassWord)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  echo 'working';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  echo 'not working';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>mrjoli021</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239808.html</guid>
		</item>
		<item>
			<title>what is wrong with my code</title>
			<link>http://www.daniweb.com/forums/thread239040.html</link>
			<pubDate>Mon, 16 Nov 2009 21:28:12 GMT</pubDate>
			<description><![CDATA[Why doesnt this code work.  I keep getting false even when i type in the correct username and password 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox"...]]></description>
			<content:encoded><![CDATA[<div>Why doesnt this code work.  I keep getting false even when i type in the correct username and password<br />
<br />
 <pre style="margin:20px; line-height:13px">$user_name = mysql_query(&quot;SELECT * FROM users WHERE username =<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  '&quot;.$Entered_UserName .&quot;' <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  AND password = '&quot;.md5($Entered_PassWord) . &quot;'&quot;);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;  $user_name_password = mysql_fetch_assoc($user_name);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;  if($user_name_password === false)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  echo 'false';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp;  else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  echo 'true';<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>mrjoli021</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239040.html</guid>
		</item>
		<item>
			<title>php xml errror</title>
			<link>http://www.daniweb.com/forums/thread237575.html</link>
			<pubDate>Tue, 10 Nov 2009 22:08:38 GMT</pubDate>
			<description><![CDATA[i am writing a php program to read simplexml file. 
i get the following error  
Parse error: syntax error, unexpected T_STRING in /Applications/MAMP/htdocs/TestSite/sqlconnectstring.xml on line 1 
 
here is the php file 
  <div class="codeblock"> <div class="spaced"> <div style="float:right;...]]></description>
			<content:encoded><![CDATA[<div>i am writing a php program to read simplexml file.<br />
i get the following error <br />
Parse error: syntax error, unexpected T_STRING in /Applications/MAMP/htdocs/TestSite/sqlconnectstring.xml on line 1<br />
<br />
here is the php file<br />
 <pre style="margin:20px; line-height:13px">include ('sqlconnectstring.xml');<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; class sqlConnection<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var $server;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var $user;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var $pass;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function __construct()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $xml = new SimpleXMLElement($xmlstr);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //$xml = simplexml_load_file(&quot;sqlconnectstring.xml&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;server = $xml-&gt;sql[0]-&gt;server;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;server = $xml-&gt;sql[0]-&gt;user;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;server = $xml-&gt;sql[0]-&gt;pass;</pre><br />
and here is the xml file<br />
 <pre style="margin:20px; line-height:13px">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br />
&lt;sql&gt;<br />
&nbsp; &nbsp; &lt;server&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; localhost<br />
&nbsp; &nbsp; &lt;/server&gt;<br />
&nbsp; &nbsp; &lt;user&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; client<br />
&nbsp; &nbsp; &lt;/user&gt;<br />
&nbsp; &nbsp; &lt;pass&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; 1qaz2wsx<br />
&nbsp; &nbsp; &lt;/pass&gt;<br />
&lt;/sql&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>mrjoli021</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237575.html</guid>
		</item>
		<item>
			<title>macbook pro wont go to sleep</title>
			<link>http://www.daniweb.com/forums/thread237563.html</link>
			<pubDate>Tue, 10 Nov 2009 21:09:13 GMT</pubDate>
			<description>I have a macbook pro running snow.  I cant get it to go to sleep in 32bit when i boot it up in 64bit it goes to sleep without a problem.  I reinstalled the os and now it will not go to sleep in either 32 or 64 
 
any ideas?</description>
			<content:encoded><![CDATA[<div>I have a macbook pro running snow.  I cant get it to go to sleep in 32bit when i boot it up in 64bit it goes to sleep without a problem.  I reinstalled the os and now it will not go to sleep in either 32 or 64<br />
<br />
any ideas?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum109.html">OS X</category>
			<dc:creator>mrjoli021</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237563.html</guid>
		</item>
		<item>
			<title>php classes</title>
			<link>http://www.daniweb.com/forums/thread237313.html</link>
			<pubDate>Mon, 09 Nov 2009 21:08:06 GMT</pubDate>
			<description><![CDATA[i have a class called sqlConn.php within the same directory as hiuser.php 
how do i call that class. 
 
  <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 have a class called sqlConn.php within the same directory as hiuser.php<br />
how do i call that class.<br />
<br />
 <pre style="margin:20px; line-height:13px">include('sql_Conn.php');<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; $sql = new sql_Conn;</pre>does not work i get<br />
<br />
Warning: include(sql_Conn.php) [function.include]: failed to open stream: No such file or directory in /Applications/MAMP/htdocs/TestSite/hiUser.php on line 10<br />
<br />
Warning: include() [function.include]: Failed opening 'sql_Conn.php' for inclusion (include_path='.:/Applications/MAMP/bin/php5/lib/php') in /Applications/MAMP/htdocs/TestSite/hiUser.php on line 10<br />
<br />
Fatal error: Class 'sql_Conn' not found in /Applications/MAMP/htdocs/TestSite/hiUser.php on line 12</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>mrjoli021</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237313.html</guid>
		</item>
		<item>
			<title>php inside php not working</title>
			<link>http://www.daniweb.com/forums/thread237262.html</link>
			<pubDate>Mon, 09 Nov 2009 16:40:29 GMT</pubDate>
			<description><![CDATA[I have a form that get processed by a php page and depending on what the user decides it will get summited to another php form.  But the [code = php]<input type="text" name="fname" value="<?php 'echo $tesing';?>"[/code] part does not work inside php. 
 
if i try the code outside it works, but i...]]></description>
			<content:encoded><![CDATA[<div>I have a form that get processed by a php page and depending on what the user decides it will get summited to another php form.  But the [code = php]&lt;input type=&quot;text&quot; name=&quot;fname&quot; value=&quot;&lt;?php 'echo $tesing';?&gt;&quot;[/code] part does not work inside php.<br />
<br />
if i try the code outside it works, but i need it inside the php<br />
<br />
 <pre style="margin:20px; line-height:13px">if (isset($_GET&#91;'check1'&#93;)) <br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; $check1 = $_GET&#91;'check1'&#93;;<br />
<br />
}<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; if($check1 !== 'unchecked')<br />
&nbsp; &nbsp; &nbsp; &nbsp; { <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $id = &quot;$last_Id&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo '&lt;form method =&quot;get&quot; action = &quot;tele.php&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Phone:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;input type = &quot;text&quot; name =&quot;number&quot; value= &quot;&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;text&quot; name=&quot;fname&quot; value=&quot;&lt;?php&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'echo $tesing';?&gt;&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;br&gt;';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  echo '&lt;input type = &quot;submit&quot;&gt;';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print(&quot;not checked&quot;);<br />
<br />
?&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>mrjoli021</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237262.html</guid>
		</item>
	</channel>
</rss>
