frozenpeas
Technical User
Hello,
I have run into some problems when switching to a server that does not have register_globals enabled. I have tried to adjust my CMS scripts to accomodate this, but am having issues.
When submitting a news item with date, heading, and a small piece of text for the content, it works. It can also be edited (but only to a small extent). I am having issues with larger blocks of text (but well within reason). It appears to submit or edit fine, but nothing is added and no errors are shown.
The news content field in the MySQL db is set as MEDTEXT and this was sufficient before the server switch.
My queries are structured like this:
These lovely problems popped up only when replacing $copy with $_POST['copy'], for example.
Thank you for your help.
Stephen
frozenpeas
--
Micfo.com Affiliate Program
I have run into some problems when switching to a server that does not have register_globals enabled. I have tried to adjust my CMS scripts to accomodate this, but am having issues.
When submitting a news item with date, heading, and a small piece of text for the content, it works. It can also be edited (but only to a small extent). I am having issues with larger blocks of text (but well within reason). It appears to submit or edit fine, but nothing is added and no errors are shown.
The news content field in the MySQL db is set as MEDTEXT and this was sufficient before the server switch.
My queries are structured like this:
Code:
$query = "INSERT INTO sylvie_news(date,heading,copy,poster) VALUES('".$date."','".$_POST['heading']."','".$_POST['copy']."','".$_POST['poster']."')";
Code:
$query = "UPDATE sylvie_news SET heading='".$_POST['heading']."',copy='".$_POST['copy']."',poster='".$_POST['poster']."' WHERE id='".$_GET['id']."'";
These lovely problems popped up only when replacing $copy with $_POST['copy'], for example.
Thank you for your help.
Stephen
frozenpeas
--
Micfo.com Affiliate Program