Yes boobay, the first code pull 100 forms and the second code grabs the form and insert the data into a second table. The problem is only the last record is inserted…not all 100
[code]$res2 = sql_query(“SELECT * FROM memtable WHERE m_state
LIKE CONVERT( _utf8 ‘Florida’ USING latin1 )
COLLATE latin1_swedish_ci AND m_city
LIKE CONVERT( _utf8 ‘%orlando%’ USING latin1 )
COLLATE latin1_swedish_ci AND m_confirmed !=0 AND m_type =1 LIMIT 100”);
echo “
Blast Processing Center
”;
echo “”;
while ($row = mysql_fetch_array($res2, MYSQL_BOTH))
{
if ($i%6==0){
echo “”;
}
echo ("
Sender:
Receipient:
Subj:
Text: looking to read bout what BCF finest has to say bout me or what would like do with me, holla
Time:
IP:
Status:
Read: ");
$i++;
}
[/code]
CODE 2: Blast_Sent.php
This one grab the 100 records and insert them to a new table
php
[code]
$msg_sender = $row[‘msg_sender’];
$msg_recip = $row[‘msg_recip’];
$msg_subj = $row[‘msg_subj’];
$msg_text = $row[‘msg_text’];
$msg_time = $row[‘msg_time’];
$msg_ip = $row[‘msg_ip’];
$msg_status = $row[‘msg_status’];
$msg_read = $row[‘msg_read’];
$username="";
$password="";
$database="";
$conn = mysql_pconnect("$location","$username","$password");
if (!$conn) die (“Could not connect to MySQL”);
mysql_select_db($database,$conn) or die (“Could not open database”);
$query = “INSERT INTO rate_messages (msg_sender,msg_recip,msg_subj,msg_text,msg_time,msg_ip,msg_status,msg_read)
VALUES (’$msg_sender’,’$msg_recip’,’$msg_subj’,’$msg_text’,’$msg_time’,’$msg_ip’,’$msg_status’,’$msg_read’)”;
$result=mysql_query($query) or die ("Could not complete query because ".mysql_error());
mysql_close();[/code]