
Untitled
By: a guest on
Aug 1st, 2012 | syntax:
None | size: 2.13 KB | hits: 8 | expires: Never
Mail Function - Fatal error: Function name must be a string
Fatal error: Function name must be a string in C:xampphtdocsmlacmlac_member2.php on line 226
<?php
if (isset($_GET['view']))
{
$user = sanitizeString($_GET['view']);
$data = "SELECT * FROM names WHERE id='$user'";
$result=mysql_query($data) or die(mysql_error());
while($row=mysql_fetch_array($result)){
?>
<caption>Personal Record</caption>
<tr>
<th>ID</th>
<td><?php
echo $row['id'];
?></td>
</tr>
<tr>
<th>Name</th>
<td><?php
echo $row['name'];
?></td>
</tr>
<tr>
<th>E-Mail</th>
<td><?php
echo $row['email'];
?></td>
</tr>
<tr>
<th>Main Telephone</th>
<td><?php
echo $row['maintel'];
?></td>
</tr>
<tr>
<th>Mobile Telephone</th>
<td><?php
echo $row['mobtel'];
?></td>
</tr>
<tr>
<th>Organisation</th>
<td><?php
echo $row['organisation'];
?></td>
</tr>
<tr>
<th>Group Leader</th>
<td><?php
echo $row['group_leader'];
?></td>
</tr>
<tr>
<th>Supervisor</th>
<td><?php
echo $row['supervisor'];
?></td>
</tr>
<tr>
<th>Volunteer</th>
<td><?php
echo $row['volunteer'];
?></td>
</tr>
<tr>
<th>Assessor</th>
<td><?php
echo $row['assessor'];
}
}
?></td>
</tr>
</table>
<br />
<form method="post" action="update.php">
<input name="Submit1" type="submit" value="Edit" style="width: 67px" /></form>
<p> </p>
<?php
$to='xy@sth.com';
$subject='Test Script';
$name=$row('name');
$email=$row('email');
$phone=$row('mobtel');
$message=("Name: ").$name. ("rn") . ("Email: ") .$email . ("rn") . ("Phone: ") .$phone;
mail($to,$subject,$message);
?>
$name=$row['name'];
$email=$row['email'];
$phone=$row['mobtel'];
$name=$row['name'];
$email=$row['email'];
$phone=$row['mobtel'];
$message="Name: ".$name. "rn" . "Email: " .$email . "rn". "Phone: ".$phone;
$headers1 = "MIME-Version: 1.0rn";
$headers1 .= "Content-type: text/html; charset=iso-8859-1rn";
$headers1 .= "From: $fromurlrn";
@mail($to, $subject , $message, $headers1);