OK spoke too soon All imputed data arrives in mysql, good. But, blogread refuses to display the comments. nothing - doesn't even count them. (or shows zero) blogpost does happily list the number of comments, and last one and when. so, assuming I've understood the logic, the .inc files should be work...
You Goshdarnded Genius yay, bloomin copy and paste. yes forgot to put that in, and i think its the same prob with the comments post. all this time i was worrying about the php (new to me) and it was the flippin' html (not so new) thanks for the kind words, i am fairly persistant, needs some more exp...
yes, the code had changed, i added Temors code (2nd post) I have removed it and the errors have gone however i'm still at square one. not sure if i'm the coding 'sort' i'm getting to think it's a server prob. like i said i have typed a far inferior blog in, similar effect, as soon as i get to a isse...
thanks for dropping by boss. I seem to have had a similar problem with a 'simpler' blog effort. as soon as i get the isset things go pear-shaped. but, to the task in hand, adding E_All seems to have dropped this into the mix; [syntax=text] By Warning: Illegal string offset 'user' in /home/***/htdocs...
You could probably remove the mysql_error part entirely, seeing as you don't have any mysql errors. You don't need the var_dump either since there's obviously nothing wrong with $_POST. have you tried putting dummy data through add_comment to see if it adds the comment as it should? Could I have a ...
^ no effect. 8( just changed the position of the var dump, [syntax=sql] <?php include('core/init.inc.php'); var_dump( $_POST ); if (isset($_GET['pid'], $_POST['user'], $_POST['body'])) { if (add_comment($_GET['pid'], $_POST['user'], $_POST['body'])) { header("Location: blogread.php?pid={$_GET['...
^ sorry mate that returned exactly the same problem of a blank page. i've ran all the pages through the cmd line: $ php -e 'filename' to see if that gets me anywhere, but it returned an 'empty' html I'm using; debian sid with; PHP 5.4.4-7 (cli) (built: Aug 30 2012 11:15:38) Copyright (c) 1997-2012 T...
Hi, i've been typing this blog in for weeks now. (i'm a bit slow) i've worked out a load of errors already - backticks, basic connection etc. (so +1 for not releasing the code) but i'm stumped. i keep scanning the code and watching the youtube vids, but my eyes don't seem to work anymore. in phpmyad...