本文整理汇总了PHP中rowCount函数的典型用法代码示例。如果您正苦于以下问题:PHP rowCount函数的具体用法?PHP rowCount怎么用?PHP rowCount使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了rowCount函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: addCat
function addCat()
{
$request = Slim::getInstance()->request();
$body = json_decode($request->getBody());
//print_r($body);exit;
if (isset($body->id)) {
unset($body->id);
}
$unique_field = array();
$unique_field['name'] = $body->name;
$rowcount = rowCount(json_encode($unique_field), 'category');
//echo $rowcount;exit;
if ($rowcount == 0) {
$allinfo['save_data'] = $body;
if (!empty($body->icon)) {
$body->icon->filename = time() . $body->icon->filename;
file_put_contents('category_icons/' . $body->icon->filename, base64_decode($body->icon->base64));
$body->icon = $body->icon->filename;
}
//$allinfo['unique_data'] = $unique_field;
$cat_details = add(json_encode($allinfo), 'category');
if (!empty($cat_details)) {
/* $user_details = add(json_encode($allinfo),'coupons');
$user_details = json_decode($user_details);*/
$result = '{"type":"success","message":"Added Succesfully"}';
} else {
$result = '{"type":"error","message":"Not Added"}';
}
} else {
$result = '{"type":"error","message":"Already exists"}';
}
echo $result;
}
示例2: fatch_assembly_ag_pc1
echo "\n<input type='checkbox' id='chkbox{$i}' name='chkbox{$i}' /><label for='chkbox{$i}'>{$rowPer['0']}</label><br>\n";
echo "<input type='hidden' name='hidId{$i}' value='{$rowPer['0']}' />";
$rowPer = null;
}
}
$rsPer = null;
$num_rows = 0;
}
if ($opn == 'assembly') {
$pc = $_GET['pc'];
$sub_div = $_GET['sub_div'];
echo "<select id='assembly' name='assembly' style='width:180px;'>\n";
include_once 'function/add_fun.php';
//$rsAssembly=fatch_assembly_ag_pc($pc,$sub_div);
$rsAssembly = fatch_assembly_ag_pc1($pc);
$num_rows = rowCount($rsAssembly);
if ($num_rows > 0) {
echo "<option value='0'>-Select Assembly-</option>\n";
for ($i = 1; $i <= $num_rows; $i++) {
$rowAssembly = getRows($rsAssembly);
echo "<option value='{$rowAssembly['assemblycd']}'>{$rowAssembly['assemblyname']}</option>\n";
}
}
$rsAssembly = null;
$num_rows = 0;
$rowAssembly = null;
echo "</select>";
}
if ($opn == 'app_replacement') {
$per_cd = $_GET['p_id'];
$usercd = $_GET['usercd'];
示例3: validate
<input type="hidden" id="hid_branch_code" name="hid_branch_code" />
</tr>
<tr>
<td align="left" colspan="4"> </td></tr>
<tr>
<td colspan="4" align="center"><input type="submit" name="submit" id="submit" value="Save" class="button" onclick="javascript:return validate();" /></td>
</tr>
<tr><td colspan="4" align="left"><div id="form1_errorloc" class="error"></div></td></tr>
<tr><td colspan="4" align="center"><div class="scroller">
<?php
//include_once('function/training_fun.php');
if (isset($rsBranch)) {
unset($rsBranch, $rowBranch, $num_rows);
}
$rsBranch = fatch_branch_master('', $dist_cd);
$num_rows = rowCount($rsBranch);
if ($num_rows > 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' id='table1'>\n";
echo "<tr height='30px'><th align='center'>Sl. No</th><th align='center'>Bank Code</th><th align='left'>Branch IFSC</th><th align='left'>Branch Name</th><th align='left'>Branch Address</th><th>Edit</th><th>Delete</th></tr>\n";
for ($i = 1; $i <= $num_rows; $i++) {
$rowBranch = getRows($rsBranch);
$branch_cd = '"' . encode($rowBranch['branchcd']) . '"';
$bank_cd = '"' . encode($rowBranch['bank_cd']) . '"';
echo "<tr><td width='5%' align='right'>{$i}.</td><td align='center' width='15%'>{$rowBranch['bank_cd']}</td><td width='15%' align='left'>{$rowBranch['ifsc_code']}</td>";
echo "<td width='25%' align='left'>{$rowBranch['branch_name']}</td><td width='35%' align='left'>{$rowBranch['address']}</td>";
echo "<td align='center' width='10%'><img src='images/edit.png' alt='' height='20px' onclick='javascript:edit_branch({$branch_cd},{$bank_cd});' /></td>\n";
echo "<td align='center' width='10%'><img src='images/delete.png' alt='' height='20px' onclick='javascript:delete_branch({$branch_cd},{$bank_cd});' /></td></tr>\n";
unset($rowBranch, $branch_cd, $bank_cd);
}
echo "</table>\n";
} else {
示例4: ceil
// number of items per page.
$all = $_GET['a'];
if ($all == "all") {
$items = $num_rows_T;
}
$nrpage_amount = $num_rows_T / $items;
$page_amount = ceil($num_rows_T / $items);
$page_amount = $page_amount - 1;
$page = $_GET['p'];
$section = 'training-allocation-list';
if ($page < "1") {
$page = "0";
}
$p_num = $items * $page;
$rstraining_alloc_list = fatch_training_allocation_listAct($sub_div, $training_type, $training_venue, $frmdt, $todt, $usercode, $p_num, $items);
$num_rows = rowCount($rstraining_alloc_list);
if ($num_rows < 1) {
echo "No record found";
//echo $officeid.",".$officename.",".$frmdt.",".$todt.",".$usercode;
} else {
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' id='table1'>\n";
echo "<tr height='30px'><th>Sl.</th><th>Training Venue</th>\r\n\t\t\t\t<th>Date</th>\r\n\t\t\t\t<th>Time</th>\r\n\t\t\t\t<th>Post Status</th>\r\n\t\t\t\t<th>No of PP</th>\r\n\t\t\t\t<th>Delete</th></tr>\n";
for ($i = 1; $i <= $num_rows; $i++) {
$rowTraining_alloc_list = getRows($rstraining_alloc_list);
$schedule_code = '"' . encode($rowTraining_alloc_list['schedule_code']) . '"';
echo "<tr><td align='right' width='4%'>{$i}.</td><td align='left' width='30%'>{$rowTraining_alloc_list['venuename']}</td><td width='15%' align='center'>{$rowTraining_alloc_list['training_dt']}</td>";
echo "<td width='15%' align='left'>{$rowTraining_alloc_list['training_time']}</td><td width='15%' align='left'>{$rowTraining_alloc_list['poststatus']}</td>";
echo "<td width='10%' align='left'>{$rowTraining_alloc_list['no_pp']}</td>";
echo "<td align='center' width='5%'><img src='images/delete.png' alt='' height='20px'";
if ($rowTraining_alloc_list['usercode'] == $usercode) {
echo " onclick='javascript:delete_training_allocation({$schedule_code});' ";
示例5: print_r
$r = $res->execute();
if ($r === false) {
if (SHOW_QUERY_ERROR) {
echo __FILE__ . ',' . __LINE__ . "<br />";
echo "Query: {$query}<br />\n";
print_r($db->errorInfo());
exit;
} else {
$errors[] = oai_error('noRecordsMatch');
}
} else {
$r = $res->setFetchMode(PDO::FETCH_ASSOC);
if ($r === false) {
exit("FetchMode is not supported");
}
$num_rows = rowCount($metadataPrefix, $extquery, $db);
if ($num_rows == 0) {
echo "Cannot find records: {$query}\n";
$errors[] = oai_error('noRecordsMatch');
}
}
}
if (!empty($errors)) {
oai_exit();
}
// Will we need a new ResumptionToken?
if ($args['verb'] == 'ListRecords') {
$maxItems = MAXRECORDS;
} elseif ($args['verb'] == 'ListIdentifiers') {
$maxItems = MAXIDS;
} else {
示例6: unset
unset($rsAssembly, $num_rows);
?>
</select></td>
<td colspan="2"> </td>
</tr>
<tr>
<td align="left">Polling Party No:</td>
<td align="left"><input type="text" name="polling_party_no" id="polling_party_no" style="width:142px;" onchange="return personnel_list();" /></td><td colspan="2"> </td>
</tr>
<tr>
<td align="left">Post Status:</td>
<td align="left" colspan="3"><select id="posting_status" name="posting_status" onchange="return personnel_list();" style="width:150px;">
<option value="0">-Select Posting Status-</option>
<?php
$rsP = fatch_postingstatus();
$num_rows = rowCount($rsP);
if ($num_rows > 0) {
for ($i = 1; $i <= $num_rows; $i++) {
$rowP = getRows($rsP);
echo "<option value='{$rowP['0']}'>{$rowP['1']}</option>\n";
}
}
$rsP = null;
$num_rows = 0;
$rowP = null;
?>
</select></td>
</tr>
<tr>
<td align="left"><b>Personnel ID:</b></td>
<td align="left"><span id="personnel_list"><select id="p_id" name="p_id" style="width:150px;" onchange="fatch_personnel_dtl(this.value);"></select>
示例7: unset
}
unset($rsBn, $num_rows, $rowSubDiv);
?>
</select></td></tr>
<tr>
<td align="left">Subdivision</td>
<td align="left" id="subdiv_result"><select name="Subdivision" id="Subdivision" style="width:240px;">
</select></td></tr>
<tr>
<td align="left">Government Category</td>
<td align="left"><select name="govt_cat" id="govt_cat" style="width:240px;">
<option value="0">-Select Government Category-</option>
<?php
include_once "function/add_fun.php";
$rsBn = fatch_statusofoffice('');
$num_rows = rowCount($rsBn);
if ($num_rows > 0) {
for ($i = 1; $i <= $num_rows; $i++) {
$rowBn = getRows($rsBn);
echo "<option value='{$rowBn['0']}'>{$rowBn['1']}</option>\n";
$rowBn = NULL;
}
}
unset($rsBn, $rowBn, $num_rows);
?>
</select></td>
</tr>
<tr><td colspan="2"><img src="images/blank.gif" alt="" height="2px" /></td></tr>
<tr>
<td colspan="2" align="center"><input type="submit" name="submit" id="submit" value="Submit" class="button" /></td></tr>
<tr><td colspan="2" align="center"><img src="images/blank.gif" alt="" height="5px" /></td></tr>
示例8: mysqli_prepare
$stmt = mysqli_prepare($link, $sql);
mysqli_stmt_bind_param($stmt, 'issssssssssssssssssss', $grp_id, $for_ass, $for_pc, $pp_code, $pp_name, $pp_desig, $post_status, $post_stat, $pp_ofc_cd, $pp_office, $ofc_add, $postofc, $subdiv, $ps, $dist, $pin, $dcvenue, $dc_addr, $dc_dateD, $dc_time, $rcvenue);
$rec = 0;
extract($_GET);
$group_id = isset($_GET['group_id']) ? decode($_GET['group_id']) : "";
$forassembly = isset($_GET['assembly']) ? decode($_GET['assembly']) : "";
$forpc = $_GET['pc_cd'];
$sql1 = "update personnela set training2_sch='' where forpc='{$pc_cd}'";
$ret1 = execUpdate($sql1);
$sql19 = "update personnela join second_training on personnela.forpc=second_training.for_pc and personnela.forassembly=second_training.assembly and personnela.booked=second_training.party_reserve set personnela.training2_sch=second_training.schedule_cd where personnela.groupid>=second_training.start_sl and personnela.groupid<=second_training.end_sl and second_training.for_pc='{$pc_cd}'";
$ret = execUpdate($sql19);
//$forpc='40';
$del_ret = delete_prev_data_second_rand_reserve($forassembly, $forpc, $group_id);
$rec_set_hdr = second_appointment_letter_reserve($group_id, $forassembly, $forpc);
if (rowCount($rec_set_hdr) > 0) {
for ($n = 0; $n < rowCount($rec_set_hdr); $n++) {
$rec_arr_hdr = getRows($rec_set_hdr);
$grp_id = $rec_arr_hdr['groupid'];
$for_ass = $rec_arr_hdr['assemblycd'] . "-" . $rec_arr_hdr['assemblyname'];
$for_pc = $rec_arr_hdr['pccd'] . "-" . $rec_arr_hdr['pcname'];
//$polling_station=$rec_arr_hdr['psno'].", ".$rec_arr_hdr['psname'];
$dc = $rec_arr_hdr['dc_venue'] != '' ? $rec_arr_hdr['dc_venue'] . ", " . $rec_arr_hdr['dc_addr'] : "";
$dc_date = $rec_arr_hdr['dc_date'] != '' ? $rec_arr_hdr['dc_date'] : "";
$dc_dateD = $rec_arr_hdr['dc_dateD'] != '' ? $rec_arr_hdr['dc_dateD'] : "";
$dc_time = $rec_arr_hdr['dc_time'] != '' ? $rec_arr_hdr['dc_time'] : "";
$rcvenue = $rec_arr_hdr['rcvenue'] != '' ? $rec_arr_hdr['rcvenue'] : "";
$dcvenue = $rec_arr_hdr['dc_venue'];
$dc_addr = $rec_arr_hdr['dc_addr'];
$pp_name = $rec_arr_hdr['officer_name'];
$pp_desig = $rec_arr_hdr['off_desg'];
$pp_code = $rec_arr_hdr['personcd'];
示例9: getRows
$rowTrainingVenue = getRows($rsTrainingVenue);
echo "<option value='{$rowTrainingVenue['0']}'>{$rowTrainingVenue['1']}</option>\n";
$rowTrainingVenue = null;
}
}
$rowTrainingVenue = null;
$num_rows = 0;
?>
</select></td></tr>
<tr>
<td align="left"><span class="error"> </span>Training Type</td>
<td align="left"><select name="training_type" id="training_type" style="width:220px;">
<option value="0">-Select Training Type-</option>
<?php
$rsTrainingType = fatch_training_type('');
$num_rows = rowCount($rsTrainingType);
if ($num_rows > 0) {
for ($i = 1; $i <= $num_rows; $i++) {
$rowTrainingType = getRows($rsTrainingType);
echo "<option value='{$rowTrainingType['0']}' >{$rowTrainingType['1']}</option>\n";
}
}
$rsTrainingType = null;
$num_rows = 0;
$rowTrainingType = null;
?>
</select></td></tr>
<tr>
<td align="left"> </td>
<td align="left"> </td>
</tr>
示例10: district_change
DISTRICT</td></tr>
<tr>
<td align="center">DETAILS REPORT</td></tr>
<tr><td align="center"><form method="post" name="form1" id="form1" target="_blank" action="reports/emp-query.php">
<table width="60%" class="form" cellpadding="0">
<tr><td align="center" colspan="2"><img src="images/blank.gif" alt="" height="2px" /></td></tr>
<tr><td height="18px" colspan="2" align="center"><span id="msg" class="error"></span></td></tr>
<tr><td colspan="2"><img src="images/blank.gif" alt="" height="5px" /></td></tr>
<tr>
<td align="left"><span class="error">*</span>District</td>
<td align="left"><select name="district" id="district" style="width:240px;" onchange="javascript:return district_change(this.value);">
<option value="0">-Select District-</option>
<?php
include_once "function/master_fun.php";
$rsDist = fatch_district_master('');
$num_rows = rowCount($rsDist);
if ($num_rows > 0) {
for ($i = 1; $i <= $num_rows; $i++) {
$rowDist = getRows($rsDist);
echo "<option value='{$rowDist['0']}'>{$rowDist['1']}</option>";
}
}
$rsBn = null;
$num_rows = 0;
$rowSubDiv = null;
?>
</select></td></tr>
<tr>
<td align="left"><span class="error">*</span>Subdivision</td>
<td align="left" id="subdiv_result"><select name="Subdivision" id="Subdivision" style="width:240px;">
</select></td></tr>
示例11: date_default_timezone_set
body{
font-size: 14px;
text-align: justify;
}
</style>
</head>
<body>
<div align="center">
<?php
date_default_timezone_set('Asia/Calcutta');
include_once '../inc/db_trans.inc.php';
include_once '../function/form_12_fun.php';
$personcd = decode($_GET['personcd']);
$type = $_GET['type'];
$rsF12 = form12A_report($personcd, $type);
$num_rows = rowCount($rsF12);
$rowF12 = getRows($rsF12);
if ($rowF12['assemblyname'] == "" || $rowF12['assemblyname'] == null) {
$assemblyname = "Other";
} else {
$assemblyname = $rowF12['assemblyname'];
}
if ($rowF12['pcname'] == "" || $rowF12['pcname'] == null) {
$pcname = "__________________";
} else {
$pcname = $rowF12['pcname'];
}
?>
<table width="400" border="0" cellspacing="0" cellpadding="1">
<tr>
<td><div align="center"><em>Conduct of Elections Rules, 1961</em></div></td>
示例12: merchantSaveMember
function merchantSaveMember()
{
//echo 'aqb';exit;
$is_active = 1;
$site_path = SITEURL;
$newdate = date('Y-m-d');
$request = Slim::getInstance()->request();
$membership_info = json_decode($request->getBody());
$user_exist = $membership_info->user_type;
unset($membership_info->user_type);
if ($user_exist == "New User") {
$unique_field = array();
$user = array();
$unique_field['email'] = $membership_info->email;
//$unique_field['username']=$user->username;
$rowCount = rowCount(json_encode($unique_field), 'users');
if ($rowCount == 0) {
$unique_code = time() . rand(100000, 1000000);
$pass = '123456';
$user['txt_pwd'] = $pass;
$user['email'] = $membership_info->email;
$user['unique_code'] = $unique_code;
$user['password'] = md5($pass);
$user['user_type_id'] = 2;
$user['is_active'] = 1;
$user['registration_date'] = date('Y-m-d h:m:s');
//$activation_link = $user->activation_url;
//unset($user->activation_url);
$allinfo['save_data'] = $user;
//$allinfo['unique_data'] = $unique_field;
$user_details = add(json_encode($allinfo), 'users');
if (!empty($user_details)) {
$user_details = json_decode($user_details);
//echo $user_details->email; exit;
// print_r($user_details);exit;
$from = ADMINEMAIL;
$to = $user_details->email;
$subject = 'User Registration';
$body = '<html><body><p>Dear User,</p>
<p>Thank You for signing up with mFoodGate.<br />
<span style="color:rgb(34, 34, 34); font-family:arial,sans-serif">Your Account Details:</span><br />
<span style="color:rgb(34, 34, 34); font-family:arial,sans-serif"><strong>Email: ' . $to . '</strong></span><br />
<span style="color:rgb(34, 34, 34); font-family:arial,sans-serif"><strong>Password: ' . $pass . '</strong></span></p>
<p><span style="color:rgb(34, 34, 34); font-family:arial,sans-serif">If we can help you with anything in the meantime just let us know by e-mailing </span>' . $from . '<br />
<span style="color:rgb(34, 34, 34); font-family:arial,sans-serif">Thanks again for signing up with the site</span><span style="color:rgb(34, 34, 34); font-family:arial,sans-serif">! </span></p>
<p>Thanks,<br />
mFood Team</p>
<p> </p></body></html>
';
//$body = "Hello";
sendMail($to, $subject, $body);
$new_user_id = $user_details->id;
$offer_details = json_decode(findById($membership_info->offer_id, 'offers'));
$voucher_data = array();
$voucher_data['offer_id'] = $membership_info->offer_id;
$voucher_data['created_on'] = $offer_details->created_on;
$voucher_data['price'] = $offer_details->price;
$voucher_data['offer_price'] = $offer_details->offer_price;
$voucher_data['offer_percent'] = $offer_details->offer_percent;
$voucher_data['from_date'] = $offer_details->offer_from_date;
$voucher_data['to_date'] = $offer_details->offer_to_date;
$voucher_data['is_active'] = 1;
$s = add(json_encode(array('save_data' => $voucher_data)), 'vouchers');
$s = json_decode($s);
$owner_data = array();
$owner_data['offer_id'] = $membership_info->offer_id;
$owner_data['voucher_id'] = $s->id;
$owner_data['from_user_id'] = 0;
$owner_data['to_user_id'] = $new_user_id;
$owner_data['purchased_date'] = date('Y-m-d h:i:s');
$owner_data['is_active'] = 1;
$owner_data['price'] = $offer_details->price;
$owner_data['offer_price'] = $offer_details->offer_price;
$owner_data['offer_percent'] = $offer_details->offer_percent;
$owner_data['buy_price'] = $offer_details->offer_price;
add(json_encode(array('save_data' => $owner_data)), 'voucher_owner');
$result = '{"type":"success","message":"Added Succesfully"}';
} else {
$result = '{"type":"error","message":"Try Again"}';
}
} else {
if ($rowCount > 0) {
$result = '{"type":"error","message":"Email already exist"}';
}
}
} else {
if ($user_exist == "Existing User") {
$unique_code = $membership_info->unique_code;
$sql = "SELECT * FROM users where users.unique_code=:unique_code";
$db = getConnection();
$stmt = $db->prepare($sql);
$stmt->bindParam("unique_code", $unique_code);
$stmt->execute();
$user_info = $stmt->fetchObject();
$count = $stmt->rowCount();
if ($count == 0) {
//.........这里部分代码省略.........
示例13: getRows
for ($i = 1; $i <= $num_rows; $i++) {
$rowP = getRows($rsP);
echo "<option value='{$rowP['0']}'>{$rowP['1']}</option>\n";
$rowP = NULL;
}
}
unset($rsP, $num_rows, $rowP);
?>
</select></td>
<td align="left"><span class="error">*</span>Remarks</td>
<td align="left"><!--<input type="text" name="remarks" id="remarks" style="width:142px;" maxlength="30" />-->
<select name="remarks" id="remarks" style="width:150px;">
<option value="0">-Select Remarks-</option>
<?php
$rsR = fatch_remarks();
$num_rows = rowCount($rsR);
if ($num_rows > 0) {
for ($i = 1; $i <= $num_rows; $i++) {
$rowR = getRows($rsR);
echo "<option value='{$rowR['remarks_cd']}'>{$rowR['remarks']}</option>\n";
$rowR = NULL;
}
}
unset($rsP, $num_rows, $rowP);
?>
</select>
</td>
</tr>
<tr>
<td align="left"><span class="error"> </span>Group</td>
<td align="left"><select name="pgroup" id="pgroup" style="width:150px;" >
示例14: add_employee_replacement_log
echo "Changed";
}
$res2 = add_employee_replacement_log($new_p_id, $old_p_id, $ass, $groupid, $usercd);
}
}
}
//================================ Single Replacement Personnel =======================================
if ($opn == 'new_search') {
$forpc = $_GET["forpc"];
$ofc_id = $_GET["ofc_id"];
$post_stat = $_GET["post_stat"];
if ($forpc != '' && $ofc_id != '' && $gender != '') {
$rsNew_Per;
$rowNew_Per;
$rsNew_Per = fatch_Random_personnel_for_PreGroupReplacement($forpc, $ofc_id, $gender, $post_stat);
$num_rowsNew_Per = rowCount($rsNew_Per);
if ($num_rowsNew_Per > 0) {
$rowNew_Per = getRows($rsNew_Per);
echo "<table>\n";
echo "<tr><td align='center' colspan='4'><b>NEW PERSONNEL</b></td></tr>\n";
echo "<tr><td align='left' width='22%'><b>Personnel ID: </b></td><td align='left' id='new_per_id'>" . $rowNew_Per['personcd'] . "</td><td align='left'><b>Office ID: </b></td><td>" . $rowNew_Per['officecd'] . "</td></tr>\n";
echo "<tr><td align='left'>Name: </td><td align='left' colspan='3'>" . $rowNew_Per['officer_name'] . "</td></tr>\n";
echo "<tr><td align='left'>Designation: </td><td align='left' colspan='3'>" . $rowNew_Per['off_desg'] . "</td></tr>\n";
echo "<tr><td align='left'>Office Address: </td><td align='left' colspan='3'>" . $rowNew_Per['address1'] . "," . $rowNew_Per['address2'] . ", PO-" . $rowNew_Per['postoffice'] . ", PS-" . $rowNew_Per['policestation'] . ", Subdiv-" . $rowNew_Per['subdivision'] . ", Dist.-" . $rowNew_Per['district'] . "," . $rowNew_Per['pin'] . "</td></tr>\n";
echo "<tr><td align='left'>Date of Birth: </td><td align='left'>" . $rowNew_Per['dateofbirth'] . "</td><td align='left'>Sex: </td><td align='left'>" . $rowNew_Per['gender'] . "</td></tr>\n";
echo "<tr><td align='left'>EPIC No: </td><td align='left'>" . $rowNew_Per['epic'] . "</td><td align='left'>Posting Status: </td><td align='left'>" . $rowNew_Per['poststatus'] . "</td></tr>\n";
echo "<tr><td align='left'>Present Address: </td><td align='left' colspan='3'>" . $rowNew_Per['present_addr1'] . ", " . $rowNew_Per['present_addr2'] . "</td></tr>\n";
echo "<tr><td align='left' colspan='4'><b>Assembly of</b></td></tr>\n";
echo "<tr><td align='left' colspan='2'>Present Address: </td><td align='left' colspan='2'>" . $rowNew_Per['pre_ass'] . "<hidden id='hid_pre_ass' name='hid_pre_ass' style='display:none;'>" . $rowNew_Per['pre_ass'] . "</hidden></td></tr>\n";
echo "<tr><td align='left' colspan='2'>Permanent Address: </td><td align='left' colspan='2'>" . $rowNew_Per['per_ass'] . "<hidden id='hid_per_ass' name='hid_per_ass' style='display:none;'>" . $rowNew_Per['per_ass'] . "</hidden></td></tr>\n";
echo "<tr><td align='left' colspan='2'>Place of Posting: </td><td align='left' colspan='2'>" . $rowNew_Per['post_ass'] . "<hidden id='hid_post_ass' name='hid_post_ass' style='display:none;'>" . $rowNew_Per['post_ass'] . "</hidden></td></tr>\n";
示例15: isset
<td height="16px" colspan="4" align="center"><?php
print isset($msg) ? $msg : "";
?>
<span id="msg" class="error"></span></td>
</tr>
<tr>
<td align="center" colspan="4"><img src="images/blank.gif" alt="" height="2px" /></td>
</tr>
<tr>
<td align="left"><span class="error">*</span>Subdivision Name</td>
<td align="left"><select name="sub_div" id="sub_div" style="width:200px;" onchange="return subdivision_change(this.value);">
<option value='0'>Select</option>
<?php
$districtcd = $dist_cd;
$rsSubDiv = fatch_Subdivision($districtcd);
$num_rows = rowCount($rsSubDiv);
for ($i = 1; $i <= $num_rows; $i++) {
$rowSubDiv = getRows($rsSubDiv);
echo "<option value='{$rowSubDiv['subdivisioncd']}'>{$rowSubDiv['subdivision']}</option>";
unset($rowSubDiv);
}
unset($num_rows, $rsSubDiv);
?>
</select></td>
</tr>
<tr>
<td align="left"><span class="error">*</span>Assembly</td>
<td align="left" id="assembly_result"><select name="assembly" id="assembly" style="width:200px;"></select></td>
</tr>
<tr>
<td align="left"><span class="error"> </span>Master Roll/ Scroll</td>