Jump to content

Recommended Posts

[code]<?php require_once('Connections/conn_member.php'); ?>
<?php
if (!isset($_SESSION)) {
  session_start();
}
$MM_authorizedUsers = "";
$MM_donotCheckaccess = "true";

// *** Restrict Access To Page: Grant or deny access to this page
function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) {
  // For security, start by assuming the visitor is NOT authorized.
  $isValid = False;

  // When a visitor has logged into this site, the Session variable MM_Username set equal to their username.
  // Therefore, we know that a user is NOT logged in if that Session variable is blank.
  if (!empty($UserName)) {
    // Besides being logged in, you may restrict access to only certain users based on an ID established when they login.
    // Parse the strings into arrays.
    $arrUsers = Explode(",", $strUsers);
    $arrGroups = Explode(",", $strGroups);
    if (in_array($UserName, $arrUsers)) {
      $isValid = true;
    }
    // Or, you may restrict access to only certain users based on their username.
    if (in_array($UserGroup, $arrGroups)) {
      $isValid = true;
    }
    if (($strUsers == "") && true) {
      $isValid = true;
    }
  }
  return $isValid;
}

$MM_restrictGoTo = "login.php";
if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {  
  $MM_qsChar = "?";
  $MM_referrer = $_SERVER['PHP_SELF'];
  if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
  if (isset($QUERY_STRING) && strlen($QUERY_STRING) > 0)
  $MM_referrer .= "?" . $QUERY_STRING;
  $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
  header("Location: ". $MM_restrictGoTo);
  exit;
}
?>
<?php
$colname_rsCustomerData = "-1";
if (isset($_GET['userid'])) {
  $colname_rsCustomerData = (get_magic_quotes_gpc()) ? $_GET['userid'] : addslashes($_GET['userid']);
}
mysql_select_db($database_conn_member, $conn_member);
$query_rsCustomerData = sprintf("SELECT tbbeautician.beau_name, tbbeautician.`identity`, tbconsultant.cons_name, tbmember.username_chi, tbmember.username_eng, tbmember.username_nick, tbmember.userid, tbmember.joinday, tbmember.birthday, tbmember.phone, tbmember.address, tbmember.email, tbmember.sex, tbmember.occupation, tbmember.book_time, tbmember.reactivity, tbmember.remark, tbmember.medicaltreat, tbmember.surgery, tbmember.medicine, tbmember.heartdisease, tbmember.allergy, tbmember.skin, tbmember.bloodpressure, tbmember.asthma, tbmember.epilepsy, tbmember.diabetes, tbmember.metal, tbmember.otherdisease, tbmember.insomnia, tbmember.stress, tbmember.busy, tbmember.relax, tbmember.alcoholic, tbmember.smoking, tbmember.spice, tbmember.sweet, tbmember.coffee FROM tbmember, tbbeautician, tbconsultant WHERE userid = '%s' AND tbconsultant.cons_id=tbmember.cons_id AND tbmember.beau_id=tbbeautician.beau_id", $colname_rsCustomerData);
$rsCustomerData = mysql_query($query_rsCustomerData, $conn_member) or die(mysql_error());
$row_rsCustomerData = mysql_fetch_assoc($rsCustomerData);
$totalRows_rsCustomerData = mysql_num_rows($rsCustomerData);
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5" />
<title>Customer Info</title>
<style type="text/css">
<!--
body,td,th {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #666666;
}
-->
</style></head>

