<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1037407" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1037407</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/syntax-error#comment-1214511</link>
    <description> &lt;p&gt;Try this:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;mysql_query (&amp;quot;CREATE TABLE IF NOT EXISTS `RETURN` (&lt;br /&gt;RETURN_ID INT(12) NOT NULL AUTO_INCREMENT,&lt;br /&gt;RETURN_RENTAL_ID INT(12) NOT NULL,&lt;br /&gt;RETURN_COPY_ID INT(12) NOT NULL,&lt;br /&gt;RETURN_MOVIE_ID INT(12) NOT NULL,&lt;br /&gt;RETURN_DATE DATE NOT NULL,&lt;br /&gt;PRIMARY KEY (RETURN_ID),&lt;br /&gt;CONSTRAINT RETURN_IBFK_1 FOREIGN KEY(RETURN_RENTAL_ID) REFERENCES RENTAL(RENTAL_ID),&lt;br /&gt;CONSTRAINT RETURN_IBFK_2 FOREIGN KEY(RETURN_COPY_ID) REFERENCES COPY(COPY_ID),&lt;br /&gt;CONSTRAINT RETURN_IBFK_3 FOREIGN KEY(RETURN_MOVIE_ID) REFERENCES MOVIE(MOVIE_ID))&amp;quot;&lt;br /&gt;) || die(mysql_error());&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;A cut-down version of that just worked for me on my local MySQL. &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;
&lt;p&gt;EDIT: It doesn&#039;t seem to like &#039;RETURN&#039; being the table name, without the backticks ``. This is probably because &#039;RETURN&#039; is a reserved word. It&#039;s used as part of MySQLs language (stored procedures/user defined functions) so it gets confused when you start calling a table by that name!&lt;/p&gt;
&lt;p&gt;It&#039;s generally good practice to either name things so they won&#039;t cause a problem, e.g. APPNAME_RETURNS, or put backticks around all your names, or you could do both! &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>Sat, 03 Feb 2007 22:37:46 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1214511 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
