<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: PHP and MySQL Basics: Saving form input in PHP variables</title>
	<atom:link href="http://danieldumas.com/saving-form-input-values-to-php-variables.php/feed" rel="self" type="application/rss+xml" />
	<link>http://danieldumas.com/saving-form-input-values-to-php-variables.php</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Mon, 05 Mar 2012 04:15:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: disloxic</title>
		<link>http://danieldumas.com/saving-form-input-values-to-php-variables.php/comment-page-1#comment-223</link>
		<dc:creator>disloxic</dc:creator>
		<pubDate>Sun, 17 Jan 2010 21:19:32 +0000</pubDate>
		<guid isPermaLink="false">http://danieldumas.com/?p=630#comment-223</guid>
		<description>its ok, just solved the problem!

It was because the rest of my code was geared towards sending the variable to a mysql database and i forgot to use single quotes when assigning this variable to the database variable.

eg:

UPDATE users SET USER_NAME=&#039;$inputted_name&#039; ...</description>
		<content:encoded><![CDATA[<p>its ok, just solved the problem!</p>
<p>It was because the rest of my code was geared towards sending the variable to a mysql database and i forgot to use single quotes when assigning this variable to the database variable.</p>
<p>eg:</p>
<p>UPDATE users SET USER_NAME=&#8217;$inputted_name&#8217; &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: disloxic</title>
		<link>http://danieldumas.com/saving-form-input-values-to-php-variables.php/comment-page-1#comment-222</link>
		<dc:creator>disloxic</dc:creator>
		<pubDate>Sun, 17 Jan 2010 20:58:28 +0000</pubDate>
		<guid isPermaLink="false">http://danieldumas.com/?p=630#comment-222</guid>
		<description>I searched this page for a solution because i seem to get the following error when trying to save the posted variable as another variable:

Unknown column &#039;David&#039; in &#039;field list&#039;

The above error is when using this code:
$inputted_name=$_POST[&quot;fieldname&quot;];

Yet if i simply echo the variable like so, it does display the variable:
echo $_POST[&quot;fieldname&quot;];

output:
David


So why wont it let me save the imported variable as a variable, yet it lets me echo it? This is being developed for a facebook application.  Just wondering if that may be why?

Many thanks!</description>
		<content:encoded><![CDATA[<p>I searched this page for a solution because i seem to get the following error when trying to save the posted variable as another variable:</p>
<p>Unknown column &#8216;David&#8217; in &#8216;field list&#8217;</p>
<p>The above error is when using this code:<br />
$inputted_name=$_POST["fieldname"];</p>
<p>Yet if i simply echo the variable like so, it does display the variable:<br />
echo $_POST["fieldname"];</p>
<p>output:<br />
David</p>
<p>So why wont it let me save the imported variable as a variable, yet it lets me echo it? This is being developed for a facebook application.  Just wondering if that may be why?</p>
<p>Many thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