<body>
<strong>Customer Info</strong><br />
<hr align="left" width="80%" noshade="noshade" />
<table height="395" border="0" cellpadding="5" cellspacing="0" onsubmit="MM_validateForm('username','','R','userid','','R','phone_home','','NisNum','phone_mobile','','NisNum','email','','NisEmail','pass','','R');return document.MM_returnValue">
  <tr>
    <td width="108" height="18"><div align="center">Chinese Name</div></td>
    <td width="269"><?php echo $row_rsCustomerData['username_chi']; ?></td>
  </tr>
  <tr>
    <td><div align="center">English Name</div></td>
    <td><?php echo $row_rsCustomerData['username_eng']; ?></td>
  </tr>
  <tr>
    <td><div align="center">Nickname</div></td>
    <td><?php echo $row_rsCustomerData['username_nick']; ?></td>
  </tr>
  <tr>
    <td height="19"><div align="center">User ID</div></td>
    <td><?php echo $row_rsCustomerData['userid']; ?></td>
  </tr>
  <tr>
    <td><div align="center">Consultant</div></td>
    <td><?php echo $row_rsCustomerData['cons_name']; ?></td>
  </tr>
  <tr>
    <td><div align="center">Beautician</div></td>
    <td><?php echo $row_rsCustomerData['beau_name']; ?> (<?php if ($row_rsCustomerData['identity']==1) echo "Beautician"; if ($row_rsCustomerData['identity']==2) echo "Massage"; ?> )  </td>
  </tr>
  <tr>
    <td><div align="center">Join Date</div></td>
    <td><?php echo $row_rsCustomerData['joinday']; ?></td>
  </tr>
  <tr>
    <td><div align="center">Date of Birth</div></td>
    <td><?php echo $row_rsCustomerData['birthday']; ?></td>
  </tr>
  <tr>
    <td height="18"><div align="center">Tel</div></td>
    <td><?php echo $row_rsCustomerData['phone']; ?></td>
  </tr>
  <tr>
    <td height="18"><div align="center">Address</div></td>
    <td><?php echo $row_rsCustomerData['address']; ?></td>
  </tr>
  <tr>
    <td height="18"><div align="center">E-mail</div></td>
    <td><?php echo $row_rsCustomerData['email']; ?></td>
  </tr>
  <tr>
    <td><div align="center">Gender</div></td>
    <td><?php echo $row_rsCustomerData['sex']; ?></td>
  </tr>
  <tr>
    <td><div align="center">Occupation</div></td>
    <td><?php echo $row_rsCustomerData['occupation']; ?></td>
  </tr>
  <tr>
    <td><div align="center">Booking Time</div></td>
    <td><?php echo $row_rsCustomerData['book_time']; ?>:00</td>
  </tr>
  <tr>
    <td height="40"><p align="center">Reactivity</p></td>
    <td><?php
    while ($row_rsCustomerData['reactivity']>0) {
    echo "*";
    $row_rsCustomerData['identity']--;
    ?></td>
  </tr>
  <tr>
    <td height="27"><div align="center">Remark</div></td>
    <td><?php echo $row_rsCustomerData['remark']; ?></td>
  </tr>
  <tr>
    <td height="51" rowspan="3"><div align="center">Medical History</div></td>
    <td rowspan="3"><?php if($row_rsCustomerData['heartdisease']==1) echo "Heart Disease "; ?>
    <?php if($row_rsCustomerData['allergy']==1) echo "Allergy "; ?>
    <?php if($row_rsCustomerData['skin']==1) echo "Skin Disease "; ?>
    <?php if($row_rsCustomerData['bloodpressure']==1) echo "High/Low Blood Pressure "; ?>
    <?php if($row_rsCustomerData['asthma']==1) echo "Asthma "; ?>
    <?php if($row_rsCustomerData['epilepsy']==1) echo "Epilepsy "; ?>
    <?php if($row_rsCustomerData['diabetes']==1) echo "Diabetes"; ?>
    <?php if($row_rsCustomerData['metal']==1) echo "Metal Plates "; ?>
    <?php echo $row_rsCustomerData['otherdisease']; ?></td>
  </tr>
  <tr> </tr>
  <tr> </tr>
  <tr>
    <td height="25"><div align="center">Latest Medical Treatment</div></td>
    <td><?php echo $row_rsCustomerData['medicaltreat']; ?></td>
  </tr>
  <tr>
    <td height="13"><div align="center">Latest Surgery</div></td>
    <td><?php echo $row_rsCustomerData['surgery']; ?></td>
  </tr>
  <tr>
    <td height="6"><div align="center">To take certain medicine chronically</div></td>
    <td><?php echo $row_rsCustomerData['medicine']; ?></td>
  </tr>
  <tr>
    <td height="7"><div align="center">Life Style</div></td>
    <td><?php if($row_rsCustomerData['insomnia']==1) echo"Insomnia "; ?>
    <?php if($row_rsCustomerData['stress']==1) echo"Stress "; ?>
    <?php if($row_rsCustomerData['busy']==1) echo"Busy "; ?>
    <?php if($row_rsCustomerData['relax']==1) echo"Relax "; ?>
    </td>
  </tr>
  <tr>
    <td height="13"><div align="center">Habits</div></td>
    <td><?php if($row_rsCustomerData['alcoholic']==1) echo"Alcoholic ";?>
    <?php if($row_rsCustomerData['smoking']==1) echo"Smoking ";?>
    <?php if($row_rsCustomerData['spice']==1) echo"Spice ";?>
    <?php if($row_rsCustomerData['sweet']==1) echo"Sweet ";?>
    <?php if($row_rsCustomerData['coffee']==1) echo"Coffee ";?></td>
  </tr>
</table>
<p>&nbsp;</p>
</body>
</html>
<?php
mysql_free_result($rsCustomerData);
?>[/code]

Parse error: parse error in c:\program files\easyphp1-8\www\apply\detail.php on line 190
That's what o could see when i try to load it
PLEASE HELP ME!!!
Link to comment
https://forums.phpfreaks.com/topic/12635-help-parse-error/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.