"; echo ""; if($totalRows_RsMembers > 0){ $Start_Record = 0; $Num_Records = $totalRows_RsMembers; $Current_Record = 0; if(isset($_POST['Start_Record']) && $_POST['Start_Record']!="" && isset($_POST['Num_Records']) && $_POST['Num_Records']!=""){ $Start_Record = $_POST['Start_Record']; $Num_Records = $_POST['Num_Records']; } if(isset($_GET['Start_Record']) && $_GET['Start_Record']!="" && isset($_GET['Num_Records']) && $_GET['Num_Records']!=""){ $Start_Record = $_GET['Start_Record']; $Num_Records = $_GET['Num_Records']; } $totalColumns=mysql_num_fields($RsMembers); do{ if($Current_Record>=$Start_Record){ echo ""; for ($x=0; $x<$totalColumns; $x++) { $field=mysql_field_name($RsMembers, $x); echo "<".$field."><"."![CD"."ATA[".htmlentities($row_RsMembers[$field])."]"."]>".$field.">"; } echo ""; } $Current_Record=$Current_Record+1; if($Current_Record-$Start_Record==$Num_Records){break;} }while ($row_RsMembers = mysql_fetch_assoc($RsMembers)); }else{ //echo ""; } echo ""; die(); } // Recordset to XML (RsAddresses) if (isset($_GET['show_addr'])) { header("Content-type: text/xml"); header("Pragma: public"); header("Cache-control: private"); header("Expires: -1"); $export_RsAddresses=""; if($export_RsAddresses=="1"){ header("Content-Disposition: attachment; filename=recordset.xml"); header("Content-Type: application/force-download"); } echo ""; echo ""; if($totalRows_RsAddresses > 0){ $Start_Record = 0; $Num_Records = $totalRows_RsAddresses; $Current_Record = 0; if(isset($_POST['Start_Record']) && $_POST['Start_Record']!="" && isset($_POST['Num_Records']) && $_POST['Num_Records']!=""){ $Start_Record = $_POST['Start_Record']; $Num_Records = $_POST['Num_Records']; } if(isset($_GET['Start_Record']) && $_GET['Start_Record']!="" && isset($_GET['Num_Records']) && $_GET['Num_Records']!=""){ $Start_Record = $_GET['Start_Record']; $Num_Records = $_GET['Num_Records']; } $totalColumns=mysql_num_fields($RsAddresses); do{ if($Current_Record>=$Start_Record){ echo ""; for ($x=0; $x<$totalColumns; $x++) { $field=mysql_field_name($RsAddresses, $x); echo "<".$field."><"."![CD"."ATA[".htmlentities($row_RsAddresses[$field])."]"."]>".$field.">"; } echo ""; } $Current_Record=$Current_Record+1; if($Current_Record-$Start_Record==$Num_Records){break;} }while ($row_RsAddresses = mysql_fetch_assoc($RsAddresses)); }else{ //echo ""; } echo ""; die(); } ?>
Add a new member