Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7432931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:32:09+00:00 2026-05-29T09:32:09+00:00

I am trying to port a php file that is used with MySQL. My

  • 0

I am trying to port a php file that is used with MySQL. My goal is to have this file working with Oracle instead of MySQL. I have gotten all of the connect string switched over. I am now stuck with finding an Oracle equivalent commands for:

mysql_real_escape_string($string);

Can someone tell me what it would be, or direct me to somewhere that will tell me. Thanks!

I gave an attempt to PDO::quote and PDO::prepare and it says that Call to a member function prepare() on a non-object for both prepare and object. The whole purpose of this is to get TightURL to work directly from my web server. My web server uses Oracle, not MySQL so I am having to convert the main php file to work with Oracle.

I attempted it on a WAMP server with MySQL and it worked great, but when I try to use the prepare or quote for Oracle I get that error above.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T09:32:10+00:00Added an answer on May 29, 2026 at 9:32 am

    Since you’re using PDO to connect to Oracle, the function would be PDO::quote. Note that PDO::quote places quotes around strings while mysql_real_escape_string does not.

    Having said that, it would be best to use prepared statements instead of string concatenation to issue SQL statements. From the manual:

    If you are using this function to build SQL statements, you are
    strongly recommended to use PDO::prepare() to prepare SQL statements
    with bound parameters instead of using PDO::quote() to interpolate
    user input into an SQL statement. Prepared statements with bound
    parameters are not only more portable, more convenient, immune to SQL
    injection, but are often much faster to execute than interpolated
    queries, as both the server and client side can cache a compiled form
    of the query.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

im trying to do a ajax port to a php file, and it seems
I have a PHP script that uses cURL to access a file also located
Below are the files in PHP that I am trying to include a file
I'm currently trying to port an app from asp.net to php, however I just
I'm trying to port a Swing application to GWT. However lots of this application
I am trying to port this algorithm to clojure. My code is (defn calc-iterations
I'm trying to port some of my c++ code into c. I have the
I am trying to get information of remote file with curl. Problem is that
I have been trying to find an effective url parser, php's own does not
I'm trying to send POST data to a test.php file, which handles POST data

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.