<?xml version="1.0" encoding="utf-8"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>DaniWeb IT Discussion Community - MySQL</title>
		<link>http://www.daniweb.com/forums</link>
		<description><![CDATA[Our MySQL forum is the place for Q&A-style discussions related to this open source database. LAMP developers will appreciate our PHP forum.]]></description>
		<language>en-US</language>
		<lastBuildDate>Thu, 15 May 2008 15:32:04 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.daniweb.com/forums/myimages/misc/rss.jpg</url>
			<title>DaniWeb IT Discussion Community - MySQL</title>
			<link>http://www.daniweb.com/forums</link>
		</image>
		<item>
			<title><![CDATA[netbeans6.0 & MySQL database]]></title>
			<link>http://www.daniweb.com/forums/thread124337.html</link>
			<pubDate>Thu, 15 May 2008 10:08:47 GMT</pubDate>
			<description>Is this an appropriate place to submit a question concerning netbeans and creating queries?</description>
			<content:encoded><![CDATA[<div>Is this an appropriate place to submit a question concerning netbeans and creating queries?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>ceyesuma</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124337.html</guid>
		</item>
		<item>
			<title>Export and Import of database errors, please advise.</title>
			<link>http://www.daniweb.com/forums/thread124317.html</link>
			<pubDate>Thu, 15 May 2008 08:15:23 GMT</pubDate>
			<description><![CDATA[I am helping a website owner to transfer a site to new servers. All site files have been uploaded onto the new server, only thing left is the database.

In phpmyadmin, when I try to export the DATABASE to my local PC, using zip or gzip to compress, as this is a large database, the file doesn't want...]]></description>
			<content:encoded><![CDATA[<div>I am helping a website owner to transfer a site to new servers. All site files have been uploaded onto the new server, only thing left is the database.<br />
<br />
In phpmyadmin, when I try to export the DATABASE to my local PC, using zip or gzip to compress, as this is a large database, the file doesn't want to uncompress on my local pc, I get an error message that it may be corrupt?<br />
<br />
Then I exported the database without compressing it, and it downloaded without any problems.<br />
<br />
As I am realy very novice in this, and only have a basic knowledge how to import this database from my local PC to the new server, using phpmyadmin, the first problem was that phpmyadmin only allows 51 mb to import this way, and this database is about 90 mb. I am very unlitterate in doing command line queries to do this import, so I contacted the support of the new host to help out, and they said I can upload the database via ftp to the server, and they wil install it from there.<br />
<br />
I then uploaded the uncompressed .sql text file to a folder, via ftp, using binary mode.<br />
<br />
When the host tried to install it, they got an error message in the syntax at a certain line, and asked me to correct it. I have no idea how to, as this database is just what came from the old server, nothing changed to it.<br />
<br />
Is there any help or hope for me on this one?<br />
<br />
Edit:<br />
<br />
The full error message the host got was: <br />
<br />
[root@cayenne /home/kletsker/mysqldump]# mysql kletsker_kletskerk &lt; localhost.sql ERROR 1064 (42000) at line 89499: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''[quote=&amp;quot;Barend&amp;quot;:3v' at line 1</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>Kraai</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124317.html</guid>
		</item>
		<item>
			<title>How do you use output from linked server query?</title>
			<link>http://www.daniweb.com/forums/thread124249.html</link>
			<pubDate>Wed, 14 May 2008 20:25:32 GMT</pubDate>
			<description>I am reading records from a linked server table, and trying to use the output in the next update statement, not on the linked server.  I am assigning it to a declared variable.  The file is being updated with NULL, instead of the correct check number.  Any help???

Example code:

DECLARE
@Check  ...</description>
			<content:encoded><![CDATA[<div>I am reading records from a linked server table, and trying to use the output in the next update statement, not on the linked server.  I am assigning it to a declared variable.  The file is being updated with NULL, instead of the correct check number.  Any help???<br />
<br />
Example code:<br />
<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left"><pre class="code"><ol><li class="li1"><div class="de1">DECLARE</div></li><li class="li1"><div class="de1">@<span class="kw1">CHECK</span>&nbsp;  VARCHAR<span class="br0">&#40;</span><span class="nu0">8</span><span class="br0">&#41;</span></div></li><li class="li1"><div class="de1">@TSQL&nbsp; &nbsp; varchar<span class="br0">&#40;</span><span class="nu0">8000</span><span class="br0">&#41;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li2"><div class="de2"><span class="kw1">SELECT</span> @TSQL = <span class="st0">'SELECT keyfield FROM OPENQUERY(linkedserver, </span></div></li><li class="li1"><div class="de1"><span class="st0">&nbsp; &nbsp; &nbsp; '</span><span class="st0">'SET '</span>+@<span class="kw1">CHECK</span>+<span class="st0">'= select keyfield from library.file WHERE document=12345)'</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">EXEC <span class="br0">&#40;</span>@TSQL<span class="br0">&#41;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li2"><div class="de2"><span class="kw1">UPDATE</span> mainlibrary.file <span class="kw1">SET</span> Keyfield2=@<span class="kw1">CHECK</span> <span class="kw1">WHERE</span> document=<span class="nu0">12345</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">END</div></li></ol></pre></code> </div></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>kbrown123</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124249.html</guid>
		</item>
		<item>
			<title>How to stop iterating through a table?</title>
			<link>http://www.daniweb.com/forums/thread124225.html</link>
			<pubDate>Wed, 14 May 2008 17:56:01 GMT</pubDate>
			<description><![CDATA[Here is the code.  For a short time, I will leave the test results up at superiorminitrucks.com/inventory (http://superiorminitrucks.com/inventory)

Clearly, I need to stop it from displaying the final entry twice..

Thanks in advance..

 <div class="codeblock"> <div class="spaced"> <div...]]></description>
			<content:encoded><![CDATA[<div>Here is the code.  For a short time, I will leave the test results up at <a rel="nofollow" class="t" href="http://superiorminitrucks.com/inventory" target="_blank">superiorminitrucks.com/inventory</a><br />
<br />
Clearly, I need to stop it from displaying the final entry twice..<br />
<br />
Thanks in advance..<br />
<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left">&nbsp; &nbsp; &nbsp; &nbsp; &lt;?php<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $db_connection = @mysql_connect(&quot;######&quot;, &quot;#####&quot;, &quot;####&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!$db_connection) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit();&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mysql_select_db(&quot;tefflox&quot;, $db_connection);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $result = mysql_query(&quot;SELECT * FROM trucks&quot;);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while($row = mysql_fetch_array($result)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if($row['id']){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $lightbox1 = $row['relpath-box1'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $lightbox2 = $row['relpath-box2'];&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $lightbox3 = $row['relpath-box3'];&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $lightbox4 = $row['relpath-box4'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $primary&nbsp;  = $row['relpath-primary'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $gallery1&nbsp; = $row['relpath-gallery1'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $gallery2&nbsp; = $row['relpath-gallery2'];&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $gallery3&nbsp; = $row['relpath-gallery3'];&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $year&nbsp; &nbsp; &nbsp; = $row['year'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $make&nbsp; &nbsp; &nbsp; = $row['make'];&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $model&nbsp; &nbsp;  = $row['model'];&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $miles&nbsp; &nbsp;  = $row['miles'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $comment&nbsp;  = $row['comment'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $option1&nbsp;  = $row['option1'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $option2&nbsp;  = $row['option2'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $option3&nbsp;  = $row['option3'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $option4&nbsp;  = $row['option4'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $option5&nbsp;  = $row['option5'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $option6&nbsp;  = $row['option6'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $option7&nbsp;  = $row['option7'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $option8&nbsp;  = $row['option8'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; echo(&quot;&lt;tr&gt;\n&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo(&quot;&nbsp; &lt;td width=\&quot;320\&quot;&gt;\n&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo(&quot;&nbsp; &nbsp; &lt;a href=\&quot;../inventory/trucks/&quot;. $lightbox1 .&quot;\&quot; title=\&quot;\&quot; class=\&quot;smoothbox\&quot; rel=\&quot;inventory/trucks/\&quot;&gt;&lt;img src=\&quot;../inventory/trucks/&quot;. $primary .&quot;\&quot; alt=\&quot;1\&quot; /&gt;&lt;/a&gt;&lt;/td&gt;\n&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo(&quot;&nbsp; &lt;td width=\&quot;320\&quot;&gt;&quot;. $year . &quot; &quot; . $make . &quot; &quot; . $model . &quot;&lt;br/&gt;&lt;br/&gt;&quot;. $miles .&quot;&lt;br/&gt;&quot;. $comment .&quot;&lt;br/&gt;&lt;br/&gt;\n&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo(&quot;&nbsp; &nbsp; &lt;a href=\&quot;../inventory/trucks/&quot; . $lightbox2 . &quot;\&quot; title=\&quot;\&quot; class=\&quot;smoothbox\&quot; rel=\&quot;inventory/trucks/\&quot;&gt;&lt;img style=\&quot;float: left\&quot; src=\&quot;../inventory/trucks/&quot;. $gallery1 .&quot;\&quot; alt=\&quot;2\&quot; /&gt;&lt;/a&gt;\n&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo(&quot;&nbsp; &nbsp; &lt;a href=\&quot;../inventory/trucks/&quot; . $lightbox3 . &quot;\&quot; title=\&quot;\&quot; class=\&quot;smoothbox\&quot; rel=\&quot;inventory/trucks/\&quot;&gt;&lt;img style=\&quot;float: left\&quot; src=\&quot;../inventory/trucks/&quot;. $gallery2 .&quot;\&quot; alt=\&quot;3\&quot; /&gt;&lt;/a&gt;\n&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo(&quot;&nbsp; &nbsp; &lt;a href=\&quot;../inventory/trucks/&quot; . $lightbox4 . &quot;\&quot; title=\&quot;\&quot; class=\&quot;smoothbox\&quot; rel=\&quot;inventory/trucks/\&quot;&gt;&lt;img style=\&quot;float: left\&quot; src=\&quot;../inventory/trucks/&quot;. $gallery3 .&quot;\&quot; alt=\&quot;4\&quot; /&gt;&lt;/a&gt;\n&quot;);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; echo(&quot;&nbsp; &lt;/td&gt;\n&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo(&quot;&nbsp; &lt;td&gt;&quot;. $option1 .&quot;&lt;br/&gt;&quot;. $option2 .&quot;&lt;br/&gt;&quot;. $option3 .&quot;&lt;br/&gt;&lt;br/&gt;&quot;. $option4 .&quot;&lt;br/&gt;&quot;. $option5 .&quot;&lt;br/&gt;&quot;. $option6 . &quot;&lt;br/&gt;&quot;. $option7 .&quot;&lt;br/&gt;&quot;. $option8 .&quot;&lt;/td&gt;\n&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo(&quot;&lt;/tr&gt;\n\n&quot;);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mysql_close($db_connection);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; ?&gt;</code> </div></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>tefflox</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124225.html</guid>
		</item>
		<item>
			<title>realtime query without cronjob</title>
			<link>http://www.daniweb.com/forums/thread124112.html</link>
			<pubDate>Wed, 14 May 2008 02:35:54 GMT</pubDate>
			<description>how to copyng data from another database postgre to mySQL database without cronjob with realtime...  thanks</description>
			<content:encoded><![CDATA[<div>how to copyng data from another database postgre to mySQL database without cronjob with realtime...  thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>forzadraco</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124112.html</guid>
		</item>
		<item>
			<title>Please help</title>
			<link>http://www.daniweb.com/forums/thread124053.html</link>
			<pubDate>Tue, 13 May 2008 17:16:15 GMT</pubDate>
			<description><![CDATA[Please tell me what I'm doing wrong.  The sql query is in bold.

 <div class="codeblock"> <div class="spaced"> <div class="light" style="float:right"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags"...]]></description>
			<content:encoded><![CDATA[<div>Please tell me what I'm doing wrong.  The sql query is in bold.<br />
<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left">&lt;?php <br />
////////////////////////////////////////////////////////////////////////////////<br />
//<br />
// SECRET PAGE<br />
//<br />
//&nbsp;  Invokes require_authentication() to ensure that the user is authenticated<br />
//&nbsp; &nbsp;  <br />
//////////////////////////////////////////////////////////////////////////////// <br />
require(&quot;common.php&quot;);<br />
require_authentication();<br />
session_start(); ?&gt;<br />
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.1//EN&quot; &quot;http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&quot;&gt;<br />
&lt;html xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr' xml:lang=&quot;en&quot;&gt;<br />
&nbsp; &lt;head&gt;<br />
&nbsp; &nbsp; &lt;title&gt;Preview Update&lt;/title&gt;<br />
&nbsp; &nbsp; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /&gt;<br />
&nbsp; &nbsp; &lt;meta name=&quot;description&quot; content=&quot;Superior Mini Trucks&quot; /&gt;<br />
&nbsp; &nbsp; &lt;meta name=&quot;keywords&quot;&nbsp; &nbsp; content=&quot;Wichita, Superior, mini, trucks, 'Mini Trucks'&quot; /&gt;<br />
&nbsp; &nbsp; &lt;link href=&quot;&quot; rel=&quot;shortcut icon&quot; /&gt;&nbsp; &nbsp; <br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &lt;link href=&quot;../site.css&quot;&nbsp; &nbsp; &nbsp; &nbsp; media=&quot;screen&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;<br />
&nbsp; &nbsp; &lt;link href=&quot;../smoothbox.css&quot;&nbsp;  media=&quot;screen&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;<br />
<br />
&nbsp; &nbsp; &lt;script type=&quot;text/javascript&quot; src=&quot;../moo.js&quot;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/script&gt;<br />
&nbsp; &nbsp; &lt;script type=&quot;text/javascript&quot; src=&quot;../inventory/index.js&quot;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &lt;/script&gt;<br />
&nbsp; &nbsp; &lt;script type=&quot;text/javascript&quot; src=&quot;../inventory/smoothbox.js&quot;&gt;&nbsp; &nbsp; &lt;/script&gt;<br />
&nbsp; &lt;/head&gt;<br />
&lt;body&gt;<br />
<br />
&lt;div id=&quot;whole_page&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;div id=&quot;header&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &amp;nbsp;<br />
&nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;div style=&quot;opacity: 0.7; filter: alpha(opacity: 70);&quot; id=&quot;nav&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &amp;nbsp;<br />
&nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
<br />
&nbsp; &lt;div style=&quot;clear: both;&quot;&gt;&lt;/div&gt;&nbsp; <br />
&nbsp; &nbsp; &lt;div style=&quot;opacity: 0.95;&quot; class=&quot;content&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;div style=&quot;background-color: #fffff0;&quot; id=&quot;log&quot;&gt;&nbsp; <br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;?php<br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $data = $_SESSION['data'];<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $year&nbsp; &nbsp; = $_POST['year'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $make&nbsp; &nbsp; = $_POST['make'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $model&nbsp;  = $_POST['model'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $miles&nbsp;  = $_POST['miles'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $comment = $_POST['comment'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $option1 = $_POST['option1'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $option2 = $_POST['option2'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $option3 = $_POST['option3'];<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $option4 = $_POST['option4'];&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $option5 = $_POST['option5'];&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $option6 = $_POST['option6'];&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $option7 = $_POST['option7'];&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $option8 = $_POST['option8'];&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $update = array(0 =&gt; $data[0], $data[1], $data[2], $data[3], $data[4], $data[5], $data[6], $data[7], $year, $make, $model, $miles, $comment, $option1, $option2, $option3, $option4, $option5, $option6, $option7, $option8);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo '&lt;table class=&quot;pictured photo_data&quot;&gt;';&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; echo '&nbsp; &nbsp; ';<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo ' &lt;tr&gt; ';<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo '&nbsp;  &lt;td width=&quot;320&quot;&gt; ';<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo '&nbsp; &nbsp;  &lt;a href=&quot;/inventory/trucks/'.$data[0].'&quot; title=&quot;&quot; class=&quot;smoothbox&quot; rel=&quot;inventory/trucks&quot;&gt;&lt;img src=&quot;../inventory/trucks/'.$data[4].'&quot; alt=&quot;1&quot; /&gt;&lt;/a&gt;&lt;/td&gt; ';<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo '&nbsp; &nbsp;  &lt;td width=&quot;320&quot;&gt;'.$year.' '.$make.' '.$model.'&lt;br/&gt;&lt;br/&gt;'.$miles.'&lt;br/&gt;'.$comment.'&lt;br/&gt;&lt;br/&gt; ';<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo '&nbsp; &nbsp; &nbsp;  &lt;a href=&quot;../inventory/trucks/'.$data[1].'&quot; title=&quot;&quot; class=&quot;smoothbox&quot; rel=&quot;inventory/trucks&quot;&gt;&lt;img style=&quot;float:left&quot; src=&quot;../inventory/trucks/'.$data[5].'&quot; alt=&quot;2&quot; /&gt;&lt;/a&gt; ';<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo '&nbsp; &nbsp; &nbsp;  &lt;a href=&quot;../inventory/trucks/'.$data[2].'&quot; title=&quot;&quot; class=&quot;smoothbox&quot; rel=&quot;inventory/trucks&quot;&gt;&lt;img style=&quot;float:left&quot; src=&quot;../inventory/trucks/'.$data[6].'&quot; alt=&quot;3&quot; /&gt;&lt;/a&gt; ';<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo '&nbsp; &nbsp; &nbsp;  &lt;a href=&quot;../inventory/trucks/'.$data[3].'&quot; title=&quot;&quot; class=&quot;smoothbox&quot; rel=&quot;inventory/trucks&quot;&gt;&lt;img style=&quot;float:left&quot; src=&quot;../inventory/trucks/'.$data[7].'&quot; alt=&quot;4&quot; /&gt;&lt;/a&gt; ';&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; echo '&nbsp; &nbsp;  &lt;/td&gt; ';<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo '&nbsp;  &lt;td&gt;'.$option1.'&lt;br/&gt;'.$option2.'&lt;br/&gt;'.$option3.'&lt;br/&gt;&lt;br/&gt;';<br />
&nbsp; &nbsp; &nbsp; &nbsp; if($option4 != &quot;&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo $option4.'&lt;br/&gt;';<br />
&nbsp; &nbsp; &nbsp; &nbsp; if($option5 != null)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo $option5.'&lt;br/&gt;';<br />
&nbsp; &nbsp; &nbsp; &nbsp; if($option6 != null)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo $option6.'&lt;br/&gt;';<br />
&nbsp; &nbsp; &nbsp; &nbsp; if($option7 != null)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo $option7.'&lt;br/&gt;';<br />
&nbsp; &nbsp; &nbsp; &nbsp; if($option8 != null)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo $option8;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo '&lt;/td&gt; ';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo ' &lt;/tr&gt; ';<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
echo '&lt;/table&gt;';<br />
echo '&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;';<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo '&lt;blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;';&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo '&lt;form method=&quot;post&quot; action=&quot;/inventory/&quot;&gt;';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo '&lt;input type=&quot;submit&quot; name=&quot;validated_confirmed_update&quot; value=&quot;&amp;bull; &amp;bull; &amp;bull; Update Inventory &amp;bull; &amp;bull; &amp;bull;&quot;&gt; (not yet operational)&lt;/form&gt;';&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo '&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;';&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $db_connection = @mysql_connect(&quot;-----------.--------.net&quot;, &quot;--------&quot;, &quot;---------&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (!$db_connection) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo( &quot;&lt;P&gt;Unable to connect to the database server at this time.&lt;/P&gt;&quot; );<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; $db = @mysql_select_db(&quot;-----------&quot;, $db_connection);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; if(!$db) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo( &quot;&lt;P&gt;Unable to locate the database at this time.&lt;/P&gt;&quot; );<br />
&nbsp; &nbsp; &nbsp; exit();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
<b>&nbsp; &nbsp; if (&quot;SUBMIT&quot; == $validated_confirmed_update) {<br />
&nbsp; &nbsp; &nbsp; $sql = &quot;INSERT INTO trucks (relpath-box1, relpath-box2, relpath-box3, relpath-primary, relpath-gallery1, relpath-gallery2, relpath-gallery3, year, make, model, miles, comment, option1, option2, option3, option4, option5, option6, option7, option8) VALUES (&quot;.$data[0].&quot;, &quot;.$data[1].&quot;, &quot;.$data[2].&quot;, &quot;.$data[3].&quot;, &quot;.$data[4].&quot;, &quot;.$data[5].&quot;, &quot;.$data[6].&quot;, &quot;.$data[7].&quot;, &quot;.$year.&quot;, &quot;.$make.&quot;, &quot;.$model.&quot;, &quot;.$miles.&quot;, &quot;.$comment.&quot;, &quot;.$option1.&quot;, &quot;.$option2.&quot;, &quot;.$option3.&quot;, &quot;.$option4.&quot;, &quot;.$option5.&quot;, &quot;.$option6.&quot;, &quot;.$option7.&quot;, &quot;.$option8.&quot;)&quot;; </b><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; mysql_query($sql);<br />
&nbsp;}<br />
?&gt;</code> </div></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>tefflox</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124053.html</guid>
		</item>
		<item>
			<title>Please help populate my first functional database.</title>
			<link>http://www.daniweb.com/forums/thread123939.html</link>
			<pubDate>Tue, 13 May 2008 03:58:57 GMT</pubDate>
			<description><![CDATA[I am able to connect to the database and located the table.  I am unable to populate the db.  Attached is a in image of the phpmyadmin trucks table structure.  Please help. I am excited to be so close to getting it right.

 <div class="codeblock"> <div class="spaced"> <div class="light"...]]></description>
			<content:encoded><![CDATA[<div>I am able to connect to the database and located the table.  I am unable to populate the db.  Attached is a in image of the phpmyadmin trucks table structure.  Please help. I am excited to be so close to getting it right.<br />
<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo '&lt;blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;';&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo '&lt;form method=&quot;post&quot; action=&quot;/inventory/&quot;&gt;';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo '&lt;input type=&quot;submit&quot; name=&quot;validated_confirmed_update&quot; value=&quot;&amp;bull; &amp;bull; &amp;bull; Update Inventory &amp;bull; &amp;bull; &amp;bull;&quot;&gt;&lt;/form&gt;';&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo '&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;';&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $db_connection = @mysql_connect(&quot;----------------------.net&quot;, &quot;--------------&quot;, &quot;----------------&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (!$db_connection) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo( &quot;&lt;P&gt;Unable to connect to the database server at this time.&lt;/P&gt;&quot; );<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; $db = @mysql_select_db(&quot;---------&quot;, $db_connection);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; if(!$db) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo( &quot;&lt;P&gt;Unable to locate the database at this time.&lt;/P&gt;&quot; );<br />
&nbsp; &nbsp; &nbsp; exit();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; if (&quot;submit&quot; == $validated_confirmed_update) {<br />
&nbsp; &nbsp; &nbsp; $sql = &quot;INSERT INTO trucks SET &quot; .<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;relpath-box1='$data[0]', &quot; .<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;relpath-box2='$data[1]' ,&quot; .<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;relpath-box3='$data[2]' ,&quot; .<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;relpath-box4='$data[3]' ,&quot; .<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;relpath-primary='$data[4]' ,&quot; .<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;relpath-gallery1='$data[5]' ,&quot; .<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;relpath-gallery2='$data[6]' ,&quot; .<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;relpath-gallery3='$data[7]' ,&quot; .<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;year='$year' ,&quot; .<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;make='$make' ,&quot; .<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;model='$model' ,&quot; .<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;miles='$miles' ,&quot; .<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;comment='$comment' ,&quot; .<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;option1='$option1' ,&quot; .<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;option2='$option1' ,&quot; .<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;option3='$option1' ,&quot; .<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;option4='$option1' ,&quot; .<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;option5='$option1' ,&quot; .<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;option6='$option1' ,&quot; .<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;option7='$option1' ,&quot; .<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;option8='$option1'&nbsp; &quot; ;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; mysql_query($sql);<br />
&nbsp;}</code> </div>
<br />
<br />
The stuff preceding the above....<br />
<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left">&lt;?php session_start(); ?&gt;<br />
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.1//EN&quot; &quot;http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&quot;&gt;<br />
&lt;html xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr' xml:lang=&quot;en&quot;&gt;<br />
&lt;body&gt;<br />
<br />
&lt;div id=&quot;whole_page&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;div id=&quot;header&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &amp;nbsp;<br />
&nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;div style=&quot;opacity: 0.7; filter: alpha(opacity: 70);&quot; id=&quot;nav&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &amp;nbsp;<br />
&nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
<br />
&nbsp; &lt;div style=&quot;clear: both;&quot;&gt;&lt;/div&gt;&nbsp; <br />
&nbsp; &nbsp; &lt;div style=&quot;opacity: 0.95;&quot; class=&quot;content&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;div style=&quot;background-color: #fffff0;&quot; id=&quot;log&quot;&gt;&nbsp; <br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;?php<br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $data = $_SESSION['data'];<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $year&nbsp; &nbsp; = $_POST['year'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $make&nbsp; &nbsp; = $_POST['make'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $model&nbsp;  = $_POST['model'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $miles&nbsp;  = $_POST['miles'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $comment = $_POST['comment'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $option1 = $_POST['option1'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $option2 = $_POST['option2'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $option3 = $_POST['option3'];<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $option4 = $_POST['option4'];&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $option5 = $_POST['option5'];&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $option6 = $_POST['option6'];&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $option7 = $_POST['option7'];&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $option8 = $_POST['option8'];&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $update = array(0 =&gt; $data[0], $data[1], $data[2], $data[3], $data[4], $data[5], $data[6], $data[7], $year, $make, $model, $miles, $comment, $option1, $option2, $option3, $option4, $option5, $option6, $option7, $option8);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo '&lt;table class=&quot;pictured photo_data&quot;&gt;';&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; echo '&nbsp; &nbsp; ';<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo ' &lt;tr&gt; ';<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo '&nbsp;  &lt;td width=&quot;320&quot;&gt; ';<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo '&nbsp; &nbsp;  &lt;a href=&quot;/inventory/trucks/'.$data[0].'&quot; title=&quot;&quot; class=&quot;smoothbox&quot; rel=&quot;inventory/trucks&quot;&gt;&lt;img src=&quot;../inventory/trucks/'.$data[4].'&quot; alt=&quot;1&quot; /&gt;&lt;/a&gt;&lt;/td&gt; ';<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo '&nbsp; &nbsp;  &lt;td width=&quot;320&quot;&gt;'.$year.' '.$make.' '.$model.'&lt;br/&gt;&lt;br/&gt;'.$miles.'&lt;br/&gt;'.$comment.'&lt;br/&gt;&lt;br/&gt; ';<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo '&nbsp; &nbsp; &nbsp;  &lt;a href=&quot;../inventory/trucks/'.$data[1].'&quot; title=&quot;&quot; class=&quot;smoothbox&quot; rel=&quot;inventory/trucks&quot;&gt;&lt;img style=&quot;float:left&quot; src=&quot;../inventory/trucks/'.$data[5].'&quot; alt=&quot;2&quot; /&gt;&lt;/a&gt; ';<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo '&nbsp; &nbsp; &nbsp;  &lt;a href=&quot;../inventory/trucks/'.$data[2].'&quot; title=&quot;&quot; class=&quot;smoothbox&quot; rel=&quot;inventory/trucks&quot;&gt;&lt;img style=&quot;float:left&quot; src=&quot;../inventory/trucks/'.$data[6].'&quot; alt=&quot;3&quot; /&gt;&lt;/a&gt; ';<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo '&nbsp; &nbsp; &nbsp;  &lt;a href=&quot;../inventory/trucks/'.$data[3].'&quot; title=&quot;&quot; class=&quot;smoothbox&quot; rel=&quot;inventory/trucks&quot;&gt;&lt;img style=&quot;float:left&quot; src=&quot;../inventory/trucks/'.$data[7].'&quot; alt=&quot;4&quot; /&gt;&lt;/a&gt; ';&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; echo '&nbsp; &nbsp;  &lt;/td&gt; ';<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo '&nbsp;  &lt;td&gt;'.$option1.'&lt;br/&gt;'.$option2.'&lt;br/&gt;'.$option3.'&lt;br/&gt;&lt;br/&gt;';<br />
&nbsp; &nbsp; &nbsp; &nbsp; if($option4 != &quot;&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo $option4.'&lt;br/&gt;';<br />
&nbsp; &nbsp; &nbsp; &nbsp; if($option5 != null)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo $option5.'&lt;br/&gt;';<br />
&nbsp; &nbsp; &nbsp; &nbsp; if($option6 != null)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo $option6.'&lt;br/&gt;';<br />
&nbsp; &nbsp; &nbsp; &nbsp; if($option7 != null)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo $option7.'&lt;br/&gt;';<br />
&nbsp; &nbsp; &nbsp; &nbsp; if($option8 != null)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo $option8;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo '&lt;/td&gt; ';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo ' &lt;/tr&gt; ';<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
echo '&lt;/table&gt;';<br />
echo '&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;';</code> </div></div>  <br /> <div style="padding:5px">    <fieldset class="fieldset"> <legend>Attached Images</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums//forums/myimages/attach/jpg.gif" alt="File Type: jpg" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=6044&amp;d=1210650919" class="thickbox" title="db-table.jpg" rel="attach605785">db-table.jpg</a> (132.9 KB)</td> </tr> </table> </fieldset>   </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>tefflox</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread123939.html</guid>
			<enclosure url="http://www.daniweb.com/forums/attachment.php/6044/db-table.jpg" length="136051" type="image/jpeg" />
		</item>
		<item>
			<title>PHP in MySQL Trigger</title>
			<link>http://www.daniweb.com/forums/thread123868.html</link>
			<pubDate>Mon, 12 May 2008 14:56:34 GMT</pubDate>
			<description>Hi guys,

Can i run xxx.php page in a MySQL Trigger?

Thanks</description>
			<content:encoded><![CDATA[<div>Hi guys,<br />
<br />
Can i run xxx.php page in a MySQL Trigger?<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>veledrom</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread123868.html</guid>
		</item>
		<item>
			<title>How to Config MyOdbc 3.51 and MySql Server 7.0 to a Network Base</title>
			<link>http://www.daniweb.com/forums/thread123525.html</link>
			<pubDate>Sat, 10 May 2008 11:34:30 GMT</pubDate>
			<description>Hi Everyone,

Good Day,,

can you help me to config mysql server to be able for me to connect to it thru a network.

for example the mysql server is on the other pc and i am using a software in other pc.
how can i connect to it.?

thanks for help..</description>
			<content:encoded><![CDATA[<div>Hi Everyone,<br />
<br />
Good Day,,<br />
<br />
can you help me to config mysql server to be able for me to connect to it thru a network.<br />
<br />
for example the mysql server is on the other pc and i am using a software in other pc.<br />
how can i connect to it.?<br />
<br />
thanks for help..<br />
<br />
<br />
loveknights07</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>loveknights07</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread123525.html</guid>
		</item>
		<item>
			<title>ODBC configuration</title>
			<link>http://www.daniweb.com/forums/thread123276.html</link>
			<pubDate>Fri, 09 May 2008 00:40:41 GMT</pubDate>
			<description>Well, i am facing this problem when i try to configure my ODBC 3.51 Driver.
I had successfully installed MySQL. Then i try to install and configure my ODBC 3.51 driver. I add a new user DSN, filling with the correct username and password, with the data source name. However when i scroll down for...</description>
			<content:encoded><![CDATA[<div>Well, i am facing this problem when i try to configure my ODBC 3.51 Driver.<br />
I had successfully installed MySQL. Then i try to install and configure my ODBC 3.51 driver. I add a new user DSN, filling with the correct username and password, with the data source name. However when i scroll down for the database, i geth the error message as shown.:<br />
Request returned with SQL_ERROR<br />
I already turn off my firewall. Anyone can help? Thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>evios</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread123276.html</guid>
		</item>
		<item>
			<title>UDF in MySQL</title>
			<link>http://www.daniweb.com/forums/thread123247.html</link>
			<pubDate>Thu, 08 May 2008 20:30:28 GMT</pubDate>
			<description><![CDATA[Hi.
I want to know how it is possible to write your own function "UDF" in MySQL? and how use that UDF in MySQL?]]></description>
			<content:encoded><![CDATA[<div>Hi.<br />
I want to know how it is possible to write your own function &quot;UDF&quot; in MySQL? and how use that UDF in MySQL?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>tanha</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread123247.html</guid>
		</item>
		<item>
			<title>mySQL TRIGGER problem</title>
			<link>http://www.daniweb.com/forums/thread123166.html</link>
			<pubDate>Thu, 08 May 2008 10:32:36 GMT</pubDate>
			<description><![CDATA[Hello,

I'm having some sintax problems using PL/SQL in mySQL TRIGGERS.. I need some help please :). 
Here is the code: 

 <div class="codeblock"> <div class="spaced"> <div class="light" style="float:right"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680"...]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I'm having some sintax problems using PL/SQL in mySQL TRIGGERS.. I need some help please :). <br />
Here is the code: <br />
<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left">CREATE TRIGGER modificou<br />
&nbsp;  AFTER UPDATE ON monitor<br />
&nbsp;  FOR EACH ROW<br />
&nbsp;BEGIN<br />
&nbsp;  IF NOT EXISTS(SELECT estado_tmp FROM alteracoes WHERE id_tmp = OLD.id)<br />
&nbsp;  THEN<br />
&nbsp; &nbsp; &nbsp;  INSERT INTO alteracoes VALUES(OLD.id,NEW.estado);<br />
&nbsp;  ELSE<br />
&nbsp; &nbsp; &nbsp;  UPDATE alteracoes SET estado_tmp = NEW.estado WHERE id_tmp = OLD.id;<br />
&nbsp;  END IF;<br />
&nbsp;END modificou;</code> </div>
<br />
What could be wrong?? For testing I'm using phpmyadmin 2.11.1<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>M3nTaL</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread123166.html</guid>
		</item>
		<item>
			<title>MySQL Error 1064 when DELETEing</title>
			<link>http://www.daniweb.com/forums/thread123020.html</link>
			<pubDate>Wed, 07 May 2008 18:21:14 GMT</pubDate>
			<description><![CDATA[I'm trying to carry out the following delete statements 
 <div class="codeblock"> <div class="spaced"> <div class="light" style="float:right"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help...]]></description>
			<content:encoded><![CDATA[<div>I'm trying to carry out the following delete statements <br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left">DELETE FROM images AS i WHERE i.image_id = 803 AND i.plant_num = 2277 LIMIT 1<br />
DELETE FROM images AS i WHERE i.image_id = 804 AND i.plant_num = 2277 LIMIT 1<br />
DELETE FROM images AS i WHERE i.image_id = 805 AND i.plant_num = 2277 LIMIT 1</code> </div>
<br />
but i am getting the error:<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left">1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS i WHERE i.image_id = 803 AND i.plant_num = 2277 LIMIT 1; DELETE FROM images A' at line 1</code> </div>
<br />
any idea what is causing this  because everything looks okay to me.<br />
<br />
Thanks in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>ray_broome</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread123020.html</guid>
		</item>
		<item>
			<title>Having issues on MYSQL from one Domain to another</title>
			<link>http://www.daniweb.com/forums/thread123358.html</link>
			<pubDate>Tue, 06 May 2008 20:28:35 GMT</pubDate>
			<description>Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\Inetpub\vhosts\thepinflow.com\httpdocs\staff\checklogin.php on line 12
Wrong Username or Password 

That is the error message I am recieving.

I was using another website to host a PHP/SQL website...</description>
			<content:encoded><![CDATA[<div>Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\Inetpub\vhosts\thepinflow.com\httpdocs\staff\checklogin.php on line 12<br />
Wrong Username or Password <br />
<br />
That is the error message I am recieving.<br />
<br />
I was using another website to host a PHP/SQL website before,<br />
currently located at: <a rel="nofollow" class="t" href="http://www.blackairplane.com/Pinflow/index.php" target="_blank">http://www.blackairplane.com/Pinflow/index.php</a><br />
which works. When I copied all the files over completely and then tried<br />
to run it on the <a rel="nofollow" class="t" href="http://staff.thepinflow.com/" target="_blank">http://staff.thepinflow.com/</a> site (under the 1&amp;1<br />
purchased domain), and try to login, I return the following error:<br />
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result<br />
resource in<br />
<br />
C:\Inetpub\vhosts\thepinflow.com\httpdocs\staff\checklogin.php on line<br />
12Wrong Username or Password.. <br />
<br />
yet it all works fine on my other domain <a rel="nofollow" class="t" href="http://www.theblackairplane.com" target="_blank">www.theblackairplane.com</a> as mentioned above...<br />
<br />
I really need help on this as I am paying 40 bucks a month and not<br />
being able to use the site as intended. How could just transferring the<br />
site over from one domain to the other make it not work?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>freeosin</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread123358.html</guid>
		</item>
		<item>
			<title><![CDATA[Insert doesn't do what it's supposed to]]></title>
			<link>http://www.daniweb.com/forums/thread122707.html</link>
			<pubDate>Tue, 06 May 2008 08:37:26 GMT</pubDate>
			<description><![CDATA[I have a ton of inserts in an sql file that look like this:
 <div class="codeblock"> <div class="spaced"> <div class="light" style="float:right"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags"...]]></description>
			<content:encoded><![CDATA[<div>I have a ton of inserts in an sql file that look like this:<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left">INSERT INTO grades (GWid, classid, semester, year, grade, required) <br />
VALUES(100000089, 'CS210', 'B', 'fall', '2006', 'yes');</code> </div>
but when I get my filled tables, the semester and grades are all null and the year is 0000. Any explanations as to why this would be happening? <br />
<br />
I'm using phpMyAdmin 2.6.4-pl4 with MySQL 3.23.32 (maybe higher). It's on a university server so I don't have any choice in the matter or privileges to change anything.<br />
-----------------------<br />
<br />
Crap, I just realised that the values are in the wrong order. Problem solved. Tiiiiired...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>Icetigris</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread122707.html</guid>
		</item>
	</channel>
</rss>
