Search found 5 matches

by joc
Sun Oct 09, 2011 12:19 pm
Forum: Tutorials
Topic: problems with blog
Replies: 8
Views: 1413

Re: problems with blog

oh forget about the second problem .. it seems that the code the causes it is the code that i'm trying which is limiting the blog posts on the page by 10 .. you have any idea on how can i do it ? .. i mean .. i want to show only 10 blog entries on the page then i must have the next button to show th...
by joc
Sun Oct 09, 2011 11:58 am
Forum: Tutorials
Topic: problems with blog
Replies: 8
Views: 1413

Re: problems with blog

so you mean i should make $row++ after the $result = $row ? .. could you be more specific please .. i'm new to these stuffs .. im sorry .. here's the page where the posts are being doubled .. <?php include('init.inc.php'); ?> <html> <head></head> <body> <?php $posts = get_posts(); foreach($posts as ...
by joc
Sun Oct 09, 2011 2:38 am
Forum: Tutorials
Topic: problems with blog
Replies: 8
Views: 1413

Re: problems with blog

my comment. inc <?php function get_comments($pid){ $pid = (int)$pid; $sql = "SELECT comment_body AS 'body', comment_user AS 'user', DATE_FORMAT(comment_date, '%d/%m/%Y %H:%i:%s') AS 'date' FROM comments WHERE post_id = {$pid}"; $comments = mysql_query($sql); $return = array(); while (($row...
by joc
Sat Oct 08, 2011 7:04 am
Forum: Tutorials
Topic: problems with blog
Replies: 8
Views: 1413

Re: problems with blog

im also getting double posts in the blog_list.php everytime i post from the form .. do you know what is the cause of this problem ?? .. thanks ..
by joc
Sat Oct 08, 2011 1:08 am
Forum: Tutorials
Topic: problems with blog
Replies: 8
Views: 1413

problems with blog

hi.. im using your blog script and im having problem with the commenting system .. the comments are not showing under the blog entry even though it is being sent to the database can you help me ? .. here are some of my codes .. <?php include('init.inc.php'); if(isset($_GET['pid'], $_POST['user'] , $...