All works great when I run it manually. I am trying to loop it so that it will send the first batch and then second and so on but I am getting a class error. I know why I am getting the error but I am not sure about how to fix it.
The loop is very simple:
Code: Select all
<?
include 'dbconnect.php';
$queryivhead = "SELECT * FROM ivheadtemp order by CUST_ID ASC";
$result=mysql_query($queryivhead);
$rowivhead = mysql_fetch_assoc($result);
do {
include 'runTestOfAttachment.php';
} while ($rowivhead['CUST_ID'] != "");
?>Code: Select all
$runner = new testofattachment();
Any ideas?