mysql_fetch_array returns my rows but I want the colunms, for example :
$bilgi= mysql_query("SELECT age,wname,slid,sex,c_name FROM user ");
//echo mysql_errno($con).":".mysql_error($con)."\n";
while($sutun= mysql_fetch_array($bilgi))
{
echo $sutun["age"]." ";
echo $sutun["wname"]." ";
echo $sutun["sex"]." ";
echo $sutun["slid"]." ";
echo $sutun["c_name"]."\n";
}
this return me rows i want it to return colonms any idea?
Would only return one row, but I don’t think this is what you want?
You need a primary key and use that in a WHERE clause to identify the row you need.
idbeing the primary key to identify a row.