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 2265
> 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: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
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...
| |