.... $query=mysql_query(SELECT `3collum`FORM `table` WHERE `cell` = '3rd'); $data=mysql_fetch_array($query); printf(" $data[3collum]"); ...