Hi,
I've been playing with some various options and have made a step forward, but now have a funny error.. here's my code..
<?php require_once('../Connections/OASDB.php');
mysql_select_db($database_OASDB, $OASD😎;
$sql = "SELECT SnPf, InvoiceNo, CustomerName FROM VSTStbl000010 WHERE SnPf = '18490'";
$result = mysql_query($sql) or die(mysql_error());
$INS = array();
while($row = mysql_fetch_assoc($result)) {
$INS[] = $row;
}
foreach( $INS as $row ) {
mysql_query("INSERT INTO phptest (InvoiceNo, CustomerName) VALUES (".$row['InvoiceNo'].", ".$row['CustomerName']."") or die(mysql_error());
}
?>
It is happy with the InvoiceNo, but stalls with a syntax error on the CustomerName...
Any help would be great..
Thanks