<?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: How To Store Some Data In Mysql Database Through Php Script?</title>
	<atom:link href="http://yoursupportzone.com/faq/yahoo-answers/mysql-questions-yahoo/how-to-store-some-data-in-mysql-database-through-php-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://yoursupportzone.com/faq/yahoo-answers/mysql-questions-yahoo/how-to-store-some-data-in-mysql-database-through-php-script/</link>
	<description>QUESS, YourEasyWeb, Dogbits, and PeakWebhost Support Center</description>
	<lastBuildDate>Wed, 24 Jun 2009 15:25:05 +0000</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Michael Safyan</title>
		<link>http://yoursupportzone.com/faq/yahoo-answers/mysql-questions-yahoo/how-to-store-some-data-in-mysql-database-through-php-script/comment-page-1/#comment-625</link>
		<dc:creator>Michael Safyan</dc:creator>
		<pubDate>Sat, 20 Jun 2009 23:51:40 +0000</pubDate>
		<guid isPermaLink="false">http://yoursupportzone.com/?p=1653#comment-625</guid>
		<description>Use the &quot;mysqli&quot; library.</description>
		<content:encoded><![CDATA[<p>Use the &#8220;mysqli&#8221; library.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: altarilg</title>
		<link>http://yoursupportzone.com/faq/yahoo-answers/mysql-questions-yahoo/how-to-store-some-data-in-mysql-database-through-php-script/comment-page-1/#comment-624</link>
		<dc:creator>altarilg</dc:creator>
		<pubDate>Sat, 20 Jun 2009 20:22:22 +0000</pubDate>
		<guid isPermaLink="false">http://yoursupportzone.com/?p=1653#comment-624</guid>
		<description>Just to expound on what others have said, never, under any circumstances, insert a form value directly into a MySQL query. It&#039;s kind of like begging to be hacked.
If the value is supposed to be a number, check to be sure its numeric
if(is_numeric($_POST[&#039;value&#039;])) {
$value = $_POST[&#039;value&#039;];
// do something
} else {
echo(&quot;FAILED!&quot;);
}
If it isn&#039;t numeric, such as a text or varying character field, use mysql_real_escape_string.
$value = mysql_real_escape_string($_POST[&#039;value&#039;]...</description>
		<content:encoded><![CDATA[<p>Just to expound on what others have said, never, under any circumstances, insert a form value directly into a MySQL query. It&#8217;s kind of like begging to be hacked.<br />
If the value is supposed to be a number, check to be sure its numeric<br />
if(is_numeric($_POST['value'])) {<br />
$value = $_POST['value'];<br />
// do something<br />
} else {<br />
echo(&#8220;FAILED!&#8221;);<br />
}<br />
If it isn&#8217;t numeric, such as a text or varying character field, use mysql_real_escape_string.<br />
$value = mysql_real_escape_string($_POST['value']&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cyndilou</title>
		<link>http://yoursupportzone.com/faq/yahoo-answers/mysql-questions-yahoo/how-to-store-some-data-in-mysql-database-through-php-script/comment-page-1/#comment-623</link>
		<dc:creator>cyndilou</dc:creator>
		<pubDate>Sat, 20 Jun 2009 19:31:30 +0000</pubDate>
		<guid isPermaLink="false">http://yoursupportzone.com/?p=1653#comment-623</guid>
		<description>To insert from data into the database use the INSERT statement from answer two and reference the from elements.
$query=&quot;INSERT INTO yourTable(&#039;name&#039;,&#039;phone&#039;,&#039;age&#039;) VALUES (&#039;.$_POST[&quot;name&quot;].&#039;,&#039;.$_POST[&quot;number&quot;].&#039;...
It&#039;s also a good idea to protect the data from SQL injections using the mySQL function mysql_real_escape_string().</description>
		<content:encoded><![CDATA[<p>To insert from data into the database use the INSERT statement from answer two and reference the from elements.<br />
$query=&#8221;INSERT INTO yourTable(&#8216;name&#8217;,'phone&#8217;,'age&#8217;) VALUES (&#8216;.$_POST["name"].&#8217;,&#8217;.$_POST["number"].&#8217;&#8230;<br />
It&#8217;s also a good idea to protect the data from SQL injections using the mySQL function mysql_real_escape_string().</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kenneth</title>
		<link>http://yoursupportzone.com/faq/yahoo-answers/mysql-questions-yahoo/how-to-store-some-data-in-mysql-database-through-php-script/comment-page-1/#comment-622</link>
		<dc:creator>Kenneth</dc:creator>
		<pubDate>Sat, 20 Jun 2009 13:14:56 +0000</pubDate>
		<guid isPermaLink="false">http://yoursupportzone.com/?p=1653#comment-622</guid>
		<description>First, create a table to store the data in mysql. If you don&#039;t have much experience with command line mysql, you can use a web interface called phpMyAdmin.
Once you have created your table, these are the steps to do a basic insert:
1. Create db connection and select db:
$link=mysql_connect (&quot;$server&quot;, &quot;$user&quot;, &quot;$pwd&quot;) or die (&#039;Connection failed: &#039; . mysql_error());	
mysql_select_db(&quot;yourDB&quot;);
2. Create query:
$query=&quot;INSERT INTO yourTable(&#039;name&#039;,&#039;phone&#039;,&#039;age&#039;) VALUES (&#039;John&#039;,&#039;123-456&#039;,23);
3. Execute query:
mysql_query($query);
That is just a very simple example, you should look at the PHP manual (www.php.net) for more information.</description>
		<content:encoded><![CDATA[<p>First, create a table to store the data in mysql. If you don&#8217;t have much experience with command line mysql, you can use a web interface called phpMyAdmin.<br />
Once you have created your table, these are the steps to do a basic insert:<br />
1. Create db connection and select db:<br />
$link=mysql_connect (&#8220;$server&#8221;, &#8220;$user&#8221;, &#8220;$pwd&#8221;) or die (&#8216;Connection failed: &#8216; . mysql_error());<br />
mysql_select_db(&#8220;yourDB&#8221;);<br />
2. Create query:<br />
$query=&#8221;INSERT INTO yourTable(&#8216;name&#8217;,'phone&#8217;,'age&#8217;) VALUES (&#8216;John&#8217;,'123-456&#8242;,23);<br />
3. Execute query:<br />
mysql_query($query);<br />
That is just a very simple example, you should look at the PHP manual (www.php.net) for more information.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
