I use MySQL from my php page and from phpMyAdmin.
In Windows Server, following query works fine. In Linux Server instead it
returns error.
The SQL Query is:
SELECT DISTINCT a.id, a.container, b.container FROM folder AS a JOIN folder
AS b ON a.container=b.i d
The PHP error is:
You have an error in your SQL syntax near 'ON a.container=b.i d' at line 1
So, I ask: If in Windows this query work fine, where is the error in the
Linux version? 3 2267
> I use MySQL from my php page and from phpMyAdmin. In Windows Server, following query works fine. In Linux Server instead it returns error.
The SQL Query is: SELECT DISTINCT a.id, a.container, b.container FROM folder AS a JOIN
folder AS b ON a.container=b.i d
The PHP error is: You have an error in your SQL syntax near 'ON a.container=b.i d' at line 1
So, I ask: If in Windows this query work fine, where is the error in the Linux version?
I see now this: problem only occur when have the keyword "ON" in *any* SQL
Query and only in Linux version of Server.
Maybe a permission error? Why? I have SELECT / UPDATE rights
The same problem with root account...
- Chameleon - wrote: I use MySQL from my php page and from phpMyAdmin.
In Windows Server, following query works fine. In Linux Server instead it returns error.
The SQL Query is: SELECT DISTINCT a.id, a.container, b.container FROM folder AS a JOIN folder AS b ON a.container=b.i d
The PHP error is: You have an error in your SQL syntax near 'ON a.container=b.i d' at line 1
So, I ask: If in Windows this query work fine, where is the error in the Linux version?
I see now this: problem only occur when have the keyword "ON" in *any* SQL Query and only in Linux version of Server. Maybe a permission error? Why? I have SELECT / UPDATE rights The same problem with root account...
I would go check at www.mysql.com ... their docs.
I recall something about ON only being available from certain versions of
MySQL ... but don't recall it in detail.
It might be as simple as an upgrade of MySQL on your linux box.
/Andreas
--
Registeret Linux user #292411
- Chameleon - wrote: I use MySQL from my php page and from phpMyAdmin.
In Windows Server, following query works fine. In Linux Server instead it returns error.
The SQL Query is: SELECT DISTINCT a.id, a.container, b.container FROM folder AS a JOIN folder AS b ON a.container=b.i d
The PHP error is: You have an error in your SQL syntax near 'ON a.container=b.i d' at line 1
So, I ask: If in Windows this query work fine, where is the error in the Linux version?
I see now this: problem only occur when have the keyword "ON" in *any* SQL Query and only in Linux version of Server. Maybe a permission error? Why? I have SELECT / UPDATE rights The same problem with root account...
I would go check at www.mysql.com ... their docs.
I recall something about ON only being available from certain versions of
MySQL ... but don't recall it in detail.
It might be as simple as an upgrade of MySQL on your linux box.
/Andreas
--
Registeret Linux user #292411 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Peter Abel |
last post by:
Hi all,
I'm working under W2k with
Python 2.2.2 (#37, Oct 14 2002, 17:02:34) on win32
I have a file *test_data.txt* with the following content:
0123456789
0123456789
abcdefghi
ABCDEFGHIJKLMNOPQ
|
by: GujuBoy |
last post by:
i have the following code...which works fine in UNIX but then i move it
over to WINDOWS XP and check the sum on the same file that i tested on
unix and i get different results.
def checksum(fileobj):
filedata = array.array('B', fileobj.read())
totbytes = len(filedata)
result = 0
def rotate_right(c):
if c&1: return (c>>1)|0x8000
|
by: |
last post by:
I use MySQL from my php page and from phpMyAdmin.
In Windows Server, following query works fine. In Linux Server instead it
returns error.
The SQL Query is:
SELECT DISTINCT a.id, a.container, b.container FROM folder AS a JOIN folder
AS b ON a.container=b.id
The PHP error is:
|
by: netpurpose |
last post by:
I need to extract data from this table to find the lowest prices of
each product as of today. The product will be listed/grouped by the
name only, discarding the product code - I use SUBSTRING(ProductName,
1, CHARINDEX('(', ProductName)-2).
I can get this result, but I had to use several views (totally
inefficient). I think this can be done in one efficient/fast query,
but I can't think of one.
In the case that one query is not...
|
by: Carl |
last post by:
Hi,
I hope someone can share some of their professional advice and help me out
with my embarissing problem concerning an Access INSERT query. I have never
attempted to create a table with one-to-one relationship but on this
occasion
I must keep username/password details within a seperate table.
Here's the basic specs and database schema:
-------------------------------------------
| |
by: SamSpade |
last post by:
Below is what I did in VB6 to set a form to be on top.
It nolonger works.
Questions:
Is there a reason to expect it to not work because of the new VS?
Is there a reason to expect it to not work in XP?
|
by: John Browne |
last post by:
I was attempting to set up my psql client on the Win32 version of
postgres 8.0 beta 2 to be able to use an external editor. I set the
environment variable in windows like so:
PSQL_EDITOR="c:\progra~1\Textpa~1\Textpad.exe"
which does appear to work correctly. However, I get the following
when attempting to edit the query buffer:
db_merrymaids=# \e
|
by: vijayasb |
last post by:
Hi,
I have 2 solutions to get CPU usage of a Process. In one i am using Performance Counters and in the second i am using Win32 API GetProcessTimes(). When i execute the my application using Performance counter, my application itself takes 70 - 80 % CPU and some memory but when i execute my application using Win32 API GetProcessTimes() , my application takes zero% CPU usage and no memory , but the result i get it late i.e. the CPU usage of...
|
by: Kevin Blount |
last post by:
I'm having a very odd issue, that arose this morning after working
fine yesterday...
here's a very simple script:
1: <?php
2: $test = $_GET;
3: echo "Hello" . $test . "<p>";
4: ?>
|
by: sawilla |
last post by:
First, I'm new to Python. I'm getting and error when I run Python
2.5.2 as a regular user in Vista but not when I run Python as an
administrator.
For example, if I type "import numpy" after I launch python from an
adminstrator-privileged command window it loads fine. However, from a
regular-user command window I get:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |