Search found 8 matches
- Tue Feb 21, 2012 1:30 pm
- Forum: Tutorials
- Topic: Blog Tutorial (Invalid ID - blog_read.php)
- Replies: 3
- Views: 1859
Re: Blog Tutorial (Invalid ID - blog_read.php)
Hi, It's working now :) woohoo! Thanks alot. Just 3 questions: 1. Why won't it work without backticks? (It's the first time ive seen this) 2. Do you know another tutorial with a delete function that I can use to delete a comment in the blog? 3. A tutorial for an image upload database that resizes im...
- Mon Feb 20, 2012 11:52 am
- Forum: Tutorials
- Topic: Blog Tutorial (Invalid ID - blog_read.php)
- Replies: 3
- Views: 1859
Blog Tutorial (Invalid ID - blog_read.php)
Hi there, When I run blog_read.php, it says invalid POST ID. I did add echo mysql_error(); in posts.inc.php. When I load the blog_list.php and click on the link (title) it goes to the blog_read.php then it gives me an error message (I attached an image with the error) blog_read.php code: <?php inclu...
- Sun Feb 19, 2012 9:27 pm
- Forum: Tutorials
- Topic: Blog Tutorial (While loop problem)
- Replies: 11
- Views: 1457
Re: Blog Tutorial (While loop problem)
Hi ive found the problem, It was the brackets near mysql_fetch_assoc.
Everything is working now.
Thanks for the help, I really appreciate it.
Everything is working now.
Thanks for the help, I really appreciate it.
- Sun Feb 19, 2012 8:47 pm
- Forum: Tutorials
- Topic: Blog Tutorial (While loop problem)
- Replies: 11
- Views: 1457
Re: Blog Tutorial (While loop problem)
Hi,
Thats one problem solved. It does'nt loop anymore and no errors. Now I have put data into my database, but it's not showing it? It only shows this
"By on
(0 comments, last comment never)".
Any idea?
Thanks
Thats one problem solved. It does'nt loop anymore and no errors. Now I have put data into my database, but it's not showing it? It only shows this
"By on
(0 comments, last comment never)".
Any idea?
Thanks
- Sun Feb 19, 2012 12:39 pm
- Forum: Tutorials
- Topic: Blog Tutorial (While loop problem)
- Replies: 11
- Views: 1457
Re: Blog Tutorial (While loop problem)
Hi, I have changed the all the single quotes to backticks and changed the bacticks near the date formating to normal single quotes. I have also combined the coding onto one page. When i load the page it takes a long time to load, then it gives the same error on the image I previously attached (numbe...
- Wed Feb 15, 2012 9:20 pm
- Forum: Tutorials
- Topic: Blog Tutorial (While loop problem)
- Replies: 11
- Views: 1457
Re: Blog Tutorial (While loop problem)
Hi, I did try to add the echo mysql_error(); , but it gives me the same php error block. I have attached one image (I hope you can view it) with all the error's combined on one image. (Two errors are labelled by number). 1 .When I run the blog_list.php it gives me this error below. Warning: mysql_fe...
- Wed Feb 15, 2012 7:34 pm
- Forum: Tutorials
- Topic: Blog Tutorial (While loop problem)
- Replies: 11
- Views: 1457
Re: Blog Tutorial (While loop problem)
<?php // checks if given id is in table 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; } } // Fetches summary of all blog p...
- Wed Feb 15, 2012 10:08 am
- Forum: Tutorials
- Topic: Blog Tutorial (While loop problem)
- Replies: 11
- Views: 1457
Blog Tutorial (While loop problem)
Hi there, I get an error when 'n run the blog_list.php page. The page takes long to load then it displays the same error in a loop Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in C:\wamp\www\blog_commenting\core\inc\posts.inc.php on line 43" I have only done th...