Click here to Skip to main content
15,566,623 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Company Portal Advice Pin
Clark Kent12323-Apr-14 5:37
professionalClark Kent12323-Apr-14 5:37 
AnswerRe: Company Portal Advice Pin
Kornfeld Eliyahu Peter23-Apr-14 6:31
professionalKornfeld Eliyahu Peter23-Apr-14 6:31 
QuestionGradient background in IE11 Pin
rogerfederer67022-Apr-14 8:18
rogerfederer67022-Apr-14 8:18 
AnswerRe: Gradient background in IE11 Pin
Anurag Gandhi24-Apr-14 6:31
professionalAnurag Gandhi24-Apr-14 6:31 
GeneralRe: Gradient background in IE11 Pin
rogerfederer67024-Apr-14 7:44
rogerfederer67024-Apr-14 7:44 
Questionneed help with php parse error Pin
Izu Great19-Apr-14 3:49
professionalIzu Great19-Apr-14 3:49 
GeneralRe: need help with php parse error Pin
Richard MacCutchan19-Apr-14 7:06
mveRichard MacCutchan19-Apr-14 7:06 
GeneralRe: need help with php parse error Pin
Izu Great19-Apr-14 9:31
professionalIzu Great19-Apr-14 9:31 
Line 143 is the last line "". This is my code.

