Search found 19 matches

by RowruffDesign
Mon Apr 16, 2012 12:54 pm
Forum: General Chat
Topic: PHP Video Tutorial
Replies: 2
Views: 1005

PHP Video Tutorial

Hi guys,

I was wondering if someone knows a site where you can download (paid or free) a lot of video tutorials about PHP. You guys made a lot and I did watch them all! Great tutorials BTW. I was just wondering if there were more sites, to learn different ways and possibilities with PHP.

Greatzzz :D
by RowruffDesign
Wed Apr 11, 2012 5:44 pm
Forum: Tutorials
Topic: PHP Tutorial: Blog (Including Commenting) [part 04]
Replies: 31
Views: 7220

Re: PHP Tutorial: Blog (Including Commenting) [part 04]

Well you did the most part of it :P
by RowruffDesign
Wed Apr 11, 2012 7:13 am
Forum: Tutorials
Topic: PHP Tutorial: Blog (Including Commenting) [part 04]
Replies: 31
Views: 7220

Re: PHP Tutorial: Blog (Including Commenting) [part 04]

Oke, I think I solved it!

It is a strange solution! I just putted some enters behind the code, that's why the error said there were 100 lines. I just removed the lines till line 86. Now it is working fine!

http://rowrufftest.nl/blog_list.php

Try it out yourself ;)

Now it is time for styling!
by RowruffDesign
Tue Apr 10, 2012 10:31 pm
Forum: Tutorials
Topic: PHP Tutorial: Blog (Including Commenting) [part 04]
Replies: 31
Views: 7220

Re: PHP Tutorial: Blog (Including Commenting) [part 04]

I Found the error also really strange!

Tomorrow is a better day :D

Thank you for helping anyway :D
by RowruffDesign
Tue Apr 10, 2012 9:47 pm
Forum: Tutorials
Topic: PHP Tutorial: Blog (Including Commenting) [part 04]
Replies: 31
Views: 7220

Re: PHP Tutorial: Blog (Including Commenting) [part 04]

