如何根据文章名称获取文章标题 [英] How to get the articletitle based on article name
本文介绍了如何根据文章名称获取文章标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何根据文章名称获取文章标题
例如,在我的文章表中,一个文章名称包含4个文章标题.如何获取这4个文章标题以及如何显示在浏览器上.
How to get the article_title based on article name
For example in my article table,one article name have 4 article titles.How can i get that 4 article titles and how to display on to the browser.
推荐答案
您将使用以下语法;
You will use the following syntax;
mysql_connect("database_server", "username", "password");
mysql_select_db("database_name");
sql = "
sql = "SELECT article_title FROM table_name WHERE article_name = 'article_name';
result = mysql_query(
result = mysql_query(
这篇关于如何根据文章名称获取文章标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文