pdo mysql select order by DESC not working

displaying data from table using pdo order by desc not working,but it works when i use mysql.what is the problem?
This is the output i get.

enter image description here

the output i want is :

enter image description here

SELECT * from articles ORDER BY article_id DESC //works.in PHPMYADMIN

However, this does not work:

 $query = $pdo->prepare("SELECT * from articles ORDER BY article_id DESC " );

$query->execute(); // this doesn't work ,it display the result not as descending,where is the problem?

 //code that display data 
echo ' <div id="form"> <p   class="regp" align="center" >list of articles.</p>';
echo' <table class="tab"   border=1 BORDERCOLOR=#00FF00>
  <tr>

   <th>   <input type="button" style="border:2px solid black"id="toggle" class="buttons" value="action" onClick="do_this()" /></th>
    <th>articles</th>

     <th>categorie</th>
     <th>date</th>

  </tr>';
  foreach  ($articles as $article){ 
     echo'<tr>'; 
    echo'<td><input type="radio" name="id[]" id="checkALL" value='. $article['article_id'].'>edit</input></td>';
    ?>
<td>  <?Php echo $article['article_title'];?>. <a  style="text-decoration: underline;"  href="article.php?id=<?php echo $article['article_id'];?>"><font color="grey">view</font></a></td>
  <?php
       echo'<td>'. $article['categorie'].'</td>';
       echo'<td>'. $article['article_date'].'</td>';  

  }

  echo '</table>';
    echo '              <pre>                                     <input class="fatigué" type="submit" name="edit"  value="edit article"></input></pre></div>';

 }
       else {
    echo '<p class="tab"> sorry you have 0 articles .</p>';
    }

read more

pdo mysql select order by DESC not working

displaying data from table using pdo order by desc not working,but it works when i use mysql.what is the problem?
This is the output i get.

enter image description here

the output i want is :

enter image description here

SELECT * from articles ORDER BY article_id DESC //works.in PHPMYADMIN

However, this does not work:

 $query = $pdo->prepare("SELECT * from articles ORDER BY article_id DESC " );

$query->execute(); // this doesn't work ,it display the result not as descending,where is the problem?

 //code that display data 
echo ' <div id="form"> <p   class="regp" align="center" >list of articles.</p>';
echo' <table class="tab"   border=1 BORDERCOLOR=#00FF00>
  <tr>

   <th>   <input type="button" style="border:2px solid black"id="toggle" class="buttons" value="action" onClick="do_this()" /></th>
    <th>articles</th>

     <th>categorie</th>
     <th>date</th>

  </tr>';
  foreach  ($articles as $article){ 
     echo'<tr>'; 
    echo'<td><input type="radio" name="id[]" id="checkALL" value='. $article['article_id'].'>edit</input></td>';
    ?>
<td>  <?Php echo $article['article_title'];?>. <a  style="text-decoration: underline;"  href="article.php?id=<?php echo $article['article_id'];?>"><font color="grey">view</font></a></td>
  <?php
       echo'<td>'. $article['categorie'].'</td>';
       echo'<td>'. $article['article_date'].'</td>';  

  }

  echo '</table>';
    echo '              <pre>                                     <input class="fatigué" type="submit" name="edit"  value="edit article"></input></pre></div>';

 }
       else {
    echo '<p class="tab"> sorry you have 0 articles .</p>';
    }

read more

Sprint continues decline, plans job cuts and cost cuts of $2.5 billion

(credit: Sprint)

Sprint’s place among the big four US wireless carriers continues to be a precarious one, with news reports saying the company now aims to reduce its number of employees and cut between $2 billion and $2.5 billion in costs over the next six months.

A memo from Sprint management to staff said there will be a hiring freeze and “job reductions,” according to The Wall Street Journal.

Sprint announced days ago that it will skip a major auction of low-band spectrum, a decision that could push the company further behind its rivals. Sprint has licenses to more spectrum than any other carrier, but AT&T and Verizon control a large majority of low-band spectrum, which is ideal for providing coverage over long distances and indoors. T-Mobile says it intends to buy enough low-band spectrum to cover the entire nation; Sprint says it can improve coverage with its existing spectrum by increasing the number of cell towers.

read more

Maven will not execute tests

I have a default Maven directory structure, but it will not see/run my tests. The directory structure is as followed:

src
    -main
        -java
            -com.foo.webservice
                -...
    -test
        -java
            -com.foo.webservice
                -AbstractTest.java

When I run the command mvn test, it tells me nothing, but a successful build.

The project is viewable on my Git over here.

This is my test class:

@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes = Application.class)
@WebAppConfiguration
public abstract class AbstractTest {

    @Autowired
    private CustomerDAO dao;

    @Test
    public void testGetCustomer() {
        Customer customer = new Customer();
        customer.setUsername("JUnitCustomer");
        customer.setCompanyName("SpringTest");
        customer.setPhoneNumber("0612345678");
        if (customer != null) {
            assertNotNull("Username isn't null", customer.getUsername());
            assertNotNull("Company isn't null", customer.getCompanyName());
            assertTrue(customer.getPhoneNumber().length() == 8);
        }
    }

    @Test
    public void testGetCustomerPhoneNumber() {
        assertTrue(dao.getCustomer(0).getPhoneNumber().length() == 8);
    }
}

read more