I've got an Access database where I'm trying to insert a block of text over 255 characters. When I try to execute the following code:
$query = "INSERT INTO $savesection (HEADLINE, SUMMARY, STORY, LINK, STORYDATE, ARCHIVE) VALUES ('$headline', '$summary', '$story', '$templink', '$temp', '0') ";
$stmt = odbc_prepare($link, $query);
if(odbc_execute($stmt)){
print "<h3>Thank you for submitting news</h1>";
}else{
print "<h3>There was an error submitting news item. Please contact web administrator for more help</h3>";
}
the data isn't inserted into the table at all. I've triple checked all field/table names as well as the driver. In fact, it works just fine if I put < 255 characters in the STORY field. Over 255 and it just doesn't do it.
Anyone have any ideas? Thanks in advance.