|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
PHP -> problem with my newsscript
Ok, I got a problem. I almost finished my news script but there's one bug.. that I can't find. When I try to add a pretty long news (25+ lines), the form just won't submit or it will cut a part of the news somewhere in the process. here are my scripts;
the form: PHP Code:
the addnews function: PHP Code:
my table structure: PHP Code:
TEXT should support 65k+ characters.. so hum.. I can't find what's wrong. (except that I don't really know this warp parameter in the form) maybe it's the POST capacity? hopyfully you can help me, thx |
|
#2
|
|||
|
|||
|
what field is causing the problem????
by the looks of things everything looks ok. If you could tell me that it might narrow it down |
|
#3
|
|||
|
|||
|
a
it's the content part. I can't post a huge text (15+ lines).. :|
but I dunno if its the form or the script, I personnally don't think it's the script.. :| |
|
#4
|
|||
|
|||
|
im at work atm so i cant test your script, but what ill ask you to do is this, on your add news page, add the line
echo $content; and tell me if this prints out everything you typed??? |
|
#5
|
|||
|
|||
|
it shouldn't be the limit of the post size because that's fairly large. try changing your insert statement to this:
$query = "insert into $db_new(titre, content, date, auteur, email) values('$titre', '$content', '$date', '$date', '$_nom', '$_email')"; and the echo $query; just as ben said, is the $content variable showing in its entirety? if not then it's definetly a form problem (unlikely). |
|
#6
|
|||
|
|||
|
k
Ok I tried with this query (without the typos/repeats ;pp) and it looks like it's working (echo's everything and such). I'll confirm this later though. thanks guys
![]() |
|
#7
|
|||
|
|||
|
no probs trunks, that's what we're here for
let me know if it works 100%. sometimes php is weird in that you change one thing and everything works. ![]() |
|
#8
|
|||
|
|||
|
yeah, php can be a bit bitchy sometimes, ive had problems with php, i was rippin my hair out, then i found the problem, a missing "
sometimes you slowly have to go back over your work |
|
#9
|
|||
|
|||
|
confirmation
everything works, yay!
![]() weird that the SET... didn't make it.. heh thanks again ![]() |
|
#10
|
|||
|
|||
|
new prob ;\
new problem, I try not to repeat the same code in all the files, so what I'm doing is require("v_login.php"); to put the verify login function. but it looks like my scripts just dont look if the person's logged in anymore and just displays the page...
here's v_login.php PHP Code:
and here's an example of a script using it.. PHP Code:
anyone know why it's not working? (p.s I tried if (verif_login($wnlogin)) alone and it doesnt work too...) |
|
#11
|
|||
|
|||
|
sorry, I want to put this on top because no one looks at the thread... and I need help.. :P
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > PHP -> problem with my newsscript |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|