Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 1st, 2012  |  syntax: None  |  size: 2.13 KB  |  hits: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Mail Function - Fatal error: Function name must be a string
  2. Fatal error: Function name must be a string in C:xampphtdocsmlacmlac_member2.php on line 226
  3.        
  4. <?php
  5.  
  6. if (isset($_GET['view']))
  7.     {
  8.     $user = sanitizeString($_GET['view']);
  9.  
  10.  
  11.  
  12.  
  13.     $data = "SELECT * FROM names WHERE id='$user'";
  14.     $result=mysql_query($data) or die(mysql_error());
  15.  
  16.     while($row=mysql_fetch_array($result)){
  17.  
  18. ?>
  19.        
  20. <caption>Personal Record</caption>
  21.  
  22. <tr>
  23. <th>ID</th>
  24.     <td><?php
  25.         echo $row['id'];
  26.      ?></td>
  27. </tr>
  28.  
  29. <tr>
  30. <th>Name</th>
  31.     <td><?php
  32.         echo $row['name'];
  33.      ?></td>
  34. </tr>
  35.  
  36. <tr>
  37. <th>E-Mail</th>
  38.     <td><?php
  39.         echo $row['email'];
  40.      ?></td>
  41. </tr>
  42.  
  43. <tr>
  44. <th>Main Telephone</th>
  45.     <td><?php
  46.         echo $row['maintel'];
  47.      ?></td>
  48. </tr>
  49.  
  50. <tr>
  51. <th>Mobile Telephone</th>
  52.     <td><?php
  53.         echo $row['mobtel'];
  54.      ?></td>
  55. </tr>
  56.  
  57. <tr>
  58. <th>Organisation</th>
  59.     <td><?php
  60.         echo $row['organisation'];
  61.      ?></td>
  62. </tr>
  63.  
  64. <tr>
  65. <th>Group Leader</th>
  66.     <td><?php
  67.         echo $row['group_leader'];
  68.      ?></td>
  69. </tr>
  70.  
  71. <tr>
  72. <th>Supervisor</th>
  73.     <td><?php
  74.         echo $row['supervisor'];
  75.      ?></td>
  76. </tr>
  77.  
  78. <tr>
  79. <th>Volunteer</th>
  80.     <td><?php
  81.         echo $row['volunteer'];
  82.      ?></td>
  83. </tr>
  84.  
  85. <tr>
  86. <th>Assessor</th>
  87.     <td><?php
  88.         echo $row['assessor'];
  89.  
  90.         }
  91.         }
  92.      ?></td>
  93. </tr>
  94.  
  95. </table>
  96.  
  97.  
  98.     <br />
  99.     <form method="post" action="update.php">
  100.         <input name="Submit1" type="submit" value="Edit" style="width: 67px" /></form>
  101.  
  102.     <p>&nbsp;</p>
  103.        
  104. <?php  
  105.  
  106. $to='xy@sth.com';
  107. $subject='Test Script';
  108.  
  109. $name=$row('name');
  110. $email=$row('email');
  111. $phone=$row('mobtel');
  112. $message=("Name:  ").$name. ("rn") . ("Email:  ") .$email . ("rn") . ("Phone:  ")    .$phone;
  113.  
  114.  
  115. mail($to,$subject,$message);
  116.  
  117. ?>
  118.        
  119. $name=$row['name'];
  120. $email=$row['email'];
  121. $phone=$row['mobtel'];
  122.        
  123. $name=$row['name'];
  124. $email=$row['email'];
  125. $phone=$row['mobtel'];
  126.        
  127. $message="Name:  ".$name. "rn" . "Email:  " .$email . "rn". "Phone:  ".$phone;
  128.        
  129. $headers1  = "MIME-Version: 1.0rn";
  130.  
  131. $headers1 .= "Content-type: text/html; charset=iso-8859-1rn";
  132.  
  133. $headers1 .= "From: $fromurlrn";
  134.  
  135.  
  136.  
  137. @mail($to, $subject , $message, $headers1);