I am trying to do a simple query on my MySQL db and echo back the result. I am getting the following error:
Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING)
This is the code for my query:
$result = mysqli_query($connection, "SELECT FROM table_name WHERE value='$_POST["searchname"]'";
echo $result;
I'm assuming it is a simple syntax error in the SQL statement, but I just am not seeing it. Thanks for the help!