Jump to content


Photo

ORDER By Id


  • Please log in to reply
2 replies to this topic

#1 mostafatalebi

mostafatalebi

    Advanced Member

  • Members
  • PipPipPip
  • 197 posts

Posted 05 January 2013 - 05:11 PM

Hello everybody

I have to get data from a table and arrange them in a descending order, so that the greater IDs be first in the array.

And I need to know that whether I have to use fetch_array or regular fetch().

thanks in advance
Visual Effects Programming

Autodesk Maya, Autodesk Mudbox, Nvidia Mental Images Mental Ray, Adobe Photoshop, Adobe Illustrator, Adobe After Effects, CorelDraw

#2 Pikachu2000

Pikachu2000

    I hate everything.

  • Staff Alumni
  • 11,378 posts
  • LocationFuture Independent Republic of Texas
  • Age:106

Posted 05 January 2013 - 05:23 PM

Excuse me?
"Java" is to "Javascript" about the same as "fun" is to "funeral".

Why $_SERVER['PHP_SELF'] is bad. || Why ORDER BY RAND() is bad || Every problem can be solved with rm -rf *

Random Quote: "

#3 mostafatalebi

mostafatalebi

    Advanced Member

  • Members
  • PipPipPip
  • 197 posts

Posted 05 January 2013 - 06:30 PM

Oh it is solved. I found the solution. I meant: $result->fetch_object()
Visual Effects Programming

Autodesk Maya, Autodesk Mudbox, Nvidia Mental Images Mental Ray, Adobe Photoshop, Adobe Illustrator, Adobe After Effects, CorelDraw




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com