Thanks for the help Rod and Vincent, here's what I did to 'fix' it...let me know what you think.
<PRE>
// Create Table.
$stmt = "CREATE TABLE $tableName(
BUSINESS VARCHAR(255),
NAME VARCHAR(255),
EMAIL VARCHAR(255),
HOMEPAGE VARCHAR(255),
STREET VARCHAR(255),
CITY VARCHAR(255),
STATE VARCHAR(255),
COUNTRY VARCHAR(255),
ROWID INT PRIMARY KEY AUTO_INCREMENT)");
if (!mysql_query(sprintf($stmt, $tableName), $link)) {
printf(sprintf("Error in executing %s stmt.", $stmt));
printf(sprintf("Error: %d %s", mysql_errno($link), mysql_error($link)));
exit();
}
</PRE>
So in essence I used Vincents idea. 🙂...which is what I had originally, but as Rod said, I should be able to use either method with success? Please note I am using PHP4...🙂
Thanks again and I hope this helps someone else....
Marcel.