I've hit a snag that is making me crazy.
Trying to pull data from a row where the ID is unknown, but Name is.
I need info from fields "id" and "points".
$query="SELECT * FROM gol_points WHERE name=$name";
$result=mysql_query($query);
$row = mysql_fetch_array($result);
$id=$row[0];
$user= $row[1];
$points= $row[2];
This will NOT work the same as it would if it were WHERE id=$id
Is this an impossible task?