フロントエンド管理者としてログインしたときにページタイトルを編集するために Joomla で使用するフォームを設計しようとしています。
私は、ウェブサイト上のすべての記事をリストする以下を書きました:
<h3>Edit Page Titles</h3>
<table border="0" style="text-align:left;">
<tr style="text-align:left;">
<th style="text-align:left;" width="400px" scope="col">ID</th>
<th style="text-align:left;" width="400px" scope="col">Name</th>
<th style="text-align:left;" width="400px" scope="col">Params</th>
<th style="text-align:left;" width="400px" scope="col">Delete</th>
</tr>
<?php
if (JFactory::getUser()->id == 0)
die("Access denied: login required.");
else
{
$today = date("d-m-y");
$result = mysql_query("SELECT * FROM ymeg_menu ORDER BY id")or die(mysql_error());
echo '<tr style="text-align:left;">';
while($row = mysql_fetch_array($result))
{
echo '<td style="text-align:left;">';
echo $row['id'];
echo '</td>';
echo '<td style="text-align:left;">';
echo $row['name'];
echo '</td>';
echo '<td style="text-align:left;">';
echo $row['params'];
echo '</td>';
echo '<td>';
echo '<a href="index.php?option=com_chronoforms&chronoform=DeleteTagsAction&token=';
echo $row['id'];
echo '"style="color:#AD0F02 !important; font-weight:bold !important;">Delete</a>';
echo '</td>';
echo "</tr>";
}
}
?>
</table>
スクリプトが実行されると、params 列に、サイトの各ページについて次のようなものがリストされます。
num_leading_articles=1 num_intro_articles=0 num_columns=1 num_links=0 orderby_pri= orderby_sec=order multi_column_order=1 show_pagination=2 show_pagination_results=1 show_feed_link=1 show_noauth=0 show_title=0 link_titles=0 show_intro=1 show_section=0 link_section=0 show_category=0 link_category=0 show_author=1 show_create_date=1 show_modify_date=1 show_item_navigation=0 show_readmore=1 show_vote=0 show_icons=1 show_pdf_icon=1 show_print_icon=1 show_email_icon=1 show_hits=1 feed_summary= fusion_item_subtext= fusion_customimage= fusion_customclass= fusion_columns=1 fusion_distribution=even fusion_dropdown_width=290 fusion_column_widths= fusion_children_group=0 fusion_children_type=menuitems splitmenu_item_subtext= suckerfish_item_subtext= page_title=SOS Direct – Motorcycle Breakdown Cover From The Motorcycle Breakdown Experts show_page_title=0 pageclass_sfx= menu_image=-1 secure=0
私が抽出しようとしている部分は次のとおりです。
返された結果から上記を抽出する方法を知っている人はいますか?