You will use the following syntax;
mysql_connect("database_server", "username", "password");
mysql_select_db("database_name");
$sql = "SELECT article_title FROM table_name WHERE article_name = 'article_name';
$result = mysql_query($sql);
$count = mysql_num_rows($result);
if($count != 0){
while($row = mysql_fetch_assoc($result)){
echo $row['article_title']."\n";
next($row);
}
}
else{
echo "Sorry, you do not have any articles under that article name";
}