I'm a beginner in php and mysql, I just want to know how can I put values that I got from a select query into variables.
For example I used this mysql query :
$req="SELECT type, titre, auteur, abstract, keywords FROM manusrit WHERE file='$name';";
$req1=mysql_query($req);
I want to put the value of the column type in $type
variable and the value of auteur in a variable called $auteur
and the same for abstract, and keywords.
How can I do this?