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

  • Home
  • SEARCH
  • 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 8364485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:26:32+00:00 2026-06-09T12:26:32+00:00

Go easy on me since I’m new to PHP ;) My development stack is

  • 0

Go easy on me since I’m new to PHP 😉

My development stack is Windows 7 with XAMP, My live server is a turnkey LAMP stack.

I’m using ADODB to connect to MSSQL and append all the results into a string with the code below:

    $sql = "SELECT Field1 FROM tb_Table";

        $rs = $db->Execute($sql); 

         if (!$rs) {
            print $db->ErrorMsg(); 
        } else {

            $arr = $rs->GetRows();
            $rows = '';
            //Loop through parent array (rows)
                for ($i=0;$i<=(count($arr)-1);$i++) {
                    $rows .= " ".$arr[$i][0]." ";
                }
print strlen($rows)

The string length on my local machine is 195,057 on the Server it is 136,858

I have checked that the same number of rows has been returned from the database, but I don’t understand why the length of the string should differ between environments.

Any pointers would be very much appreciated

  • 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-06-09T12:26:33+00:00Added an answer on June 9, 2026 at 12:26 pm

    Ok, sussed it. The issue wasn’t the code it was the provider, the provider on the Linux box only returns a maximum length of 255 from the field.

    The windows provider returns the full length of the field.

    Thanks everyone for looking 🙂

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

Sidebar

Related Questions

I have been using GRAILS since a year, It found very easy to implement
This should be easy, but since I'm new to programming, specially in javascript, I
Since Xcode 4, using BWToolkit isn't really easy. In fact, it's not even possible
This is probably an easy question but since I'm new with Symfony it's still
Okay this is definitley an easy question and a stupid one but since I
It's easy to map IPv4 addresses to their controlling RIR (ARIN, RIPE, etc.) since
I'm looking for a RichTextBox with syntax highlighting! Sounds easy but I'm searching since
Hopefully this is just something easy since I'm still wet behind the ears with
I'm frustrated with Mercurial and Python since it makes easy things difficult. I have
If I recall correctly, tail recursive functions always have an easy non-recursive equivalent. Since

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.