How to display BLOB Images from database in a while loop - php

I've been working on these codes for 2 hours now and i can't seem to make it appear. It has the right ID, but the picture doesnt show. i have no idea why.
anyway, here are my codes.
this is for showing the pic along with other stuff.
<div align="left">
<center><img src="img/compressportbanner.jpg" height="180"></center>
<table border="0" cellpadding="2px" width="600px">
<?php
$result=mysql_query("select * from inventory WHERE prod_brand = 'Compressport' AND prod_category='compression' ");
while($row=mysql_fetch_array($result)){
?>
<tr>
<td>
<?php
echo '<'.'img src="image.php?prod_id='.$row['prod_id'].'" alt="'.$row['prod_name'].'" width="250">';
?>
</td>
<td> <b><?php echo $row['prod_name']?></b><br />
<?php echo $row['prod_category']?>
<!--<?php echo $row['prod_desc']?>-->
<br>
Price:<big style="color:green">
₱ <?php echo $row['prod_price']?></big><br /><br />
<input type="button" value="Add to Cart" onclick="addtocart(<?php echo $row['prod_id']?>)" />
</td>
</tr>
<tr><td colspan="2"><hr size="1" /></td>
<?php } ?>
</table>
</div>
and here is the image.php
<?php
$prodID=($_GET['prod_id']);
$sql = "SELECT * FROM `inventory` where `prod_id` = ".$prodID;
$qry = mysql_query($sql);
$result=mysql_fetch_array($qry);
echo '<img src="data:image/jpeg;base64,'.base64_encode( $result['prod_pic'] ).'"/>'
?>
How do i make it appear, im new to php and im just starting to understand it.

Here's what I did with your codes, i added this line of code.
<?php echo '<img src="data:image/jpeg;base64,'.base64_encode($row['prod_pic']).'" width="250">';?>
Here are the full codes.
<div align="left">
<center><img src="img/compressportbanner.jpg" height="180"></center>
<table border="0" cellpadding="2px" width="600px">
<?php
$result=mysql_query("select * from inventory WHERE prod_brand = 'Compressport' AND prod_category='compression' ");
while($row=mysql_fetch_array($result)){
?>
<tr>
<td>
<?php
echo '<img src="data:image/jpeg;base64,'.base64_encode($row['prod_pic']).'" width="250">';
?>
</td>
<td> <b><?php echo $row['prod_name']?></b><br />
<?php echo $row['prod_category']?>
<!--<?php echo $row['prod_desc']?>-->
<br>
Price:<big style="color:green">
₱ <?php echo $row['prod_price']?></big><br /><br />
<input type="button" value="Add to Cart" onclick="addtocart(<?php echo $row['prod_id']?>)" />
</td>
</tr>
<tr><td colspan="2"><hr size="1" /></td>
<?php } ?>
</table>
</div>

Related

set two different type checkbox color in the form using php codeigniter

