$sql_2 = 'SELECT id, firstname, lastname, birthday, location, occupation, telephone, email, picture FROM pinkmoon_pending ORDER BY `id` DESC LIMIT 1';
$result_2 = mysql_query($sql_2);
while ($row = mysql_fetch_row($result_2)
{
$firstname = row['firstname'];
$lastname = row['lastname'];
$birthday = row['birthday'];
$location = row['location'];
$occupation= row['occupation'];
$telephone = row['telephone'];
$email = row['email'];
$picture = row['picture'];
}
mysql_free_result($result_2);
This is what I’ve tried to show me rows after SELECT-ing them with PHP.
This doesn’t seem to work – Can anyone help me out please? 🙂
Try changing
mysql_fetch_rowtomysql_fetch_assoc. The former only indexes the results by number, not by field name.