ah entiendo
bueno hacer asi
Código PHP:
$connection = mysql_connect('localhost', 'root', '972190131')
or die('Could not connect. Please contact the webmaster (webmaster@localhost). The error is: ' . mysql_error());
mysql_select_db('rateit') or die('Could not select database. Please contact the webmaster (webmaster@localhost)');
$query = 'SELECT * FROM users WHERE username ="' . $usuari . '";';
$result = mysql_query($query) or die('Query failed: ' . mysql_error());
$variable1 = $result['campo'];
$variable2 = $result['campo2'];
y luego solo haces el echo a la variable q desees imprimir
Saludos