function rToEdit ($query){ //given a one-record query, creates
October 29, 2006 on 2:17 am | In php |function rToEdit ($query){ //given a one-record query, creates a form to edit that record//works on any table, but allows direct editing of keys//use smartRToEdit instead if you canglobal $dbConn; $output = ?; $result = mysql_query($query, $dbConn); $row = mysql_fetch_assoc($result); //get table name from field object$fieldObj = mysql_fetch_field($result, 0); $tableName = $fieldObj->table; $output .= <<< HERE