<table class="table table-hover">
<tr>
<th>Sl.No</th>
<th> All </th>
<th>Regno.</th>
<th>Name</th>
<!--<?php echo "Core Subjects" ?> -->
<?php
foreach($getsubc as $rowc)
{
?>
<td align="center">
<?php echo $rowc['subcode']; ?>
<input type="checkbox" id="check-all" onClick="toggle(this,<?php echo $rowc['markid']; ?>)" value="<?php echo $rowc['markid']; ?>" checked="checked" data-checkbox-class="icheckbox_square-green">
</td>
</div>
<?php
}
?>
<!-- Elective subjects -->
<?php
foreach($getsube as $rowe)
{
?>
<td align="center">
<?php echo $rowe['subcode']; ?>
<input type="checkbox" id="check-all2" onClick="toggle(this,<?php echo $rowe['markid']; ?>)" value="<?php echo $rowe['markid']; ?>" data-checkbox-class="icheckbox_square-blue">
</td>
<?php
}?>
</tr>
<?php
$sno=1;
foreach($getstud as $row)
{
echo '<tr>'; ?>
<?php
echo '<td>'.$sno++.'</td>';
echo '<td><input type="checkbox" value="' . $row['regno'] . '" name="regno[]"></td>';
echo '<td>'.$row['regno'].'</td>';
echo '<td>'.$row['name'].'</td>';
?>
<?php ?>
<?php foreach($getsubc as $row1)
{?>
<td align="center"> <input type="checkbox" data-checkbox-class="icheckbox_square-green" name="friend_id[]"
value="<?php echo $row1['markid'];?>" >
</td>
</td>
</div>
</td>
</div>
</div>
<?php
} ?>
<?php
foreach($getsube as $row2)
{
?>
<td align="center"> <input type="checkbox" data-checkbox-class="icheckbox_square-blue" name="friend_id[]" value="<?php echo $row2['markid']; ?>" /> </td>
<?php
}
echo '</tr>';
}
?>
</table>
<script src="<?= base_url('assets/plugins/iCheck/icheck.min.js') ?>"></script>
$('input:checkbox').iCheck({
increaseArea: '25%' // optional
});
</script>
<script language="JavaScript">
function toggle(source, markid) {
checkboxes = document.getElementsByName(markid);
for(var i=0, n=checkboxes.length;i<n;i++) {
checkboxes[i].checked = source.checked;
}
}
</script>
i changes the code accordingly your solution . but not working both color and select_all method . whats wrong with this code
i changes the code accordingly your solution . but not working both color and select_all method . whats wrong with this code
i changes the code accordingly your solution . but not working both color and select_all method . whats wrong with this code
First, change your iCheck initialization to this:
$('input:checkbox').iCheck({
increaseArea: '25%' // optional
});
Then do this on first set:
<td align="center">
<?php echo $row1['subcode']; ?>
<input type="checkbox" id="check-all" onClick="toggle(this,<?php echo $row1['markid']; ?>)" value="<?php echo $row1['markid']; ?>" checked="checked" data-checkbox-class="icheckbox_square-green">
</td>
And then on your second set:
<td align="center">
<?php echo $row2['subcode']; ?>
<input type="checkbox" id="check-all2" onClick="toggle(this,<?php echo $row2['markid']; ?>)" value="<?php echo $row2['markid']; ?>" data-checkbox-class="icheckbox_square-blue">
</td>
Notice the use of data-checkbox-class attribute on each of the input:checkbox tags. Which you can apply the same on the ones within data tables.

How to show multiple results in a query result?

