本文整理匯總了PHP中country::select方法的典型用法代碼示例。如果您正苦於以下問題:PHP country::select方法的具體用法?PHP country::select怎麽用?PHP country::select使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類country
的用法示例。
在下文中一共展示了country::select方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: country
});
}
</script>
<div id="results"></div>
<div id="customer">
<fieldset>
<p><b>The customer mail is new, so you may proceed to create the new customer also:</b></p>
<label for="name">Full Name:</label><br><br>
<input type="text" id="name" name="name" /><br><br>
<label for="city">City:</label><br><br>
<input type="text" id="city" name="city" /><br><br>
<label for="country">Country:</label><br><br>
<select name="country">
<?php
$country = new country();
$country->select();
?>
</select><br><br>
<label for="phone">Phone:</label><br><br>
<input type="text" id="phone" name="phone" /><br><br>
</fieldset>
</div>
<br><br>
<div id="button"></div>
</form>
</fieldset>
</div>
<?php
//theme footer
include_once 'themes/' . THEME . '/footer.php';
示例2: category
<tr id="disp">
<th >* Sales Person Name :</th>
<td><input type="text" name="sales_name" id="sales_name"></td>
</table>
</div>
<div class="company_header">
<h4>Company Details</h4>
</div>
<div class="company_body">
<?php
include_once '../config/category.php';
include_once '../config/country.php';
$ob = new category();
$res = $ob->select();
$ob1 = new country();
$res1 = $ob1->select();
?>
<table width="647" border="0">
<tr>
<th width="342" height="37">* Company Name :</th>
<td width="240"><input type="text" name="company_name" id="company_name"></td>
</tr>
<tr>
<th height="79">* Industry:</th>
<td><select name="industry[]" size="7" multiple id="industry">
<?php
while ($r = mysqli_fetch_array($res)) {
?>
<option value="<?php
echo $r['Id'];
?>