Search found 12 matches
- Mon Dec 12, 2011 12:39 am
- Forum: PHP
- Topic: blog_read issue
- Replies: 4
- Views: 917
Re: blog_read issue
I've got it working!! Thanks for everyone's help and patience!!
- Sun Dec 11, 2011 4:28 am
- Forum: PHP
- Topic: blog_read issue
- Replies: 4
- Views: 917
Re: blog_read issue
Shouldn't it be brackets though since that is what shows in the video tutorial in video part 6?
- Sat Dec 10, 2011 11:28 pm
- Forum: PHP
- Topic: blog_read issue
- Replies: 4
- Views: 917
blog_read issue
Hey everyone, I am getting an error "Parse error: syntax error, unexpected ';' in blog_read.php on line 7" when the code looks correct to me..Here is the code: blog_read.php <?php include('core/init.inc.php'); if (isset($_GET['pid'], $_POST['user'], $_POST['body'])) { if (add_comment($_GET...
- Sat Dec 10, 2011 11:24 pm
- Forum: Tutorials
- Topic: blog_list issue
- Replies: 10
- Views: 1840
Re: blog_list issue
Solved the blog_list issue! Thanks everyone!!
- Sat Dec 10, 2011 4:49 am
- Forum: Tutorials
- Topic: blog_list issue
- Replies: 10
- Views: 1840
Re: blog_list issue
I think this is the function you are refering to. Sorry If I did not understand.. function get_posts() { $sql = "SELECT `posts`.`post_id` AS `id`, `posts`.`post_title` AS `title`, LEFT(`posts`.`post_body`, 512) AS `preview`, `posts`.`post_user` AS `user`, DATE_FORMAT(`posts`.`post_date`, '%d-%m...
- Fri Dec 09, 2011 12:27 am
- Forum: Tutorials
- Topic: blog_list issue
- Replies: 10
- Views: 1840
Re: blog_list issue
thanks for pointing that out to me..I some how spaced that..however now I get an error that states "Warning: Invalid argument supplied for foreach() in blog_list.php on line 18" It seems to look fine to me.. :/ <?php include('core/init.inc.php'); ?> <!DOCTYPE html PUBLIC "-//WC3//DTD ...
- Thu Dec 08, 2011 10:52 pm
- Forum: PHP
- Topic: blog_list issue
- Replies: 2
- Views: 503
blog_list issue
Hello! When I watched the tutorial on how to create a blog, on the part 4 video, I am having an issue with the content showing up on the "blog_list.php". For some reason nothing shows on that page where the "get_posts" function should output what is in the database as well as the...
- Wed Dec 07, 2011 7:14 am
- Forum: Tutorials
- Topic: blog_list issue
- Replies: 10
- Views: 1840
Re: blog_list issue
No visible errors..I guess the only error is that the content isn't getting retrieved from the database. I checked the database connection and it seems connected. I think the issue is in the get_posts()" function..I'm not sure though..
- Wed Dec 07, 2011 5:50 am
- Forum: Tutorials
- Topic: blog_list issue
- Replies: 10
- Views: 1840
blog_list issue
Hello again! I am having an issue with the content showing up on my blog_list for the "Test post" and every thing else here are the two files in code: "posts.inc.php" <?php //checks if the given post id is in the table function valid_pid($pid) { $pid = (int)$pid; $total = mysql_q...
- Tue Dec 06, 2011 8:14 pm
- Forum: SQL
- Topic: datetime error for SQL statement in blog tutorial
- Replies: 3
- Views: 3126
Re: datetime error for SQL statement in blog tutorial
Problem solved! Thanks for your time with such a small issue! You're awesome!!
- Tue Dec 06, 2011 8:11 pm
- Forum: SQL
- Topic: datetime error for SQL statement in blog tutorial
- Replies: 3
- Views: 3126
Re: datetime error for SQL statement in blog tutorial
Here is the entire code for the "posts.inc.php" I have only been following along from you're blog tutorial on YouTube to the point where you inserted your query statement in phpmyadmin and for you it worked but for me it came up with the error: "#1064 - You have an error in your SQL s...
- Tue Dec 06, 2011 7:03 pm
- Forum: SQL
- Topic: datetime error for SQL statement in blog tutorial
- Replies: 3
- Views: 3126
datetime error for SQL statement in blog tutorial
Hello, My name is Gene and I have been following the blog tutorials on YouTube in BetterPHP. However when I write the query statement for the function "get_posts", there is an error in my phpmyadmin that says: "#1054 - Unknown column 'd-m-Y H:i:s' in 'field list' " Please help..h...