Search found 38 matches

by Jaami
Sat Dec 10, 2011 7:42 am
Forum: Tutorials
Topic: blog_list issue
Replies: 10
Views: 1609

Re: blog_list issue

change this:[syntax=php] $rows = array(); while (($rows = mysql_fetch_assoc($posts)) !== false) { $rows[] = array( 'id' => $rows['id'], 'title' => $rows['title'], 'preview' => $rows['preview'], 'user' => $rows['user'], 'date' => $rows['date'], 'total_comments' => ($rows['total_comments'] === null) ?...
by Jaami
Fri Dec 09, 2011 7:33 pm
Forum: Tutorials
Topic: Help for Minequery
Replies: 1
Views: 558

Re: Help for Minequery

you didnt close your "if-else" statement: <?php } ?> [syntax=php] <?php include ('core/init.inc.php'); $info = fetch_server_info($config['server']['ip'], $config['server']['port']); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml...
by Jaami
Fri Dec 09, 2011 5:49 am
Forum: Other
Topic: php books
Replies: 8
Views: 1868

Re: php books

I personally can say, that i really dont like learning coding of books. But thats probably, just my little bad experience of trying to learn "C", from some expensive book.. It was to dry and to much theory for me..maybe it was just a bad book, but i lack of a comparison, to tell it so. Wha...
by Jaami
Wed Dec 07, 2011 6:31 am
Forum: Tutorials
Topic: blog_list issue
Replies: 10
Views: 1609

Re: blog_list issue

can you be more precise, please? any error/s? did you checked your db, if it gets your "Test post" correctly?
by Jaami
Tue Dec 06, 2011 11:13 pm
Forum: PHP
Topic: Blog Tutorial + Pagination -some problems..
Replies: 8
Views: 1018

Re: Blog Tutorial + Pagination -some problems..

hah, i did it!! *feels_good_man.jpg* 8-)

it wasn`t actually that bad. just merging the two functions to one..

THANK YOU AGAIN, for your little directive in the right "line"!!
by Jaami
Tue Dec 06, 2011 10:59 pm
Forum: Tutorials
Topic: PHP Tutorial: Blog (Including Commenting) [part 03] #Error#
Replies: 4
Views: 723

Re: PHP Tutorial: Blog (Including Commenting) [part 03] #Er

Line 9, you forgot a "_" in "DATE FORMAT".

[syntax=php]DATE_FORMAT(`Comments`.`lastComment`, '%d/%m/%y %H:%i:%s') AS [/syntax]
by Jaami
Tue Dec 06, 2011 9:55 pm
Forum: Tutorials
Topic: PHP Tutorial: Blog (Including Commenting) [part 03] #Error#
Replies: 4
Views: 723

Re: PHP Tutorial: Blog (Including Commenting) [part 03] #Er

Line 5, you forgot a ","

[syntax=php] LEFT(`Posts`.`postBody`, 512) AS `Preview`,[/syntax]
by Jaami
Tue Dec 06, 2011 8:14 pm
Forum: PHP
Topic: Blog Tutorial + Pagination -some problems..
Replies: 8
Views: 1018

Re: Blog Tutorial + Pagination -some problems..

oh noes..i guess i have to go thru this brain damaging procedure..
by Jaami
Tue Dec 06, 2011 5:06 am
Forum: PHP
Topic: Blog Tutorial + Pagination -some problems..
Replies: 8
Views: 1018

Re: Blog Tutorial + Pagination -some problems..

mmh, i forgot to delete that line. and you didnt change much besides that one line?! so i still have the problem as shown in screenshot..
by Jaami
Mon Dec 05, 2011 9:03 pm
Forum: PHP
Topic: Blog Tutorial + Pagination -some problems..
Replies: 8
Views: 1018

Re: Blog Tutorial + Pagination -some problems..

yeah, i tried that before already, but i get this: edit: picture deleted by me... [syntax=php]<?php include('core/init.inc.php'); $page = (isset($_GET['page'])) ? (int)$_GET['page'] : 1; ?> <?php $post = get_posts(); foreach(fetch_titles($page, 5) as $post){ ?> <div id="titel"> <a class=&q...
by Jaami
Mon Dec 05, 2011 8:23 pm
Forum: PHP
Topic: Blog Tutorial + Pagination -some problems..
Replies: 8
Views: 1018

Blog Tutorial + Pagination -some problems..

hello again, i need some help from you. i would probably solve it on my own..sometime. but, i am frustrated a little bit atm. and maybe you can save me some time and tears.. so i managed to combine these two tutorials, where both using the same db-table and they are even showing up on the same page/...
by Jaami
Mon Nov 28, 2011 8:07 pm
Forum: PHP
Topic: Blog Tutorial Addition. Choose between two videoplayer?
Replies: 3
Views: 409

Re: Blog Tutorial Addition. Choose between two videoplayer?

i solved it!! thank you for your tip with the int(1), also it helped to know that i am not completely wrong with my way.. after trying all kinda different stuff yesterday night being all tired..i didnt even look closely, what did i done there, just posting it here. and all of a sudden i also remembe...
by Jaami
Mon Nov 28, 2011 3:20 pm
Forum: PHP
Topic: Blog Tutorial Addition. Choose between two videoplayer?
Replies: 3
Views: 409

Blog Tutorial Addition. Choose between two videoplayer?

ok, i sucsefully managed to add 1 videoplayer to your "blog tut"-code. ..which i am very proud of myself, after understanding your code and even learned some basics of sql -with my beginner "skills". thank you again! but now i want to choose between 2 different vid_player1.php(ra...
by Jaami
Thu Nov 24, 2011 12:14 pm
Forum: PHP
Topic: Blog Tutorial, Invalid post ID. and other errors..
Replies: 7
Views: 1539

Re: Blog Tutorial, Invalid post ID. and other errors..

i saw that yesterday too, but didnt changed it for some reasons.. hm, but still it shows me "invalid post id".. EDIT: ok, i solved it lol. m was the right link, and not just m ..duh. well it actually didnt work on both links before, because of the other errors. so, THANK YOU VERY MUCH for ...
by Jaami
Thu Nov 24, 2011 1:02 am
Forum: PHP
Topic: Blog Tutorial, Invalid post ID. and other errors..
Replies: 7
Views: 1539

Re: Blog Tutorial, Invalid post ID. and other errors..

Edit: ..ok, i solved the comment problem..with setting also post id to 1....
now only "Invalid post ID"...
Clipboard03.jpg


see attachment
Clipboard02.jpg
Clipboard01.jpg
by Jaami
Thu Nov 24, 2011 12:09 am
Forum: PHP
Topic: Blog Tutorial, Invalid post ID. and other errors..
Replies: 7
Views: 1539

Re: Blog Tutorial, Invalid post ID. and other errors..

hey, that was fast. :)
now i only need some solutions for the "Invalid post ID." + no comments problem..
by Jaami
Wed Nov 23, 2011 11:51 pm
Forum: PHP
Topic: Blog Tutorial, Invalid post ID. and other errors..
Replies: 7
Views: 1539

Blog Tutorial, Invalid post ID. and other errors..

Hello, i am a beginner with all of this, so have some mercy with me please.. After adding a comment in phpmyadmin, it doesn't show up in "blog_list.php". Also when clicking on the "TEST post"-link "blog_read.php?pid=1", i get these errors: " You have an error in yo...