These are all my codes: comment.inc.php <?php include('core/init.inc.php'); if (isset($_GET['pid'], $_POST['user'], $_POST['body'])) { if (add_comment($_GET['pid'], $_POST['user'], $_POST['body'])) { header("Location: blog_read.php?pid={$_GET['pid']}"); } else { header('Location: blog_list...
by RowruffDesign
Tue Apr 10, 2012 9:35 pm
Forum: Tutorials
Topic: PHP Tutorial: Blog (Including Commenting) [part 04]
Replies: 31
Views: 7220

Re: PHP Tutorial: Blog (Including Commenting) [part 04]

That was just a stupid mistake!

But that wasn't the problem in the code! Still getting the same message!

Is it an idea to put all the code on a website or something? So you can look at all of them!
by RowruffDesign
Tue Apr 10, 2012 7:39 pm
Forum: Tutorials
Topic: PHP Tutorial: Blog (Including Commenting) [part 04]
Replies: 31
Views: 7220

Re: PHP Tutorial: Blog (Including Commenting) [part 04]

Damn, you are amazing! :D Everything is working fine now, except posting a comment Warning: Cannot modify header information - headers already sent by (output started at /home/xridomqb/domains/rowrufftest.nl/public_html/core/inc/posts.inc.php:100) in /home/xridomqb/domains/rowrufftest.nl/public_html...
by RowruffDesign
Tue Apr 10, 2012 2:18 pm
Forum: Tutorials
Topic: PHP Tutorial: Blog (Including Commenting) [part 04]
Replies: 31
Views: 7220

Re: PHP Tutorial: Blog (Including Commenting) [part 04]

That is just the strange thing, because I do got a ID standing in the URL

http://rowrufftest.nl/blog_list.php

I just putted some dummy data in! But if I click the post, you can't visit the post, even knowing there is a ID in the url
by RowruffDesign
Tue Apr 10, 2012 2:00 pm
Forum: Tutorials
Topic: PHP Tutorial: Blog (Including Commenting) [part 04]
Replies: 31
Views: 7220

Re: PHP Tutorial: Blog (Including Commenting) [part 04]

I use this code as blog_read.php. <?php include('core/init.inc.php'); if (isset($_GET['pid'], $_POST['user'], $_POST['body'])) { if (add_comment($_GET['pid'], $_POST['user'], $_POST['body'])) { header("Location: blog_read.php?pid={$_GET['pid']}"); } else { header('Location: blog_list.php')...
by RowruffDesign
Tue Apr 10, 2012 1:14 pm
Forum: Tutorials
Topic: PHP Tutorial: Blog (Including Commenting) [part 04]
Replies: 31
Views: 7220

Re: PHP Tutorial: Blog (Including Commenting) [part 04]

I changed the post_id to pid:
function valid_pid($pid) {
	$pid = (int)$pid;
	
	$total = mysql_query("SELECT COUNT(`post_id`) FROM `posts` WHERE `post_id` = {$pid}");
	$total = mysql_result($total, 0);
	
	if ($total != 1) {
		return false;	
	} else {
		return true;	
	}
}	
by RowruffDesign
Tue Apr 10, 2012 12:29 pm
Forum: Tutorials
Topic: PHP Tutorial: Blog (Including Commenting) [part 04]
Replies: 31
Views: 7220

Re: PHP Tutorial: Blog (Including Commenting) [part 04]

I still can't get by my posts. Still getting the message that it is a invalid post ID. Don't really see what the problem now is! <?php include('core/init.inc.php'); if (isset($_GET['pid'], $_POST['user'], $_POST['body'])) { if (add_comment($_GET['pid'], $_POST['user'], $_POST['body'])) { header(&quo...
by RowruffDesign
Tue Apr 10, 2012 12:26 pm
Forum: Tutorials
Topic: PHP Tutorial: Blog (Including Commenting) [part 04]
Replies: 31
Views: 7220

Re: PHP Tutorial: Blog (Including Commenting) [part 04]

Solved it :D

Thank you very much!
by RowruffDesign
Tue Apr 10, 2012 12:23 pm
Forum: Tutorials
Topic: PHP Tutorial: Blog (Including Commenting) [part 04]
Replies: 31
Views: 7220

Re: PHP Tutorial: Blog (Including Commenting) [part 04]

So i need to use the $post_id if I understand it?

:D
by RowruffDesign
Mon Apr 09, 2012 9:46 pm
Forum: Tutorials
Topic: PHP Tutorial: Blog (Including Commenting) [part 04]
Replies: 31
Views: 7220

Re: PHP Tutorial: Blog (Including Commenting) [part 04]

I don't really see what i'm doing wrong! This is the code I used: function valid_pid($post_id) { $pid = (int)$pid; $total = mysql_query("SELECT COUNT(`post_id`) FROM `posts` WHERE `post_id` = {$pid}"); $total = mysql_result($total, 0); if ($total != 1) { return false; } else { return true;...
by RowruffDesign
Mon Apr 09, 2012 8:35 pm
Forum: Tutorials
Topic: PHP Tutorial: Blog (Including Commenting) [part 04]
Replies: 31
Views: 7220

Re: PHP Tutorial: Blog (Including Commenting) [part 04]

Damn, got another problem now! I have finished the PHP Tutorial: Blog (Including Commenting). When i tried it out everything was working fine, until I tried to watch one of the posts. It gives me the message: Invalid post ID. The error message comes from line 27/28. I think that there is the problem...
by RowruffDesign
Mon Apr 09, 2012 7:35 pm
Forum: Tutorials
Topic: PHP Tutorial: Blog (Including Commenting) [part 04]
Replies: 31
Views: 7220

Re: PHP Tutorial: Blog (Including Commenting) [part 04]

Thank you for helping me out! A little beginner mistake :P

Thanks a lot!
by RowruffDesign
Mon Apr 09, 2012 4:57 pm
Forum: Tutorials
Topic: PHP Tutorial: Blog (Including Commenting) [part 04]
Replies: 31
Views: 7220

Re: PHP Tutorial: Blog (Including Commenting) [part 04]

Thank you for helping me! This is the message I get now: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '{ SELECT `post_id`, COUNT(`comment_id`) AS `total_comments`, ' at line 10 Warning: mysql_fetch_assoc(): supp...
by RowruffDesign
Mon Apr 09, 2012 3:01 pm
Forum: Tutorials
Topic: PHP Tutorial: Blog (Including Commenting) [part 04]
Replies: 31
Views: 7220

Re: PHP Tutorial: Blog (Including Commenting) [part 04]

Files: comment.inc.php | posts.inc.php | blog_list.php These are all the files its about! I hope this will give you a clue about the wrong part in the code Thanks ;) <?php function get_comments($pid) { $pid = (int)$pid; $sql = "SELECT `comment_body` AS `body`, `comment_user` AS `user`, DATE_FOR...
by RowruffDesign
Mon Apr 09, 2012 1:19 pm
Forum: Tutorials
Topic: PHP Tutorial: Blog (Including Commenting) [part 04]
Replies: 31
Views: 7220

PHP Tutorial: Blog (Including Commenting) [part 04]

After I finished part 4 of the tutorial I tried it out in the server But I don't get the same result as on the tutorial! This is the error I get Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/name/domains/website.nl/public_html/core/inc/posts.inc.php on...