I suspected that would be the case - thanks for explaining why it's happening. I've started rebuilding with individual uploads.
cheers
Main Topics
Browse All TopicsI've built an admin system (using Developer Toolbox) which includes a multiple file upload - On my mysql 5 test server it works fine, but on the clients hosting (mysql 4) I get the following error:
Internal error: cannot create fake recordset. Error creating fake recordset:
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 'SELECT 1 AS tmp) AS tmptable where tmptable.tmp = 2' at line 1
SQL:
SELECT * FROM (SELECT 1 AS tmp) AS tmptable where tmptable.tmp = 2
I also get this error on the page where I'm trying to list the files so I guess it's when retrieving the file recordset that it occurs.
Is there any way to fix - otherwise I will just have to re-build this as simple individual file uploads
thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: jason1178Posted on 2009-09-03 at 07:59:43ID: 25251359
Hi freshwaterwest,
>> SELECT * FROM (SELECT 1 AS tmp) AS tmptable where tmptable.tmp = 2
Wow. First of all, get the client to move to new hosting that uses MySQL 5. Second, the query above is using a subquery and that wasn't introduced to MySQL 4 until version 4.1 or later. So depending on how old the MySQL is, the Toolkit won't work as it uses subqueries for a lot of the more advanced behaviors.
Other possible problems could be that the MySQL user on the client's server needs to have full permissions, including CREATE and DROP ability. If that is not configured properly, a page based on Toolkit behaviors will throw all sorts of errors.