Hi-
Problem:
Having trouble inserting text files longer than a few lines into MySQL
although short ones go in fine.
I'm using a form in HTML to get a value for $abstract...
<form method="POST" action="abstract_submit.php">
<textarea name="abstract" rows=20 cols=70></textarea>
</form>
I am then using PHP to insert the information into MySQL...
<<abstract_submit.php>>
<?php
$db = mysql_connect("db.db_name.com", "user", "pass");
mysql_select_db("db_name",$db);
$sql = "INSERT INTO Abstract_DB (abstract) VALUE ('$abstract')";
$result = mysql_query($sql);
?>
When $abstract is relatively short/small (3 or 4 lines) the insertion takes
place without any problem.
THE PROBLEM IS that when a LONG abstract is entered, nothing gets submitted.
Any ideas on what's up with this?
thanks,
Chris
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php