Search found 6 matches
- Wed Feb 20, 2013 2:32 pm
- Forum: Tutorials
- Topic: PHP Tutorial: Blog(Including commenting)
- Replies: 10
- Views: 3623
Re: PHP Tutorial: Blog(Including commenting)
http://localhost/blog/blog_read.php?pid=21 gives me 4 errors: ( ! ) Notice: Undefined index: pid in C:\wamp\www\blog\blog_read.php on line 14 Call Stack ( ! ) Notice: Undefined index: pid in C:\wamp\www\blog\blog_read.php on line 17 ( ! ) Notice: Undefined index: title in C:\wamp\www\blog\blog_read....
- Wed Feb 20, 2013 1:35 pm
- Forum: Tutorials
- Topic: PHP Tutorial: Blog(Including commenting)
- Replies: 10
- Views: 3623
Re: PHP Tutorial: Blog(Including commenting)
Removed the === false bit got the same error, I didnt use to have ! but some one suggest it before to see if it would work then
- Wed Feb 20, 2013 9:50 am
- Forum: Tutorials
- Topic: PHP Tutorial: Blog(Including commenting)
- Replies: 10
- Views: 3623
Re: PHP Tutorial: Blog(Including commenting)
blog_read.php <?php include('core/init.inc.php'); ?> <head> <title>Blog</title> </head> <body> <div> <?php if (!isset($_GET['pid']) === false || valid_pid($_GET['pid']) === false){ echo "Invalid post ID."; }else{ $post = get_post($_GET['pid']); ?> <h2><?php echo $post['title']; ?></h2> <h4...
- Mon Feb 18, 2013 10:36 am
- Forum: Tutorials
- Topic: PHP Tutorial: Blog(Including commenting)
- Replies: 10
- Views: 3623
Re: PHP Tutorial: Blog(Including commenting)
<?php include('core/init.inc.php'); ?> <head> <title>Blog</title> </head> <body> <div> <?php if(isset($_GET['pid'])=== false || valid_pid($_GET['pid']) === false){ echo 'Invalid post ID'; }else{ $post = get_post($_GET['pid']); ?> <h2><?php echo $post['title'];?></h2> <h4>By <?php echo $post['user']...
- Sun Feb 17, 2013 9:03 pm
- Forum: Introductions
- Topic: Introducing
- Replies: 1
- Views: 18580
Introducing
Hello, My name is Marco I am dutch live in the Netherlands my nickname on the internet is Jeabs/Jeabus. Comes from the Simpsons where home is drunk once again and says insted of jesus please save me Jeabus. I only recently found this website due the blog tutorial ive been following but I most defini...
- Sun Feb 17, 2013 8:43 pm
- Forum: Tutorials
- Topic: PHP Tutorial: Blog(Including commenting)
- Replies: 10
- Views: 3623
PHP Tutorial: Blog(Including commenting)
Hello, Ive tried to search if the answer was already in this forum or not, or on the youtube comments but I couldnt find it. Basicly my problem occured midway part 5 of the tutorial. blog_read.php page, when I try and run to see if it works I get "Invalid post ID." Any help would be appric...