當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Publication::find_by_sql方法代碼示例

本文整理匯總了PHP中Publication::find_by_sql方法的典型用法代碼示例。如果您正苦於以下問題:PHP Publication::find_by_sql方法的具體用法?PHP Publication::find_by_sql怎麽用?PHP Publication::find_by_sql使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Publication的用法示例。


在下文中一共展示了Publication::find_by_sql方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1:

						</tr>
					';
        $qual_counter++;
    }
}
?>
	            </tbody>
            </table>
                
            <?php 
if ($personal_details['student_status'] == "PGA") {
    ?>
		             
		            	<h4 align="center" class="alert alert-success">Academic Publications</h4>
		    <?php 
    $academic_publication = Publication::find_by_sql("SELECT * FROM academic_publications WHERE applicant_id='" . $applicant_id . "'");
    if (empty($academic_publication)) {
        $no_information = 'No Information Supplied';
        echo '
					<table class="table table-bordered table-hover">
		            	<thead>
		                	<th>S/N</th>
		                    <th>Title Of Publication</th>
		                    <th>Institution</th>
		                    <th>Qualification</th>
		                    <th>Year</th>
		                </thead>
						<tbody>
							<tr>
								<td width="4%"> 1. </td>
								<td width="20%">' . $no_information . '</td>
開發者ID:Ghaji,項目名稱:form_application,代碼行數:31,代碼來源:applicant_details.php

示例2: MySQLDatabase

<?php

$database = new MySQLDatabase();
$session = new Session();
$academic_publications = Publication::find_by_sql("SELECT * FROM academic_publications WHERE applicant_id=" . $session->applicant_id);
$other_publications = OtherPublication::find_by_sql("SELECT * FROM otherpublications WHERE applicant_id=" . $session->applicant_id);
?>
<form action="" method="POST" class="publications" >

	<!-- Beginning of Publications -->
	<table class="table table-hover">
	  <caption><h3>Academic Publications</h3></caption>
	  <caption><h4>Thesis, Projects and Publications</h4></caption>
	  <thead>
		<tr>
		  <th>S/N</th>
		  <th>Title</th>
		  <th>Institution</th>
		  <th>Qualifications</th>
		  <th>Date</th>
		</tr>
	  </thead>
      
	  <tbody id="thesis_projects_publication">
      <?php 
if (!empty($academic_publications)) {
    $index = 1;
    foreach ($academic_publications as $academic) {
        $publication_title = 'publication_title_' . $index;
        $publication_inst = 'publication_institution_' . $index;
        $publication_qualification = 'publication_qualification_' . $index;
開發者ID:Ghaji,項目名稱:form_application,代碼行數:31,代碼來源:publications.php


注:本文中的Publication::find_by_sql方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。