XML
<?php
include("conn.php");
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Welcome :: Result Portal</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body {
    background-color: #FFF;
}
</style>
<!--[if IE]>
<script src="ie/dist/html5shiv.js"></script>
<script src="ie/dist/html5shiv-printshiv.js"></script>
<![endif-->
<script type="text/javascript">
function bk(){
location.assign(document.referrer);
}
var state = true;

function getstate(){
    return state;
    }
</script>
</head>

<body onload="print()">
<?php
                    if(isset($_GET['lev'],$_GET['sem'],$_GET['prog'],$_GET['sess'])){
        $level = $mysqli->real_escape_string(trim($_GET['lev']));
        $sem = $mysqli->real_escape_string(trim($_GET['sem']));
        $prog = $mysqli->real_escape_string(trim($_GET['prog']));
        $sess = $mysqli->real_escape_string(trim($_GET['sess']));

    $sql = "SELECT * FROM course_tb WHERE level LIKE '".$level."' AND semester LIKE '".$sem."'";
    if($result = $mysqli->query($sql)){
        if($result->num_rows > 0){

        $sel = "SELECT DISTINCT regno FROM st_result_data WHERE level LIKE '".$level."' AND semester LIKE '".$sem."' AND programme LIKE '".$prog."'";

        if($res = $mysqli->query($sel)){
            if($res->num_rows > 0){

                //$sel2 = "SELECT * FROM st_result_data WHERE regno LIKE '".$row['regno']."' AND level LIKE '".$level."' AND semester LIKE '".$sem."' AND programme LIKE '".$row['programme']."'";
            //if($res2 = $mysqli->query($sel2)){
                //if($res2->num_rows > 0){
                ?>
                    <table width="700" border="0" cellpadding="0" >
  <tr>
    <td align="center" style="border-bottom: 1px dashed #CCC;"></td>
  </tr>
  <tr>
    <td height="27" style="border-bottom: 1px dashed #CCC;">
      <table width="600" border="0" align="center" cellpadding="0">
        <tr>
          <td align="center"><h4><?php echo $level." | ".$sem; ?> SEMESTER RESULT <?php echo $sess; ?> SESSION <?php echo $prog; ?></h4></td>
        </tr>
      </table>
      <span id="regerr"></span></td>
  </tr>
  <tr>
    <td height="27" style="border-bottom: 1px dashed #CCC;"><table width="650" border="0" align="center" cellpadding="0">
      <tr>
        <td style="border-bottom: 1px dashed #CCC;">Regno</td>
        <td style="border-bottom: 1px dashed #CCC;">Name</td>
        <td style="border-bottom: 1px dashed #CCC;">
        <?php
        while($row=$result->fetch_array()){
            ?>
            <table>
            <tr>
            <td><?php echo $row['courseCode']; ?> </td>
            </tr>
            <tr>
            <td><?php echo $row['creditLoad']; ?> </td>
            </tr>
            </table>
            <?
        }
        ?>
        </td>
        </tr>
      <?php
      //while($rw2 = $res2->fetch_array()){
      ?>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        </tr>
      <?php
      //}
      ?>
    </table></td>
  </tr>
  <tr>
    <td style="border-bottom: 1px dashed #CCC;"><table width="600" border="0" align="center" cellpadding="0">
      <tr>
        <td width="177">No of courses:</td>
        <td width="417">&nbsp;</td>
      </tr>
      <tr>
        <td>No of fail:</td>
        <td>&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td align="center">&nbsp;</td>
  </tr>
  <tr>
    <td align="center"><input type="button" name="button" id="button" value="Print" onclick="print()" /></td>
  </tr>
</table>
                    <?php

                //}else{

                //}
            //}else{
                //echo $mysqli->error;
            //}

            }
        }
                    }
        }echo $mysqli->error;
    }
                    ?>

</body>
</html>

GeneralRe: need help with php parse error Pin
Richard MacCutchan19-Apr-14 9:58
mveRichard MacCutchan19-Apr-14 9:58 
GeneralRe: need help with php parse error Pin
Izu Great19-Apr-14 10:10
professionalIzu Great19-Apr-14 10:10 
GeneralRe: need help with php parse error Pin
Richard MacCutchan19-Apr-14 22:08
mveRichard MacCutchan19-Apr-14 22:08 
GeneralRe: need help with php parse error Pin
Izu Great20-Apr-14 1:12
professionalIzu Great20-Apr-14 1:12 
GeneralRe: need help with php parse error Pin
Izu Great20-Apr-14 1:49
professionalIzu Great20-Apr-14 1:49 
GeneralRe: need help with php parse error Pin
Richard MacCutchan20-Apr-14 2:41
mveRichard MacCutchan20-Apr-14 2:41 
GeneralRe: need help with php parse error Pin
Graham Breach20-Apr-14 7:26
Graham Breach20-Apr-14 7:26 
GeneralRe: need help with php parse error Pin
Izu Great20-Apr-14 11:01
professionalIzu Great20-Apr-14 11:01 
Questionpseudo-elements and pseudo-classes Pin
Ali Al Omairi(Abu AlHassan)16-Apr-14 3:38
professionalAli Al Omairi(Abu AlHassan)16-Apr-14 3:38 
AnswerRe: pseudo-elements and pseudo-classes Pin
Richard Deeming16-Apr-14 4:22
mveRichard Deeming16-Apr-14 4:22 
GeneralRe: pseudo-elements and pseudo-classes Pin
Ali Al Omairi(Abu AlHassan)16-Apr-14 4:55
professionalAli Al Omairi(Abu AlHassan)16-Apr-14 4:55 
Generalinstead of before, will prev() work for you Pin
Ferd Really28-Apr-14 12:05
Ferd Really28-Apr-14 12:05 
QuestionPlease help me to transfer data between elements in a web form. Pin
lersmethasakul9-Apr-14 14:07
lersmethasakul9-Apr-14 14:07 
SuggestionRe: Please help me to transfer data between elements in a web form. Pin
thatraja15-Apr-14 22:03
professionalthatraja15-Apr-14 22:03 
AnswerRe: Please help me to transfer data between elements in a web form. Pin
Ali Al Omairi(Abu AlHassan)15-Apr-14 22:52
professionalAli Al Omairi(Abu AlHassan)15-Apr-14 22:52 
QuestionInstallaing SSL Certificate into server which contains load balancer Pin
Arindam Tewary9-Apr-14 6:02
professionalArindam Tewary9-Apr-14 6:02 
AnswerRe: Installaing SSL Certificate into server which contains load balancer Pin
237419-Apr-14 6:45
237419-Apr-14 6:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.