Is there a better way to do SELECT queries in MySQL and sort them in PHP than this way?
- by Kent
I am just learning PHP/MySQL, one this I am having to do a lot is displaying data that was previously inserted into the database out to the user's browser. So I am doing this:
$select = mysql_query('SELECT * FROM pages');
while ($return = mysql_fetch_assoc($select))
{
$title = $return['title'];
$author = $return['author'];
$content…