PLease help me to change the code?
:’(
[php]
<?php $dbc = mysql_connect('localhost', 'username', 'password'); mysql_select_db('myblog', $dbc); $query = 'SELECT * FROM entries ORDER BY date_entered DESC'; if ($r = mysql_query($query, $dbc)) { while ($row = mysql_fetch_array($r)) { print"{$row['title']}
{$row['entry']}Edit Delete
\n"; } } else { print '
Could not retrieve data because:
' . mysql_error($dbc) . '.
The query being run was: ' .$query . '
'; } mysql_close($dbc); ?>[/php]