Search found 1179 matches
- Wed May 01, 2013 4:32 pm
- Forum: Tutorials
- Topic: Blog (including comment) Invalid Post ID
- Replies: 3
- Views: 2254
Re: Blog (including comment) Invalid Post ID
I'm not sure I understand your question. What do you mean by not being able to go to that url? Does it redirect you somewhere else or is it just a blank page?
- Wed May 01, 2013 4:29 pm
- Forum: Tutorials
- Topic: Date formatting issue
- Replies: 11
- Views: 2534
Re: Date formatting issue
If you want to.
You don't have to if they are working as they should.
If you do it, it's mostly for consistency ( which is good, but not absolutely necessary ).
You don't have to if they are working as they should.
If you do it, it's mostly for consistency ( which is good, but not absolutely necessary ).
- Wed May 01, 2013 4:27 pm
- Forum: PHP
- Topic: Blog/comments integration with login
- Replies: 1
- Views: 742
Re: Blog/comments integration with login
Yes you can. You can pretty much just copy/paste the code.
- Tue Apr 30, 2013 12:32 pm
- Forum: Tutorials
- Topic: Register and Login Tutorial Help
- Replies: 3
- Views: 1235
Re: Register and Login Tutorial Help
Well, if you've followed the tutorial you would already have a finished working website. All you need to do is move the design from the site without the PHP code ( or move the PHP code to your HTML site, that can be a bit more complicated though ). I believe you're over thinking this a bit. If you h...
- Tue Apr 30, 2013 7:06 am
- Forum: Tutorials
- Topic: Register and Login Tutorial Help
- Replies: 3
- Views: 1235
Re: Register and Login Tutorial Help
It depends on what you mean with "implement" and what your site looks like now.
Adding it is just copy+pasting, not hard at all.
Adding it is just copy+pasting, not hard at all.
- Tue Apr 30, 2013 7:04 am
- Forum: Tutorials
- Topic: Date formatting issue
- Replies: 11
- Views: 2534
Re: Date formatting issue
Do this in comments.inc.php Change the SQL statement in this function get_comments($pid){ $pid = (int)$pid; $sql = "SELECT `comment_body` AS `body`, `comment_user` AS `user`, DATE_FORMAT(`comment_date`, '%a., %b %D, %Y %l: %i %p') AS `date` FROM `comments` WHERE `post_id` = {$pid}"; $comme...
- Mon Apr 29, 2013 9:38 pm
- Forum: Tutorials
- Topic: Date formatting issue
- Replies: 11
- Views: 2534
Re: Date formatting issue
I can't spot what would be causing it, but there is a solution. Remove the formatting from the SQL statement and fetch just the unformatted timestamp, and use the date() function to format it. http://php.net/manual/en/function.date.php This echo date("D, M jS, Y g: i A",$timestamp); will o...
- Sun Apr 28, 2013 10:38 pm
- Forum: Tutorials
- Topic: Date formatting issue
- Replies: 11
- Views: 2534
Re: Date formatting issue
Could you be a bit more descriptive as to what the problem is? Does it not show at all, or does it show the wrong date or format?
Is anything else acting strange or not working?
Is anything else acting strange or not working?
- Thu Apr 18, 2013 6:43 pm
- Forum: Tutorials
- Topic: PHP Tutorial: Blog (Including Commenting) [part 04]
- Replies: 9
- Views: 5073
Re: PHP Tutorial: Blog (Including Commenting) [part 04]
Yes. This is done using the date() function to format the Unix timecode. echo date("d/m/y",$date); this would echo the day/month/year in two digit numeric values. ( 18/04/13 ) date("D/M/Y",$date); this would echo the day/month in text and year in 4 digits. ( Thu/Apr/2013 ) You ca...
- Sun Apr 07, 2013 12:17 pm
- Forum: Tutorials
- Topic: User Account System and Profile System
- Replies: 3
- Views: 4926
Re: User Account System and Profile System
in your set_profile_info function you've missed one backtick after user_password. "UPDATE `users` SET `user_name` = '{$user}', `user_password = '{$pass}' <-- here WHERE `user_id` = {$_SESSION['uid']}";
- Sat Apr 06, 2013 4:24 pm
- Forum: Tutorials
- Topic: User Account System and Profile System
- Replies: 3
- Views: 4926
Re: User Account System and Profile System
I think you forgot to post what errors you get
- Thu Apr 04, 2013 10:07 pm
- Forum: Tutorials
- Topic: User Account System: HTTP Error 500 (Internal Server Error)
- Replies: 14
- Views: 2329
Re: User Account System: HTTP Error 500 (Internal Server Err
I have to say I'm stumped. It's probably a typo somewhere that is the cause.
- Thu Apr 04, 2013 10:00 pm
- Forum: Tutorials
- Topic: PHP Tutorial: Register and Login (User Account System) 3
- Replies: 1
- Views: 1316
Re: PHP Tutorial: Register and Login (User Account System) 3
You should put the end() function around the variable you're passing to the in_array() function. Like this: $page = explode('/', $_SERVER['SCRIPT_NAME']); //Check if a user is on a page that is not in excetpion. If they are not, check if they are logged in. If not send em to login page. if (in_array...
- Thu Apr 04, 2013 2:53 am
- Forum: PHP
- Topic: Trouble in PHP adventures =/
- Replies: 6
- Views: 1250
Re: Trouble in PHP adventures =/
they probably have a firewall or something that blocks that port. they should be able to open it for you.
- Mon Apr 01, 2013 9:12 pm
- Forum: General Chat
- Topic: Bettar spell chek!
- Replies: 4
- Views: 5997
Re: Bettar spell chek!
I did see Google Nose. I also found this one:
- Mon Apr 01, 2013 5:08 pm
- Forum: General Chat
- Topic: Bettar spell chek!
- Replies: 4
- Views: 5997
Bettar spell chek!
So Google made a funny today!
When I saw it I couldn't help myself and burst into laughter. Then I realized what day it is.
When I saw it I couldn't help myself and burst into laughter. Then I realized what day it is.
- Sun Mar 31, 2013 3:10 am
- Forum: General Chat
- Topic: Advertising
- Replies: 6
- Views: 7091
Re: Advertising
Or as a "First post separator". I see a lot of forums using that now and it seems to be working.
- Wed Mar 27, 2013 1:41 pm
- Forum: General Chat
- Topic: Favorite IDE
- Replies: 7
- Views: 6586
Re: Favorite IDE
I no longer like Netbeans.
It broke my Java DK apparently. Now nothing java-related works and I can't re-install JDK because it's too broken to uninstall.
I'll just live with using Sublime for now.
It broke my Java DK apparently. Now nothing java-related works and I can't re-install JDK because it's too broken to uninstall.
I'll just live with using Sublime for now.
- Wed Mar 27, 2013 1:35 pm
- Forum: Tutorials
- Topic: User Account System: HTTP Error 500 (Internal Server Error)
- Replies: 14
- Views: 2329
Re: User Account System: HTTP Error 500 (Internal Server Err
I noticed you're using backticks around variables in user.inc.php. Those should be semi-quotes ( ' ). For example, this: $total = mysql_query("SELECT COUNT(`user_id`) FROM `users` WHERE `user_name` = `{$user}`"); Should be this: $total = mysql_query("SELECT COUNT(`user_id`) FROM `user...
- Wed Mar 27, 2013 1:07 pm
- Forum: Tutorials
- Topic: User Account System: HTTP Error 500 (Internal Server Error)
- Replies: 14
- Views: 2329
Re: User Account System: HTTP Error 500 (Internal Server Err
could you post the updated version of init.inc.php?
- Wed Mar 27, 2013 12:38 pm
- Forum: Tutorials
- Topic: User Account System: HTTP Error 500 (Internal Server Error)
- Replies: 14
- Views: 2329
Re: User Account System: HTTP Error 500 (Internal Server Err
try adding
ob_start();at the very top, before session_start.