Server Version Problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ishakya
Forum Commoner
Posts: 40
Joined: Tue Jan 04, 2011 4:58 am

Server Version Problem

Post 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
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: Server Version Problem

Post by AbraCadaver »

Where is the condition Virginia coming from? A variable? GET, POST?
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
ishakya
Forum Commoner
Posts: 40
Joined: Tue Jan 04, 2011 4:58 am

Re: Server Version Problem

Post 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
Post Reply