please help me with this parse error.. tnx

Parse error: parse error in C:\wamp\www\concentrix\aboutUs.php on line 49

<form action=<?php $_SERVER;?> method="post" enctype="multipart/form-data">
User Name:<input type="text" name="u_name">
</form>
<table border=2>
<tr>
<?php

$con = mysql_connect("localhost","con","centrix");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}

mysql_select_db("concentrix", $con);

$result = mysql_query("SELECT * FROM `"war"` WHERE `user_name`='".$_POST."' ");

while($row = mysql_fetch_array($result))
{

echo "<tr><td>".$row ;
echo "</td><td>";
}
mysql_close($con);
?>

Recommended Answers

All 2 Replies

$result = mysql_query("SELECT * FROM `war` WHERE `user_name`='".$_POST['u_name']."' ");

Remove " double quote which are around your table name war.

$result = mysql_query("SELECT * FROM `war` WHERE `user_name`='".$_POST['u_name']."' ");
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.