<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1032745" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1032745</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/formphp-help#comment-1191811</link>
    <description> &lt;p&gt;also along the same lines as Greg K.  Change:&lt;/p&gt;
&lt;p&gt;mysql_query($sql);&lt;/p&gt;
&lt;p&gt;to:&lt;/p&gt;
&lt;p&gt;mysql_query($sql) or die(&quot;MySQL Query Error: &quot;.mysql_error());&lt;/p&gt;
&lt;p&gt;if there&#039;s something wrong with your query, this will tell you.  Also make sure your connection variables are correct (someone already suggested that), and make sure you have added the user to the database you are trying to connect to.&lt;/p&gt;
&lt;p&gt;Matt Pegler&lt;br /&gt;
MyFreeCounter Owner/Operator&lt;br /&gt;
&lt;a href=&quot;http://www.MyFreeCounter.net&quot; class=&quot;bb-url&quot;&gt;http://www.MyFreeCounter.net&lt;/a&gt; - free hit, realtime, and click counters, as well as statistics&lt;/p&gt;
 </description>
     <pubDate>Fri, 27 Jan 2006 21:05:54 +0000</pubDate>
 <dc:creator>MyFreeCounter</dc:creator>
 <guid isPermaLink="false">comment 1191811 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/formphp-help#comment-1191643</link>
    <description> &lt;p&gt;Even though it is still not working with what Busy suggested, keep the formatting that he used. Without the double quotes you will get the actual string &lt;strong&gt;&#039;$name&#039;,&#039;$mail&#039;,&#039;$comment&#039;&lt;/strong&gt; instead of the values of the variables.&lt;/p&gt;
&lt;p&gt;Also, your &lt;strong&gt;or DIE(&quot; &quot;)&lt;/strong&gt; statement is not that informative. Imagine if you had about 10 of these in a script, you run it and the page is blank. Unless you happen to be outputing things to the browser in between then, you will not know where it died. It is good to get into the practice of using good error messages.&lt;/p&gt;
&lt;p&gt;For this one, I would recommend something along the lines of &lt;strong&gt;die(&#039;Could not connect: &#039; . mysql_error());&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Lastly if all else seems to be working correctly, echo out the sql statement right before executing it. If there is something misformatted in it, this can help you spot it. Sometimes with all the quotes, variable names, backslashes, etc, it is easy to miss the mistake in the assignemtn line.&lt;/p&gt;
&lt;p&gt;Until you get it working, add &lt;strong&gt;echo &quot;\nSQL: $sql \n&quot;;&lt;/strong&gt; right before the query line.&lt;/p&gt;
&lt;p&gt;-Greg&lt;/p&gt;
 </description>
     <pubDate>Wed, 25 Jan 2006 17:13:53 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1191643 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/formphp-help#comment-1191640</link>
    <description> &lt;p&gt;Does dogpics.inc have the correct values for $hostname,$username, $password and $dbname ?&lt;/p&gt;
 </description>
     <pubDate>Wed, 25 Jan 2006 16:58:04 +0000</pubDate>
 <dc:creator>timjpriebe</dc:creator>
 <guid isPermaLink="false">comment 1191640 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/formphp-help#comment-1191620</link>
    <description> &lt;p&gt;That didnt seem to work.  I&#039;m not getting any errors, everything seems to be working but for some reason the database is not getting updated.  Im using godaddy hosting if that helps.  The script I used came from them.&lt;/p&gt;
 </description>
     <pubDate>Wed, 25 Jan 2006 13:19:44 +0000</pubDate>
 <dc:creator>Chrislt</dc:creator>
 <guid isPermaLink="false">comment 1191620 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/formphp-help#comment-1191608</link>
    <description> &lt;p&gt;change&lt;br /&gt;
$sql = &#039;INSERT INTO `questionaire` (`Date`,`Name`,`Email`,`Comment`)&lt;br /&gt;
VALUES (CURDATE(), \&#039;$name\&#039;,\&#039;$mail\&#039;,\&#039;$comment\&#039;);&#039;;&lt;/p&gt;
&lt;p&gt;to&lt;br /&gt;
$sql = &quot;INSERT INTO questionaire (Date,Name,Email,Comment)&lt;br /&gt;
VALUES (CURDATE(), &#039;$name&#039;,&#039;$mail&#039;,&#039;$comment&#039;)&quot;;&lt;/p&gt;
&lt;p&gt;Also if you can tell us the error you are getting it would be helpful&lt;/p&gt;
 </description>
     <pubDate>Wed, 25 Jan 2006 09:26:36 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1191608 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
