本文整理匯總了PHP中DBLayer::get_AdvancedSearch方法的典型用法代碼示例。如果您正苦於以下問題:PHP DBLayer::get_AdvancedSearch方法的具體用法?PHP DBLayer::get_AdvancedSearch怎麽用?PHP DBLayer::get_AdvancedSearch使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類DBLayer
的用法示例。
在下文中一共展示了DBLayer::get_AdvancedSearch方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: AdvancedRecipeSearch
public function AdvancedRecipeSearch($Criteria)
{
$dbl=new DBLayer();
$arr= $dbl->get_AdvancedSearch($Criteria);
if (!is_null($arr))
{
echo "<table border='1' width='300'>";
echo "<th>Name</th><th>Description</th><th>URL</th><th>Image</th>";
echo "<th>About</th><th>Author</th><th>instructions</th><th>Ingredients</th><th colspan='2'>Action</th>";
foreach ($arr as $value)
{
/*Loop through returned array values*/
$this->PrintRecipe($value);
echo"<tr>";
echo "<td>".$this->printNameHtmlTag()."</td>";
echo "<td>".$this->printDescriptionHtmlTag()."</td>";
echo "<td>".$this->printUrlHtmlTag()."</td>";
echo "<td>".$this->printImageHtmlTag()."</td>";
echo "<td>".$this->printaboutHtmlTag()."</td>";
echo "<td>".$this->printauthorHtmlTag()."</td>";
echo "<td>".$this->printinstructionsHtmlTag()."</td>";
echo "<td>".$this->printingredientsHtmlTag()."</td>";
echo "<td><a href='Update.php?value=$this->objThingID'>Edit</a></td>";
echo "<td><a href='Delete.php?value=$this->objThingID'>Delete</a></td>";
echo "</tr>\n";
}
echo "</table>\n";
$this->result=1;
}
else
{
$this->result=0;
}
return $this->result;
}