Search found 18 matches
- Wed Feb 08, 2012 12:11 am
- Forum: PHP
- Topic: PHP Tutorial: Register and Login (User Account System)
- Replies: 1
- Views: 526
PHP Tutorial: Register and Login (User Account System)
Good day, I already did this PHP tutorial and great work we all just that little mistake I can not in any way to eliminate .... Warning: Invalid argument supplied for foreach() in /Applications/XAMPP/xamppfiles/htdocs/password/login.php on line 44 login.php <?ob_start();?> <?php include('core/init.i...
- Wed Feb 01, 2012 11:40 pm
- Forum: PHP
- Topic: blog tutorial need help/part05
- Replies: 16
- Views: 2689
Re: blog tutorial need help/part05
No problem, i find a solution i addTemor wrote:You're gonna have to be patient. Stop spamming. I'm doing this on my spare time while having a job and studying.
top of page <?ob_start();?> and end of the page <?ob_flush();?>
tnx and i hope you not angry,super tutorial.
- Wed Feb 01, 2012 1:03 am
- Forum: PHP
- Topic: blog tutorial need help/part05
- Replies: 16
- Views: 2689
Re: blog tutorial need help/part05
and this is my post.inc.php <?php // preveri če je post id v tabli. 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; } ...
- Wed Feb 01, 2012 1:00 am
- Forum: PHP
- Topic: blog tutorial need help/part05
- Replies: 16
- Views: 2689
Re: blog tutorial need help/part05
and this is my post.inc.php <?php // preveri če je post id v tabli. 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; } }...
- Wed Feb 01, 2012 12:23 am
- Forum: PHP
- Topic: blog tutorial need help/part05
- Replies: 16
- Views: 2689
Re: blog tutorial need help/part05
this won't work. it doesn't make sense to open a new php block without closing the previous one. Remove the second <?php tag and it should work. i remove <?php and still not working... the same error Warning: Cannot modify header information - headers already sent by (output started at /Application...
- Wed Feb 01, 2012 12:16 am
- Forum: PHP
- Topic: blog tutorial need help/part05
- Replies: 16
- Views: 2689
Re: blog tutorial need help/part05
this won't work. it doesn't make sense to open a new php block without closing the previous one. Remove the second <?php tag and it should work. i remove <?php and still not working...[/quote] the same error Warning: Cannot modify header information - headers already sent by (output started at /App...
- Wed Feb 01, 2012 12:14 am
- Forum: PHP
- Topic: blog tutorial need help/part05
- Replies: 16
- Views: 2689
Re: blog tutorial need help/part05
this won't work. it doesn't make sense to open a new php block without closing the previous one.
Remove the second <?php tag and it should work.[/quote]
i remove <?php and still not working...
Remove the second <?php tag and it should work.[/quote]
i remove <?php and still not working...
- Tue Jan 31, 2012 11:56 pm
- Forum: PHP
- Topic: blog tutorial need help/part05
- Replies: 16
- Views: 2689
Re: blog tutorial need help/part06
can you help me? error: Fatal error: Call to undefined function add_comment() in /Applications/XAMPP/xamppfiles/htdocs/blog/blog_read.php on line 6 blog_read.php <?php <?php include('core/init.inc.php'); if (isset($_GET['pid'], $_POST['user'], $_POST['body'])){ if (add_comment($_GET['pid'], $_POST[...
- Tue Jan 31, 2012 11:42 pm
- Forum: PHP
- Topic: blog tutorial need help/part05
- Replies: 16
- Views: 2689
Re: blog tutorial need help/part06
can you help me? error: Fatal error: Call to undefined function add_comment() in /Applications/XAMPP/xamppfiles/htdocs/blog/blog_read.php on line 6 blog_read.php <?php <?php include('core/init.inc.php'); if (isset($_GET['pid'], $_POST['user'], $_POST['body'])){ if (add_comment($_GET['pid'], $_POST[...
- Tue Jan 31, 2012 11:23 pm
- Forum: PHP
- Topic: blog tutorial need help/part05
- Replies: 16
- Views: 2689
blog tutorial need help/part06
can you help me? error: Fatal error: Call to undefined function add_comment() in /Applications/XAMPP/xamppfiles/htdocs/blog/blog_read.php on line 6 blog_read.php <?php <?php include('core/init.inc.php'); if (isset($_GET['pid'], $_POST['user'], $_POST['body'])){ if (add_comment($_GET['pid'], $_POST['...
- Tue Jan 31, 2012 9:55 pm
- Forum: PHP
- Topic: blog tutorial need help/part05
- Replies: 16
- Views: 2689
Re: blog tutorial need help/part05
Thank you 1000 times... :oops: what i missed here? i really suks... not my days--- :? :cry: <?php foreach ($post['comments'] as comment) { ?> <h4>Od<?php echo $comment['user']; ?> ustvarjeno <?php echo $comment['date']; ?></h4> <p><?php echo $comment['body']; ?></p> <hr /> <?php } ?> i get error: P...
- Tue Jan 31, 2012 9:50 pm
- Forum: PHP
- Topic: blog tutorial need help/part05
- Replies: 16
- Views: 2689
Re: blog tutorial need help/part05
you missed a $ before the $pid variable in your sql query. Thank you 1000 times... :oops: what i missed here? i really suks... not my days--- :? :cry: <?php foreach ($post['comments'] as comment) { ?> <h4>Od<?php echo $comment['user']; ?> ustvarjeno <?php echo $comment['date']; ?></h4> <p><?php ech...
- Tue Jan 31, 2012 9:48 pm
- Forum: PHP
- Topic: blog tutorial need help/part05
- Replies: 16
- Views: 2689
Re: blog tutorial need help/part05
you missed a $ before the $pid variable in your sql query. Thank you 1000 times... :oops: what i missed here? i really suks... not my days--- :? :cry: <?php foreach ($post['comments'] as comment) { ?> <h4>Od<?php echo $comment['user']; ?> ustvarjeno <?php echo $comment['date']; ?></h4> <p><?php ech...
- Tue Jan 31, 2012 8:31 pm
- Forum: PHP
- Topic: blog tutorial need help/part05
- Replies: 16
- Views: 2689
Re: blog tutorial need help/part05
Thank you 1000 times...Temor wrote:you missed a $ before the $pid variable in your sql query.
- Mon Jan 30, 2012 11:58 pm
- Forum: PHP
- Topic: blog tutorial need help/part05
- Replies: 16
- Views: 2689
blog tutorial need help/part05
after i do the page blog_list.php a i go and test the page i get this warning: Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in /Applications/XAMPP/xamppfiles/htdocs/blog/core/inc/comments.inc.php on line 17 <?php //puščaš vse objave ki so dane v blogu. function get_...
- Sun Jan 29, 2012 11:37 pm
- Forum: PHP
- Topic: Having trouble with part 04 of blog tutorial
- Replies: 3
- Views: 471
- Sun Jan 29, 2012 11:28 pm
- Forum: PHP
- Topic: Having trouble with part 04 of blog tutorial
- Replies: 3
- Views: 471
Re: Having trouble with part 04 of blog tutorial
i fix code in blog_list.php <?php include('core/init.inc.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <META HTTP-EQUIV="Content-Type" CONTENT=&qu...
- Sun Jan 29, 2012 11:16 pm
- Forum: PHP
- Topic: Having trouble with part 04 of blog tutorial
- Replies: 3
- Views: 471
Having trouble with part 04 of blog tutorial
i stuck here when i run that file... <?php include('core/init.inc.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <META HTTP-EQUIV="Content-Type" CO...