Search found 11 matches
- Sun Aug 10, 2014 12:04 am
- Forum: General Chat
- Topic: jacek
- Replies: 20
- Views: 18012
jacek
Is he ok? He hasn't signed onto the site since last year and he hasn't posted anything on Youtube. If he has a job as a programmer or something I am really happy for him. But I have been wondering if he is alright. I loved his videos, they helped me learn PHP. Without them, I wouldn't have been able...
- Thu Sep 06, 2012 11:41 pm
- Forum: PHP
- Topic: PHP Tutorial: Register and Login (Cookie Extension) [part 01
- Replies: 8
- Views: 1832
Re: PHP Tutorial: Register and Login (Cookie Extension) [par
It's fixed now, thanks!
- Thu Sep 06, 2012 2:36 am
- Forum: PHP
- Topic: PHP Tutorial: Register and Login (Cookie Extension) [part 01
- Replies: 8
- Views: 1832
Re: PHP Tutorial: Register and Login (Cookie Extension) [par
Now I am getting this error with this code: error: Parse error: syntax error, unexpected T_IS_IDENTICAL in /home/a8913488/public_html/login.php on line 18 code: if (valid_credentials($_POST['username'], $_POST['password'])) === false){ $errors[] = 'Username or password is incorrect.'; } user.inc.php...
- Thu Sep 06, 2012 1:38 am
- Forum: PHP
- Topic: PHP Tutorial: Register and Login (Cookie Extension) [part 01
- Replies: 8
- Views: 1832
Re: PHP Tutorial: Register and Login (Cookie Extension) [par
Sorry, I meant this: function valid_credentials($user, $pass){ $user = mysql_real_escape_string(htmlentities($user)); $pass = sha1($pass); $total = mysql_query("SELECT COUNT('user_id') FROM `users` WHERE `user_username` = '{$user}' AND `user_password` = '{$pass}'"); return (mysql_result($t...
- Wed Sep 05, 2012 11:56 pm
- Forum: PHP
- Topic: PHP Tutorial: Register and Login (Cookie Extension) [part 01
- Replies: 8
- Views: 1832
Re: PHP Tutorial: Register and Login (Cookie Extension) [par
if (valid_credentials($_POST['username'], sha1('password'))) === false){ $errors[] = 'Username or password is incorrect.'; } Exactly from the video, also this: if (isset($_COOKIE['username'], $_COOKIE['password'])){ if (valid_credentials($_POST['username'], $_POST['password'])){ $_SESSION['username...
- Wed Sep 05, 2012 12:44 am
- Forum: PHP
- Topic: PHP Tutorial: Register and Login (Cookie Extension) [part 01
- Replies: 8
- Views: 1832
PHP Tutorial: Register and Login (Cookie Extension) [part 01
I typed what the tutorial said, and it says my password and username is incorrect. Here is the code I typed: init.inc.php file: <?php //init.inc.php file session_start(); $exceptions = array('signup', 'login', 'index'); $page = substr(end(explode( '/', $_SERVER['SCRIPT_NAME'])), 0, -4); // SQL stuff...
- Sun Aug 19, 2012 2:19 am
- Forum: Tutorials
- Topic: Parse Error: Profile [part 02]
- Replies: 1
- Views: 728
Parse Error: Profile [part 02]
I keep getting this error: Parse error: syntax error, unexpected T_AS Here is my code: <?php foreach ((fetch_users() as $user){ ?> <p> <a href=""><?php echo $user['username']; ?></a> </p> <?php } ?> I don't see why this is having a problem.
- Sun Aug 19, 2012 2:07 am
- Forum: Tutorials
- Topic: User Profiles [part 02] Fetch_Users() function error.
- Replies: 7
- Views: 1664
Re: User Profiles [part 02] Fetch_Users() function error.
It works. Thanks.
- Sun Aug 19, 2012 12:59 am
- Forum: Tutorials
- Topic: User Profiles [part 02] Fetch_Users() function error.
- Replies: 7
- Views: 1664
Re: User Profiles [part 02] Fetch_Users() function error.
I am still getting the error.
- Sun Aug 19, 2012 12:39 am
- Forum: Tutorials
- Topic: User Profiles [part 02] Fetch_Users() function error.
- Replies: 7
- Views: 1664
Re: User Profiles [part 02] Fetch_Users() function error.
Still getting this error:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/a8913488/public_html/core/inc/user.inc.php on line 13
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/a8913488/public_html/core/inc/user.inc.php on line 13
- Sun Aug 19, 2012 12:26 am
- Forum: Tutorials
- Topic: User Profiles [part 02] Fetch_Users() function error.
- Replies: 7
- Views: 1664
User Profiles [part 02] Fetch_Users() function error.
I keep getting this error when viewing the user_list.php file: Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/a8913488/public_html/core/inc/user.inc.php on line 13 and it says this at the very bottom left: Array() here is the page live: awsomechat.comuv...