$alpha = mysql_real_escape_string($_POST['fromotherpage]);
mysql_select_db("papers", $con);
$sql = mysql_query("SELECT * FROM login WHERE 'user'='$alpha'");
assuming its connecting to the database and the index field is user, I want the variable $alpha to be the search condition.
I have tried even the simplest command on the PHPmyadmin run SQL query and get the syntax error. I have tried like...
$alpha ="test" and get the error ..
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '$alpha = "test"' at line 1
the end idea is to have the "WHERE 'user = '$alpha' " function work so I will retreive specifically that single record.