I have a table that I have to populate him with a query result. One of the rows is the name of the group. My result3 inside the while is a query where I get the name of the group. I want to put that name in each row. But for some reason I can only get the first position of the query result. Can you help me?
This is my result3 variable query(in a resumed way):
$sql3 = "SELECT * from titulogrupo where idutilizador ={$_SESSION['id_utilizador']}";
$result3 = mysqli_query(mysqli_connect(", "u518178166_serra"), $sql3);...etc etc...
<table table id= "myTable" class="table table-hover"> <br>
<thead>
<tr>
<th>Os meus Chips</th>
<th>NIF</th>
<th>Marca de Exploracao</th>
<th>Marca do Auricular</th>
<th>Data de Nascimento</th>
<th>Observacoes</th>
<th>Estado</th>
<th>Data1</th>
<th>Data2</th>
<th>Data3</th>
</tr>
</thead>
<?php
while ($row = mysqli_fetch_array($result)){
?>
<tr>
<td><?php echo $row['numerochip'];?><input style="float: left; margin: 0 5px;" type="checkbox" value="<?php echo $row['numerochip']; ?>" name="numero[]" id="numero"></td>
<td><?php echo $row['NIF']; ?></td>
<td><?php echo $row['MarcaExploracao']; ?> </td>
<td><?php echo $row['MarcaAuricular']; ?> </td>
<td><?php echo $row['Data_Nascimento']; ?> </td>
<td><?php echo $row['observacoes'];?>
<div class="w3-container" id="....kli..">
<input style="display: none; type="text" id="numerochipescondido" name="numerochipescondido" value="<?php echo $row['numerochip']; ?>">
<input style="display: none; type="text" id="observacoesescondido" name="observacoesescondido" value="<?php echo $row['observacoes']; ?>">
<input style="display: none; type="text" id="idutilizadorescondido" name="idutilizadorescondido" value="<?php echo $_SESSION['id_utilizador']; ?>">
<center>
<button type="button" id="<?php echo $row['numerochip']; ?>" onclick="document.getElementById('id111').style.display='block'" class="glyphicon glyphicon-pencil changeobervations" width:50px height:50px;"></button>
</center>
</div>
</td>
<td>
<?php
if($row['velha']){
echo 'Velha ';
}
if($row['prenha']){
echo 'Prenha ';
}
if($row['refugo']){
echo 'Refugo ';
}
if($row['grupo4']){
while ($row = mysqli_fetch_array($result3)){
echo $row['titulogrupo'];
}
}
?>
</td>
<td><?php echo $row['Data1']; ?> </td>
<td><?php echo $row['Data2']; ?> </td>
<td><?php echo $row['Data3']; ?> </td>
</tr>
<?php } ?>
</table>
<br>
<input type="submit" class="btn btn-warning"name="submit_x" value="Submeter Lista de Animais a Encontrar(Individual)"> <br> <br>
<input type="submit" class="btn btn-danger"name="submit_y" value="Eliminar Animais Selecionados(Individual)"> <br> <br>
<form action="deletedb.php" method="post">
<input type="submit" class="btn btn-danger"name="submit_d" value="Apagar a minha lista total">
</form>
</form>
<br>
</br>
<table class="table table-hover" style="width:300px">
<thead>
<tr>
<th>Os meus Chips a encontrar</th>
</tr>
</thead>
<?php
while ($row = mysqli_fetch_array($result2)){
?>
<tr>
<td><?php echo $row['ovelhas'];?></td>
</tr>
<?php } ?>
<!-- Começa aqui o apagar -->
<form action="apagarOvelhasEncontrar2.php" method="post">
<br>
<tr>
<td>
<button type="submit" name="submit_x" class="btn btn-danger">Apagar Ovelhas a Encontrar</button>
</td>
</tr>
</form>
</table>
</br>
</div>
Use a different variable when fetching $result3 etc.
if($row['grupo4']){
while ($row3 = mysqli_fetch_array($result3)){
echo $row3['titulogrupo'];
}

Show only relevant search results

I have created a page for search, and I'm having some problems.
The data is displayed on the page but I also use some fields on the form for a specific field, so when I enter the data in those fields and hit search, it shows the search field on the top of the display page with the rest of the data, but I want only the data which belongs to my search.
CODE:
<?php
include('connect.php');
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php include('include/head.php')?>
</head>
<body>
<div id="header-wrapper">
<div id="header">
<div id="menu">
<ul>
<?php include('include/menu.php') ?>
Logout
</ul>
</div>
</div>
</div>
<div id="logo">
<?php include('include/logo.php'); ?>
</div>
<div id="wrapper">
<div id="page">
<div id="page-bgtop">
<div id="content">
<div class="post">
<div class="entry-image">
<?php
$q=mysql_query("SELECT count( php ) AS ph, count( dotnet ) AS dot, count( design ) AS des FROM candidate");
while($row=mysql_fetch_array($q))
{
?>
<form name="" method="post">
<table border="1" cellpadding="10" cellspacing="1" width="280" height="200">
<th colspan="5" bgcolor="orange" >Total Number of Resume by skills</th>
<tr>
<th><B>PHP</B></th>
<th><B>DOTNET</B></th>
<th><B>DESIGN</B></th>
</tr>
<td><?php echo "$row[ph]"; ?></td>
<td><?php echo "$row[dot]"; ?></td>
<td><?php echo "$row[des]"; ?></td>
</table>
</form>
<?php
}
?>
</div>
<h2 class="title">Welcome to Resume </h2>
<div class="entry">
<p>
<form name="search" method="post" action="searchview.php">
<table>
<tr>
Id: <input type="text" name="id" /></br></br>
Name:<input type="text" name="name" /><br/></br>
Expected Salary:<input type="text" name="es" /><br/></br>
Skill Rate: <input type="text" name="sr" /><br/> </br>
Salary:<input type="text" name="cs" /></br></br>
<input type="submit" name="submit" value="seach" /><input type="reset" name="reset" value="reset" />
</tr>
</table>
</form>
</p>
</div>
</div>
<div class="post" >
<?php
$query=mysql_query("select * from candidate");
while($row=mysql_fetch_array($query))
{
$sno=$row['id'];
$image=$row['image'];
$name=$row['fname'];
$es=$row['es'];
$sr=$row['sr'];
$cs=$row['cs'];
?>
<form name="view" method="post" action="searchview.php" >
<table border="1" cellpadding="30" class="centered" width="20" >
<tr>
<th width="150">S.NO</th>
<th width="150">IMAGE</th>
<th width="150">NAME</th>
<th width="150">EXPECTED SALARY</th>
<th width="150">SKILL RATE</th>
<th width="150">SALARY</th>
<th width="150">ACTION</th>
</tr>
<td><?php echo "$row[id]"; ?></td>
<td><div class="rightdiv1a"><img src="<?php echo 'img/'.$row['image']; ?>" style="height:120px; width:145px; "></div></td>
<td><?php echo "$row[fname]"; ?></td>
<td><?php echo "$row[es]"; ?></td>
<td><?php echo "$row[sr]"; ?></td>
<td><?php echo "$row[cs]"; ?></td>
<td><img alt='view' title='view' src='images/view.png' width='15px' height='15px' hspace='20' /></td>
<td><img alt='Edit' title='Edit' src='images/edit.png' width='15px' height='15px' hspace='20' /></td>
<td><a onclick="return confirm('Would you like to delete?');" href="delete.php?id=<?php echo "$row[id]"; ?>"><img alt='delete' title='delete' src='images/delete.png' width='15px' height='15px' hspace='20' /></a></td>
</table>
</form>
<?php
}?>
</div>
</div>
</div>
</div>
</div>
<div id="footer-bgcontent">
<div id="footer">
<?php// include('include/footer.php');?>
</div>
</div>
</body>
</html>
<?php// } ?>
This code displays the data now but I want to filter the data and only show the results which belongs to my search, and have the rest disappear.
Here are some screenshots of my form:
pls help,
thanks in advance..
If I understand the question correctly, you want to display the search results, but no longer show the search form. If this is the case, then move your second "post" div to the top and wrap it in an if:
if (!empty($_POST)) {
// Process POST results here:
...
die(); // end processing so the form doesn't display again
}

database not updating after attempting to edit with update statement

My question to you is as follows. I have created a form that is populated from a mysql database. Id like to be able to edit that form after it has been submitted. I have got it to the point where it will allow me to edit the fields in the form but when i do so the data is not updated on the database. Could you have a look at my code and see where i might be going wrong?
<?php
include_once 'includes/db_connect.php';
?>
</head>
<body>
<table cellpadding="0" cellspacing="0">
<tr>
<td class="headingsa7">Acceptance Criteria</td>
<td class="headingsa8">Technician Responsible</td>
</tr>
<tr>
<td class="headings1">Job/Order Number:</td>
<td class="answers1"><div class= "typesection1">
<?php echo ($row['job_order_number'] ); ?></div></td>
<tr>
<td class="answersa7">
<div class= "typesectiona7">
<?php
echo ($row['acceptance_criteria1'] );
?>
</div>
</td>
<td class="answersa8">
<div class= "typesectiona8">
<?php
echo($row['technician_responsible1'] );
?>
</div></td>
</tr>
<tr>
<td class="answersa7">
<div class= "typesectiona7">
<?
php echo ($row['acceptance_criteria2'] );
?>
</div></td>
<td class="answersa8">
<div class= "typesectiona8">
<?php
echo ($row['technician_responsible2'] );
?>
</div>
</td>
</tr>
<tr>
<td class="answersa7">
<div class= "typesectiona7">
<?php
echo ($row['acceptance_criteria3'] );
?>
</div>
</td>
<td class="answersa8">
<div class= "typesectiona8">
<?php
echo ($row['technician_responsible3'] );
?>
</div>
</td>
</tr>
<tr>
<td class="answersa7">
<div class= "typesectiona7">
<?php
echo($row['acceptance_criteria4'] );
?>
</div>
</td>
<td class="answersa8">
<div class= "typesectiona8">
<?php
echo($row['technician_responsible4'] );
?>
</div>
</td>
</tr>
</table>
<br /><br />
<center>
<?php echo "Edit | Delete |
?>
</center>
</div>
</body>
</html>
edit page.php
</head>
<body>
<?php
mysql_connect("localhost","username","password");
mysql_select_db("joziweb1_form");
$order = "SELECT * FROM jobrequest";
$result = mysql_query($order);
$row = mysql_fetch_array($result);
?>
<form method="post" action="edit_data.php">
<table cellpadding="0" cellspacing="0">
<tr>
<td class="headingsa7">Acceptance Criteria</td>
<td class="headingsa8">Technician Responsible</td>
</tr>
<tr>
<td class="headings1">Job/Order Number:</td>
<td class="answers1">
<div class= "typesection1">
<?php
echo $_GET['job_order_number'];
?>
</div>
</td>
<tr>
<td class="answersa7">
<div class= "typesectiona7">
<?php
echo ($row['acceptance_criteria1'] );
?>
</div>
</td>
<td class="answersa8"><input class="typesectiona8" type="text" name="Technician_responsible1"value=<?php echo $technician_responsible1;?>>
</td>
</tr>
<tr>
<td class="answersa7">
<div class= "typesectiona7">
<?php echo ($row['acceptance_criteria2'] ); ?>
</div>
</td>
<td class="answersa8">
>
<td class="answersa8">
>
>
Edit_data.php
<?php
mysql_connect("localhost","username","password");
mysql_select_db("databasename");
$order = "UPDATE jobrequest,
SET technician_responsible1='$Technician_responsible1', technician_responsible2='$Technician_responsible2' technician_responsible3='$Technician_responsible3', technician_responsible4='$Technician_responsible4',
WHERE 'technician_responsible1' , 'technician_responsible2' , 'technician_responsible3' , 'technician_responsible4' , “;
mysql_query($order);
header("location:jobrequest_viewform.php");
?>
in a edit.php page add this code
session_start();
$_SESSION['no']=$_GET['job_order_number'];
in a edit_data.php
session_start();
$no=$_SESSION['no'];
then use
$order = "UPDATE jobrequest,
SET technician_responsible1='$Technician_responsible1',technician_responsible2='$Technician_responsible2',technician_responsible3='$Technician_responsible3',technician_responsible4='$Technician_responsible4',
WHERE job_order_number='$no'“;
mysql_query($order);
try this maybe it work..

Parse error: syntax error, unexpected 'else' (T_ELSE) in php

Hey guys I m having a tricky issue but unable to get out of it.
Here I m providing a radio button with namely two option free or paid registration but when I going in else part I m receiving an error.
I checked out the syntax line by line still it is unable to resolve why I m getting and error for else.
Please check and help me out.
<?php $regtype = (isset($postdata['regtype']))? $postdata['regtype']:0;?>
Registration Type: <?php echo $form->radio("regtype",array('0' => $translate->_("Free"),'1' =>$translate->_("Paid")),array('separator'=>"\n",'value'=>$regtype));?>
<?php $type = $_POST['data[regtype]'];?>
<?php if ($type == "Free")
?>
<form action="<?php echo $_SERVER['SCRIPT_NAME']?>" method="POST">
<?php if($agency['monthly_fee'] != ''):?>
<?php echo $form->hidden("monthly_fee",array('value'=>$agency['monthly_fee']));?>
<?php endif;?>
<table class="list" border="0" cellspacing="0" cellpadding="0">
<tr>
<th width="200">Plan</th>
<td>
<?php $a="Monthly Rs.600"; $b="3 months Rs. 1,650"; $c="12 months Rs. 6,000"; ?>
<?php echo $form->select("plan",array($a=>'Monthly Rs.600',$b=>'3 months Rs. 1,650',$c=>'12 months Rs. 6,000'),$postdata["plan"]);?>
</td>
</tr>
<tr>
<th width="200"><?php echo $translate->_("student_master_name");?></th>
<td>
<?php echo $translate->_("student_master_name1");?>:<?php echo $form->text("name1",array('value'=>$postdata["name1"]));?>
<?php echo $translate->_("student_master_name2");?>:<?php echo $form->text("name2",array('value'=>$postdata["name2"]));?>
</td>
</tr>
<?php if($gl_locale=="ja"):?>
<tr>
<th>ローマ字</th>
<td>
Surnames:<?php echo $form->text("roma1",array('value'=>$postdata["roma1"]));?>
Given names:<?php echo $form->text("roma2",array('value'=>$postdata["roma2"]));?>
</td>
</tr>
<?php endif;?>
<tr>
<th scope="row"><?php echo $translate->_("student_master_gender");?></th>
<td>
<?php $gender = (isset($postdata['gender']))? $postdata['gender']:0;?>
<?php echo $form->radio("gender",array('0' => $translate->_("common_male"),'1' =>$translate->_("common_female")),array('separator'=>"\n",'value'=>$gender));?>
</td>
</tr>
<tr>
<th scope="row"><?php echo $translate->_("student_master_birth");?></th>
<td>
<?php echo $form->year("birth",1900,date("Y"),$postdata['birth_year'],array('name'=>'data[birth_year]'),"----"); ?><?php echo $translate->_("common_year");?>
<?php echo $form->month("birth",$postdata['birth_month'],array('name'=>'data[birth_month]'),"--");?><?php echo $translate->_("common_month");?>
<?php echo $form->day("birth",$postdata['birth_day'],array('name'=>'data[birth_day]'),"--");?><?php echo $translate->_("common_day");?>
</td>
</tr>
<tr>
<th><?php echo $translate->_("student_master_country");?></th>
<td>
<?php echo $form->select("country_id",$country_data,$postdata['country_id'],array('id'=>'country'),$translate->_("common_choose"));?>
</td>
</tr>
<tr>
<th><?php echo $translate->_("student_master_email");?></th>
<td><?php echo $form->text("email",array('id'=>'mail','value'=>$postdata['email'])); ?></td>
</tr>
<tr>
<th width="200"><?php echo $translate->_("student_master_login_id");?></th>
<td><?php echo $form->text("login_id",array('class'=>'required ||','value'=>$postdata['login_id']));?> <?php echo $translate->_("bmat-entry-tdtxt");?></td>
</tr>
<tr>
<th><?php echo $translate->_("student_master_login_password");?></th>
<td><?php echo $form->password("login_password",array('class'=>'required ||','value'=>$postdata['login_password']));?></td>
</tr>
<tr>
<th><?php echo $translate->_("student_master_login_password");?>(<?php echo $translate->_("bmat-entry-thtxt");?>)</th>
<td><?php echo $form->password("login_password_cfm",array('class'=>'required ||','value'=>$postdata['login_password_cfm']));?></td>
</tr>
</table>
<?php if(!isset($postdata['c-code'])) $postdata['c-code'] = $coupon_code;?>
<?php echo $form->hidden("c-code",array('class'=>'||','value'=>$postdata['c-code']));?>
<?php echo $form->hidden('MemberInfoToken',array('value'=>$MemberInfoToken))?>
<?php echo $form->hidden('stat',array('value'=>'confirm'))?>
<?php //echo $form->hidden('entry_date',array('value'=>date('Y/m/d')))?>
<?php if($gl_locale == 'ja'):?>
<h3><?php echo $translate->_("bmat-entry-kiyaku");?></h3>
<div id="agreement" class="mrg-t10">
<p class="mrg-t10" style="font-weight:bold;">第1条(本規約の適用)</p>
<p>1. 本規約はイープランニング(以下当社という)が運営する特定ドメイン上のウェブサイト 「B-MAT」(以下当社ウェブサイトという)において提供する教育プログラムサービス(以下本サービスという)を、利用者 (第2条にて定義します)が利用する場合の遵守すべき諸条件を定めるものです。</p>
<p>2. 当社は、本サービスの各々について適宜、個別の利用規約(以下「個別規 約」といいます)を定めることができるものとします。</p>
<p style="font-weight:bold;">第2条(ご利用条件について)</p>
<p>利用者には、当社が当該利用者の利用登録を承認した時点で、当社が提供する本サー ビスを利用する資格(以下、「利用者資格」といいます)が与えられます。<br />
利用者は、本利用規約の他、当社が定める各種の規約(以下、「個別規程」といいます)に同意頂き、本サービ スをご利用ください。 なお、本利用規約と個別規程の定めが異なる場合には、個別規程の定めが優先するものとします。<br />
本利用規約および個別規程(以下、併せて「本利用規約等」といいます)については、利用者に対する事前の通 知なく、当社が変更できるものとします。 本利用規約等が変更された場合、当該変更後の利用者による本サービスの利用に は変更後の本利用規約等が適用されるものとし、当該利用により、利用者は当該変更に同意したものとみなされます。</p>
<p style="font-weight:bold;">第3条(著作権について)</p>
<p>本Webサイトに掲載されている著作物(文書、資料、画像、音声、動画等)の著作権は、 イープランニングまたはその他の権利者に帰属します。 これらの著作物につきましては、別段の定めがある場合を除き、私的 使用その他著作権法で特に認められている範囲を超えてご利用(複製、改変、上映、公衆送信、頒布、再使用許諾等を含 む)はできません。 仮に、営利目的でご使用になった場合、相応の使用料をいただくか、使用差し止めの処置を取る場合もあ りますのでご注意ください。</p>
<p style="font-weight:bold;">第4条(利用上の注意)</p>
<p>利用者は、利用に際して登録した情報(以下、「登録情報」といいます。メールアドレス やパスワード等を含みます)について、自己の責任の下、任意に登録、管理するものとします。 利用者は、第三者にパスワ ードを使用されることのないよう、以下の事項を守らなければなりません。</p>
<p>・第三者に自己のパスワードを公開しないこと。<br />
・複数の人間が使用するコンピュータならびに携帯電話上で本サービスを利用する場合は、本 サービスの利用を終えるときに必ずログアウトしウェブブラウザを終了させること。<br />
・複数の人間が使用するコンピュータ上で本サービスを利用する場合は、ログイン情報記録(ログイン時のメールアド レスとパスワードの入力を省略できる機能)の登録解除を行っておくこと。<br />
・当社は、登録されたパスワードによって本サービスの利用があった場合、利用登録をおこな った本人が利用したものと扱うことができ、当該利用によって生じた結果ならびにそれに伴う一切の責任については、利用登録 を行った本人に帰属するものとします。<br />
登録情報の管理は、利用者が自己の責任の下で行うものとし、登録情報が不正確または虚偽であったために利用 者が被った一切の不利益および損害に関して、当社は責任を負わないものとします。</p>
<p style="font-weight:bold;">第5条(個人情報について)</p>
<p>個人情報は、当社が別途定めるプライバシーポリシーに則り、適正に取り扱うこととしま す。 <br />
利用者の同意なく、機密保持契約を結んだ協力企業以外に利用者の個人情報を開示することはありません。ただ し、以下の場合に、個人情報を開示することがあります。</p>
<p>・法令に基づいて、開示が必要であると当社が合理的に判断した場合<br />
・人の生命、身体または財産の保護のために必要がある場合であって、本人の同意を得るこ とが困難であると判断した場合<br />
・公衆衛生の向上または児童の健全な育成の推進のために特に必要がある場合であって、本 人の同意を得ることが困難であると判断した場合<br />
・国の機関もしくは地方公共団体またはその委託を受けた者が法令の定める事務を遂行するこ とに対して協力する必要がある場合であって、本人の同意を得ることにより当該事務の遂行に支障を及ぼすおそれがあると判断 した場合<br />
・合併その他の事由によりサービスの主体が変更され、サービスの継続のため個人情報を移管する必要があると判断した場合</p>
<p>ワールドカップおよびワールドカップJrに入賞した場合は、名前と国名のみ当サイトのワールドカップサイト内に表示します。</p>
<p style="font-weight:bold;">第6条(免責)</p>
<p>・何らかの原因によるシステム障害が起こった場合、その時の獲得ポイントや賞品が無効となる場合があります。<br />
・ポイント獲得および商品交換など、諸所のルールが途中で変更になる場合があります。 </p>
</div><!--agreement-->
<div id="agree-chk">
<input type="hidden" name="data[agree]" value="0">
<label><input name="data[agree]" type="checkbox" value="1"> <?php echo $translate->_("bmat-entry-doui");?></label>
</div>
<?php else:?>
<input type="hidden" name="data[agree]" value="1">
<?php endif;?>
<div style="text-align:center" class="mrg-t10">
<input type="button" name="back" value=" <?php echo $translate->_("otn_member_entry_index_back");?> " onclick="history.back();"/>
<input type="submit" name="btnSubmit" value=" <?php echo $translate->_("otn_member_entry_index_confirm");?> " />
</div>
<?php endif;?>
</form>
<?php else:?> **<!-- Here I m getting an error -->**
<label>In paid registration</label>
<?php endif;?>
Looks like you might have an extra end if:
<?php else:?>
<input type="hidden" name="data[agree]" value="1">
<?php endif;?>
<div style="text-align:center" class="mrg-t10">
<input type="button" name="back" value=" <?php echo $translate->_("otn_member_entry_index_back");?> " onclick="history.back();"/>
<input type="submit" name="btnSubmit" value=" <?php echo $translate->_("otn_member_entry_index_confirm");?> " />
</div>
<?php endif;?>

Categories