Hey,
I have the following query which I would like to insert into another table which I guess would demand some kind of loop or such.
The query:
$colname_GetName = "-1";
if (isset($_SESSION['MM_Username'])) {
$colname_Name = $_SESSION['MM_Username'];
}
mysql_select_db("db_name");
$query_Recordset = sprintf("SELECT * FROM Table WHERE UserName = %s", GetSQLValueString($colname_GetName, "text"));
$Recordset = mysql_query($query_Recordset) or die(mysql_error());
$row_Recordset = mysql_fetch_assoc($Recordset);
$totalRows_Recordset = mysql_num_rows($Recordset);
I would like to loop through and insert all values for $row_Recordset, $row_Recordset etc into a new table.