Syntax error, unexpected ' &expecting identifier (t_string) or variable (t_variable) or number (T_nu

Source: Internet
Author: User
Tags parse error
<?php echo "<meta content-equiv= ' content-type ', content= ' text/html;
	charset= ' utf-8 '/> ';
	$id =$_post[' id '];
	
	$password =$_post[' password '];
	
	echo $id. $password;
	
	$conn =mysql_connect ("localhost", "root", "");
	
	mysql_query ("Set names UTF8") or Die (Mysql_errno ());
	mysql_select_db ("Empmanage") or Die (Mysql_errno ()); $sql = "SELECT * from EMP";/In addition to the name query, you can obtain the name value//echo ' $sql = '. $sql. "
	<br/> ";
	$res =mysql_query ($sql, $conn);
	echo "<table border= ' 1 ' width= ' >"; echo <tr><td> user id</td><td> user name </td><td> mail </td><td> Modify user </td
	><td> Delete User </td</tr> "; if ($row =mysql_fetch_assoc ($res)) {echo <tr><td> user id</td><td> user name </td><td> message
		</td><td> Modify User </td><td> Delete user </td</tr> "; echo "<tr>><td>{$row [' id ']}</td><td>{$row [' name ']}</td><td>{$row [' email '] ]}</td><td> Modify User </td><td> Delete user </tD></tr> "//Here is just love forget {} This error is not easy to check out.
	
	echo "</table>";
	Mysql_free_result ($res);
	
	Mysql_close ($conn); ?>
Error message: Parse error:syntax error, unexpected ' (t_encapsed_and_whitespace), expecting identifier (t_string) or variable (t_variable) or number (t_num_string) in  D:\xampp\htdocs\empmanage\emp.php  on line  20

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.