Page 1 of 1

Server Version Problem

Posted: Tue Apr 19, 2011 7:22 am
by ishakya
Hi,

Im running LAMP on my Computer. versions are

OS: Fedora13
Apache: 2.2.15
PHP: 5.3.5
MySql: 5.1.45


My Server has following LAMP versions


OS: Fedora13
Apache: 2.2.16
PHP: 5.3.3
MySql: 5.1.48


in my php program i have created a data analyzer which take data dynamically from MySql DB where user can select a particular table and fields will be retrieved dynamically.
In my computer: Query display like this:

Code: Select all

select cus_id,cus_name from n_tbl_customer where cus_address = 'Virginia' group by cus_id,cus_name 
& in my Server Query display like this:

Code: Select all

select cus_id,cus_name from n_tbl_customer where cus_address = \'Virginia\' group by cus_id,cus_name
when i enter some condition to a selected field to fetch data server is adding an additional back slashes in between the query condition where that does not happen in my PC. can anyone give me an advice on this to sort out this problem?

Thanks & Regards

Ishakya

Re: Server Version Problem

Posted: Tue Apr 19, 2011 12:47 pm
by AbraCadaver
Where is the condition Virginia coming from? A variable? GET, POST?

Re: Server Version Problem

Posted: Thu Apr 21, 2011 7:28 am
by ishakya
thanks for your support.

i think by post method.
i upgraded the php version to 5.3.5.
it is not working properly.
give some advice.



thanks in advance