Search found 1179 matches

by Temor
Mon Jul 02, 2012 9:06 pm
Forum: PHP
Topic: Hey I just made this issue...so solve it maybe? - SOLVED
Replies: 29
Views: 4808

Re: Hey I just made this issue...so solve it maybe?

You forgot the last return line. What you have now is : if the information is invalid -> Return false ( Validation failed ). If the information is correct -> Do nothing. You want to return the users ID. That is this line: return mysql_result($result, 0); The entire function should look like this: fu...
by Temor
Mon Jul 02, 2012 8:19 pm
Forum: PHP
Topic: Hey I just made this issue...so solve it maybe? - SOLVED
Replies: 29
Views: 4808

Re: Hey I just made this issue...so solve it maybe?

the same way you post all code.
$result = mysql_query("SELECT `user_id` FROM `users` WHERE `username` = '{$user}' AND `password` = '{$pass}'");
does it look like that? If not, then what does it look like?
by Temor
Mon Jul 02, 2012 7:32 pm
Forum: PHP
Topic: Hey I just made this issue...so solve it maybe? - SOLVED
Replies: 29
Views: 4808

Re: Hey I just made this issue...so solve it maybe?

I tried using <a href="profile.php?uid=<?php echo $_SESSION['uid'];?>"><?= $fgmembersite->UserFullName(); ?></a> and it only returns "id" so i'm getting http://yourtechview.com/source/profile.php?uid=id on two different accounts That is probably due to one of two things. The fir...
by Temor
Mon Jul 02, 2012 6:01 pm
Forum: PHP
Topic: Hey I just made this issue...so solve it maybe? - SOLVED
Replies: 29
Views: 4808

Re: Hey I just made this issue...so solve it maybe?

CheckLogin will only return True or False ( 1 or 0 ) function CheckLogin() { if(!isset($_SESSION)){ session_start(); } $sessionvar = $this->GetLoginSessionVar(); if(empty($_SESSION[$sessionvar])) { return false; } return true; 1 is equal to True 0 is equal to False This code on the other hand should...
by Temor
Mon Jul 02, 2012 2:49 pm
Forum: PHP
Topic: User profile broblem
Replies: 2
Views: 591

Re: User profile broblem

This line needs to have Quotes, not apostrophes. This will try to include {$path}/inc/user.inc.php. And {$path} is not an actual path, it's a variable name. include ('{$path}/inc/user.inc.php') ; This will print the value of the variable, instead of the variable name. include ("{$path}/inc/user...
by Temor
Sun Jul 01, 2012 3:15 am
Forum: Tutorials
Topic: profile editing errors
Replies: 3
Views: 797

Re: profile editing errors

What's wrong with the sessions?
by Temor
Sat Jun 30, 2012 9:21 pm
Forum: Tutorials
Topic: profile editing errors
Replies: 3
Views: 797

Re: profile editing errors

well, this sql statement needs a WHERE clause. $sql = "UPDATE fgusers3 SET `user_email` = `{$email}`, `user_about` = `{$about}`, `user_location` = `{$location}`, `gender` = `{$gender}`, `username` = `{$username}` WHERE `user_id` = {$_SESSION['uid']}"; this will only change the information ...
by Temor
Sat Jun 30, 2012 9:16 pm
Forum: PHP
Topic: External Login for phpBB
Replies: 13
Views: 7795

Re: External Login for phpBB

You're welcome. You're now a little bit more experienced! Next time, you'll check your forms.
Yay to making mistakes! :)
by Temor
Sat Jun 30, 2012 8:21 pm
Forum: PHP
Topic: External Login for phpBB
Replies: 13
Views: 7795

Re: External Login for phpBB

Password is being set, is it not?
This:
d41d8cd98f00b204e9800998ecf8427e
looks like an md5 hash to me :)

The only logical explanation now is that $_POST['username'] and $_POST['email'] never get a value. Make sure there's no typo in the field names in your HTML form.
by Temor
Sat Jun 30, 2012 4:41 pm
Forum: PHP
Topic: External Login for phpBB
Replies: 13
Views: 7795

