Hello all,i just want to ask if there is a way(must be) to select a specific user from a query,my code is like this
$dbhost = ‘localhost’;
$dbuser = ‘root’;
$dbpass = ‘’;
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or
die (‘Error connecting to mysql’);
$dbname = ‘info_zi’;
mysql_select_db(‘info_zi’,$conn);
mysql_select_db(‘users’,$conn);
$query = "SELECT * FROM info_zi.sheet1 JOIN lr.users ON (info_zi.sheet1.nr_matricol = lr.users.nr_matricol) ";
$result = mysql_query($query);
I need to show just one user that has the same data (nr_matricol) both in info_zi and in users.