<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1027436" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1027436</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/mysql-problems#comment-1163052</link>
    <description> &lt;p&gt;Good point, CptAwesome. You might have to do this:&lt;/p&gt;
&lt;p&gt;SELECT field1, field2, field3 FROM tablename WHERE datefield LIKE &#039;XX-XX-XXXX %&#039;&lt;/p&gt;
 </description>
     <pubDate>Tue, 21 Dec 2004 13:16:08 +0000</pubDate>
 <dc:creator>timjpriebe</dc:creator>
 <guid isPermaLink="false">comment 1163052 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/mysql-problems#comment-1163035</link>
    <description> &lt;p&gt;Thanks, sorry that was a stupid question.  &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 21 Dec 2004 03:39:50 +0000</pubDate>
 <dc:creator>airoid3000</dc:creator>
 <guid isPermaLink="false">comment 1163035 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/mysql-problems#comment-1163007</link>
    <description> &lt;p&gt;if the date field is mixed date/time that won&#039;t work, but you could query and pull all results (depending on the size, this could be a bad idea) and then use an ereg function, or some other comparison method to analyze the info.&lt;/p&gt;
 </description>
     <pubDate>Mon, 20 Dec 2004 18:42:15 +0000</pubDate>
 <dc:creator>CptAwesome</dc:creator>
 <guid isPermaLink="false">comment 1163007 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/mysql-problems#comment-1162999</link>
    <description> &lt;p&gt;SELECT field1, field2, field3 FROM tablename WHERE datefield = &#039;XX-XX-XXXX&#039;&lt;/p&gt;
&lt;p&gt;Then, of course, you&#039;ll want to use a while loop to go through the results for that date, unless your DB is set up so that there&#039;s only one entry per date.&lt;/p&gt;
 </description>
     <pubDate>Mon, 20 Dec 2004 12:46:38 +0000</pubDate>
 <dc:creator>timjpriebe</dc:creator>
 <guid isPermaLink="false">comment 1162999 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/mysql-problems#comment-1162977</link>
    <description> &lt;p&gt;Thanks for the help, I was able to get it in the database.  &lt;/p&gt;
&lt;p&gt;Here is my new problem.  I am trying to load the form with all the values for that certain date.  (I have a date field in the database table).  How can I tell the page that I want it to load the values only for a selected date?&lt;/p&gt;
 </description>
     <pubDate>Sun, 19 Dec 2004 00:47:23 +0000</pubDate>
 <dc:creator>airoid3000</dc:creator>
 <guid isPermaLink="false">comment 1162977 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/mysql-problems#comment-1162976</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;CptAwesome wrote:&lt;/strong&gt; echoing $sql will just get you the query obviously.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt; Isn&#039;t a bad idea to go right back to basics, finding out if the variables actually have values can be the answer. Easier than echoing all variables, especially if you have more than a couple.&lt;/p&gt;
&lt;p&gt;Again the mysql_query() is helpful for fault finding. there are other ways of doing it, sure, but the end of the day you need to find the problem whether it be a missing quote, comma, brace, value or whatever.&lt;/p&gt;
 </description>
     <pubDate>Sat, 18 Dec 2004 21:43:58 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1162976 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/mysql-problems#comment-1162972</link>
    <description> &lt;p&gt;I have to agree with what Busy said. The WHERE clause does not work with INSERT. It sounds like you&#039;re wanting to use UPDATE, not INSERT.&lt;/p&gt;
 </description>
     <pubDate>Sat, 18 Dec 2004 14:31:15 +0000</pubDate>
 <dc:creator>timjpriebe</dc:creator>
 <guid isPermaLink="false">comment 1162972 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/mysql-problems#comment-1162965</link>
    <description> &lt;p&gt;echoing $sql will just get you the query obviously.&lt;/p&gt;
&lt;p&gt;and you don&#039;t need to do a $something = for the mysql_query($sql); but you can then do:&lt;/p&gt;
&lt;p&gt;if($something)&lt;br /&gt;
{&lt;br /&gt;
echo &quot;YAY IT WORKED!&quot;;&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
echo &quot;bunk, still didn&#039;t work&quot;;&lt;br /&gt;
}&lt;/p&gt;
 </description>
     <pubDate>Sat, 18 Dec 2004 10:10:09 +0000</pubDate>
 <dc:creator>CptAwesome</dc:creator>
 <guid isPermaLink="false">comment 1162965 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/mysql-problems#comment-1162963</link>
    <description> &lt;p&gt;You using the right one, INSERT vs UPDATE ?&lt;/p&gt;
&lt;p&gt;do you get a value if you echo $sql ?&lt;/p&gt;
&lt;p&gt;and do you have a $something = mysql_query($sql); ?&lt;/p&gt;
 </description>
     <pubDate>Sat, 18 Dec 2004 09:47:00 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1162963 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/mysql-problems#comment-1162961</link>
    <description> &lt;p&gt;$sql = &quot;INSERT INTO `table_name` (`column1`,`column2`) VALUES (&#039;$data1&#039;,&#039;$data2&#039;);&lt;/p&gt;
&lt;p&gt;for a new entry, and you can&#039;t &#039;insert into&#039; a row that exists in that case it&#039;s&lt;/p&gt;
&lt;p&gt;$sql = &quot;UPDATE `table_name` SET `column_name` = &#039;value&#039; WHERE `id` = &#039;$id&#039;;&lt;/p&gt;
&lt;p&gt;just remember, fields, and tables need `` (below the tilde~) around them, and strings need &#039; &#039; around them.&lt;/p&gt;
&lt;p&gt;I suggest getting MySQLadmin, and just look at some of the queries it runs when updating information.&lt;/p&gt;
 </description>
     <pubDate>Sat, 18 Dec 2004 09:40:50 +0000</pubDate>
 <dc:creator>CptAwesome</dc:creator>
 <guid isPermaLink="false">comment 1162961 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