Re: External Login for phpBB

You misspelled password.
 $passwort = $_POST['password'];
not sure if that would cause it to fail though. If that doesn't fix it, try printing the array.
print_r($user_row);
by Temor
Sat Jun 30, 2012 3:27 pm
Forum: PHP
Topic: External Login for phpBB
Replies: 13
Views: 7795

Re: External Login for phpBB

try removing the last trailing comma.
after this line:
 'user_regdate' => time() 
A comma is an indication that there will be another row, but there isn't one.
by Temor
Fri Jun 29, 2012 11:47 pm
Forum: General Chat
Topic: What to learn next...
Replies: 11
Views: 1821

Re: What to learn next...

I'd suggest you take a look at the twitter bootstrap then. It has all these nifty features bundled into one free package with excellent documentations.
by Temor
Fri Jun 29, 2012 9:08 pm
Forum: General Chat
Topic: What to learn next...
Replies: 11
Views: 1821

Re: What to learn next...

jQuery is nothing more than bundled Javascript functions, so to learn jQuery you need to know at least some Javascript. If web stuff is what you're looking to do, then HTML, CSS, PHP and Javascript is pretty much all you need. There is so much stuff available that there is no way to learn everything...
by Temor
Tue Jun 26, 2012 10:11 pm
Forum: Tutorials
Topic: Register and Login Tutorial problems
Replies: 9
Views: 1789

Re: Register and Login Tutorial problems

you're never closing the foreach loop in register.php. it has an opening curly bracket ( { } ) but no closing one.
by Temor
Tue Jun 26, 2012 11:48 am
Forum: Code
Topic: DAC (Dekaron Admin Control)
Replies: 4
Views: 2936

Re: DAC (Dekaron Admin Control)

Okay :) that's a very nice concept. I like it :)
by Temor
Mon Jun 25, 2012 8:38 pm
Forum: Code
Topic: DAC (Dekaron Admin Control)
Replies: 4
Views: 2936

Re: DAC (Dekaron Admin Control)

I must say, my first impression is good. I've only looked for a minute or so but it's really clean and straight forward, yet very detailed.

I'm not really sure what it's for though so I won't be looking much further.
by Temor
Mon Jun 25, 2012 8:32 pm
Forum: PHP
Topic: Having a bit of an issue inserting into sql.
Replies: 1
Views: 486

Re: Having a bit of an issue inserting into sql.

    add_post($_POST[`user`], $_POST[`title`], $_POST[`body`]);
you are using backticks instead of apostrophes :)
by Temor
Mon Jun 25, 2012 6:20 am
Forum: Tutorials
Topic: Register and Login Tutorial problems
Replies: 9
Views: 1789

Re: Register and Login Tutorial problems

There is a parentheses missing on line 39 login.php
And your problem in register.php is with the loop on line 43.
by Temor
Mon Jun 25, 2012 6:16 am
Forum: PHP
Topic: Compare elements in two arrays
Replies: 2
Views: 446

Re: Compare elements in two arrays

It's working like a charm now. Thank you Jacek ! I had no idea you could run a loop inside a loop. So many things just got so much easier :D
by Temor
Mon Jun 25, 2012 6:02 am
Forum: PHP
Topic: arguement is not valid.
Replies: 5
Views: 1147

Re: arguement is not valid.

 if (isset($_Get['pid']) === false 
It's supposed to be $_GET not $_Get
by Temor
Sun Jun 24, 2012 5:29 pm
Forum: PHP
Topic: Compare elements in two arrays
Replies: 2
Views: 446

Compare elements in two arrays

I have two arrays. One containing each keyword in a search term, and one containing information about the videos matching the search. Array ( [0] => This [1] => is [2] => a [3] => search [4] => term ) Array ( [0] => Array ( [title] => This is a video title. [description] => This is a video descripti...