![]() |
RE: Adopts News
Quote:
Quote:
|
RE: Adopts News
Hmm. I haven't tried this out since I changed the database field for detail to LONGTEXT. I'm trying to post news now, and I'm getting an error on add_news.php. I'm guessing that there's an error inserting it into the database.
PHP Code:
Quote:
|
RE: Adopts News
Quote:
And find the '$result' nearest to the line where it says the error is, and place this right after it: die('Invalid query: ' . mysql_error()); |
RE: Adopts News
Quote:
Quote:
|
RE: Adopts News
Quote:
I believe I put stripspalshes in the code, make sure i stripsplashed the name of the poster, the title and the details. |
RE: Adopts News
What part of the code are the stripslash parts in? I can double check just to make sure that they're there etc.
|
RE: Adopts News
Quote:
It would look like this: $something = stripsplash($something) |
RE: Adopts News
Okay, I've looked through the files, and the only file I can find the stripslashes in is news.php. Wouldn't it need to be in add_news.php, being's that's the file that adds news to the database (which the script is having trouble doing?) I downloaded a fresh copy of the zip file, and it's the same in there. Only on news.php
|
RE: Adopts News
Quote:
Anyway, um, what was your problem again? Lol I cant remember. EDIT: This is really wierd, because the sites I installed this on, don't have that error at all, and they have tons of single quotes in their posts o.0 |
RE: Adopts News
Yeah it is weird. I just tried uploading a fresh add_news.php, to see if it would change anything, and nada. Still nothing. The problem was posting articles with single quotes in lol.
|
All times are GMT -5. The time now is 09:50 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.