PHP & SQL to get a certain row -
hello starting out , not bad html no hardly on php, have created basic php code data sql database limit first 3 , echo them out. able put these in fancy looking divs later on in different order, row 1 in div 1 row 2 in div 2 etc. know how select , echo line based on unique id want able query date order limit 3 , echo in different divs on website. ive looked everywhere good, here code:
$sql = mysql_query("select * dbc_posts order id asc limit 3"); $unique_id = 'unique_id'; while ($rows = mysql_fetch_assoc($sql)){ echo $rows[type] . '<br/>'; } ?>