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 879857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:00:06+00:00 2026-05-15T12:00:06+00:00

I am making a function (PHP). In this function it basically uses the dbms

  • 0

I am making a function (PHP). In this function it basically uses the dbms specified and connects, submits the appropriate query, <insert my problem here>, and disconnects. DBMSs include MySQL, MSSQL, Postgres, and Oracle.

I am assuming that outside of this function, the user would not have access to specified DMBS, so whatever results I get from it I need to convert to something usable like a regular PHP variable/array/object.

I don’t know the best way to do this (and have only had extended experience with MySQL), so I would like to know how going about handling each return so that they all come out to PHP relatively the same. I would extremely appreciate an example in any case.

  • 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-15T12:00:06+00:00Added an answer on May 15, 2026 at 12:00 pm

    Unless you are doing this to learn, I recommend looking into PDO. It comes built in since PHP 5, and can handle the DBMSs you mention.

    There’s also ADODb that supports even more DBMSs but has the disadvantage of not being a native, compiled part of PHP.

    In my opinion, it’s not worth writing an own database wrapper anymore in 2010 for production use. There are too many high-quality industry-standard solutions around.

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

Sidebar

Related Questions

I use JEditable for making edit field which following code: $(function() { $(.field).editable(http://localhost/index.php/welcome/update_record, {
I've been making some ajax function these days, and I'm facing a small problem.
We are making a solr query where we are giving a custom function (which
I am making ajax call like this $(document).ready(function() { var abc = new Array();
I am making an ajax call in jquery $.get(validate_isbn.php, {isbn: obj[16]}, function(answer) { console.log(answer);
I need help converting this into PHP: Public Function Encrypt(ByVal text As String) As
This is some example PHP code code; <?php function myFunc() { echo blue; }
Making my PHP Command line application support Linux and Windows. Currently it has this
I have this PHP code (get_option is Wordpress function). <?php $hahaha = get_option('hahaha'); if(empty($hahaha))
I am trying to call a function in another .php file from this one

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.