-3

I did my coding parts with PDO connect.Its working in my dev server.But when I move it to live server its not working.I already posted the issue with this

Issue

But the database connection with mysql is working fine.I tried to change the configuration part with the people they are in live server.They tried it but got failed.Now they don't want to go with PDO.They asked me to go with mysql_connect.

Goal:
Instead of changing the entire code is there any possible idea to execute the query with the mysql connection.I don't want to change the entire database activity.Because it is used in many places.

Could you please help on this.

Community
  • 1
  • 1
svk
  • 4,513
  • 18
  • 63
  • 100
  • 1
    Why isn't it better to figure out what actually caused the issue? – zerkms Jan 11 '12 at 05:58
  • This would be the ultimate example on why you should encapsulate and use abstraction. Are you sure this isn't just a server config issue? To enable PDO, I mean. – JohnP Jan 11 '12 at 05:59
  • @JohnP: abstraction from what? It makes no sense to abstract from PDO (which in fact is abstract DBAL) – zerkms Jan 11 '12 at 06:01
  • @zerkms server is not in my controll.I already send a lot of mails to the people.But they never get the solution for it.So cant able to figure out what they made the changes,and why its throwing an error. – svk Jan 11 '12 at 06:03
  • @zerkms I meant having a fixed interface. Switching would be a matter of switching out the provider. – JohnP Jan 11 '12 at 06:04
  • It must be very retarded hosting provider which does not support PDO Extension, otherwise you have provided wrong database server address. – Nazariy Jan 11 '12 at 06:18

1 Answers1

1

is there any possible idea to execute the query with the mysql connection.

No.

Your Common Sense
  • 156,878
  • 40
  • 214
  • 345