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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:54:33+00:00 2026-06-09T16:54:33+00:00

I am using this select $sql1= SELECT pole FROM Table1 WHERE dva=’d’; and it

  • 0

I am using this select

$sql1=" SELECT pole FROM Table1 WHERE dva='d'";

and it should return all for elements from the table ( because in the field “dva” they all have ‘d’) and using this function to do it

while( $row = sqlsrv_fetch_array($st)) {
 // echo $row[0]."<br />";
print_r($row);
}

here is the result I get, it starts from the second row and so on…

Array ( 
    [0] => testxz2 
    [pole] => testxz2 
) 
Array ( 
    [0] => some data 
    [pole] => some data 
) 
Array ( 
    [0] => some data 
    [pole] => some data 
) 

before I tried this and this got me the row number 1 and the other rows I got from the upper code,

   while($pole=sqlsrv_get_field($st,0)){echo $pole;}
  • 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-09T16:54:34+00:00Added an answer on June 9, 2026 at 4:54 pm

    Can u put the whole code before the fetch call

    JUST edit the part before:

       if( sqlsrv_fetch( $st ) === false) {
         die( print_r( sqlsrv_errors(), true));
    

    I think here is the error because you are fetching the first element and the second while u use to fetch all rows is missing the first because is already fetch… Try to use your while loop before the first fetch..

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

Sidebar

Related Questions

I'm using this jQuery with this: //Table select $(#reports-table tr).click( function(e) { if($(e.target).is(.row-button-small)) return;
I am using this SELECT name FROM sqlite_master WHERE type = table AND name
I am using this query: SELECT DISTINCT pat.PublicationID FROM dbo.PubAdvTransData AS pat INNER JOIN
When using this SQL query: Select * from table_name what happens if the name
I am using MySQL. I have several lookups like this: SELECT * from users
I'm using this code to try and select all of the text in the
In mysql I am able to do this: SELECT * FROM table WHERE auth_user.lastactivity
Im using this query: SELECT `projects`.*, (SELECT SUM(`amount`) FROM `accountprojectspayment` WHERE `projects_id` = `projects`.`id`)
I am using this: SELECT FROM_UNIXTIME(my_unix_timestamp_column, '%Y') AS year FROM table_name WHERE year =
So right now I'm using this query: select * from items where mydate =

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.