ahh well, sometimes you hit TAB TAB ENTER and it just all slips away....
anyway, my question was going to be :
I am a tad bored of doing the usual :
$sql = "...some SQL query...";
$res = mysql_query($sql);
if($row = mysql_fetch_array($res)){
do {
$var1 = $row[0];
$var2 = $row[1];
$var3 = $row[2];
etc...etc..
is there any way to create a loop that takes the resultset, extracts the field names queried, then assigns $row[x] to $fieldname...I am terminally lazy....