MySQL, PHP: What's the best code to get Column6 value from a table where username =...

I'm not sure I understand your question - but if for the query:

$sql =
'SELECT column2
FROM table
WHERE username = "test"';
$result = mysql_query($sql);

while($row = mysql_fetch_array($result))
{
echo $row['column2'], '< br / >';
}
 
Back
Top