Search found 46 matches

by Thunderbob
Sun Jul 22, 2012 6:44 am
Forum: PHP
Topic: private messenging system (not tutorial) solved
Replies: 9
Views: 5565

Re: private messenging system (not tutorial)

solved it

it was the way I was connecting to the db.

thanks guys.
by Thunderbob
Sun Jul 22, 2012 3:02 am
Forum: PHP
Topic: private messenging system (not tutorial) solved
Replies: 9
Views: 5565

Re: private messenging system (not tutorial)

same errors =(

Thanks for taking your time out to help me (just wanted to say it before I forget).
by Thunderbob
Sun Jul 22, 2012 2:46 am
Forum: PHP
Topic: private messenging system (not tutorial) solved
Replies: 9
Views: 5565

Re: private messenging system (not tutorial)

dope! haha thanks now I'm getting this Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/content/66/9481266/html/source/testing.php on line 324 Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/content/66/9481266/html/source/te...
by Thunderbob
Sun Jul 22, 2012 1:45 am
Forum: PHP
Topic: private messenging system (not tutorial) solved
Replies: 9
Views: 5565

private messenging system (not tutorial) solved

Hello forum,Temor and jacek, before I get into my issue I just wanted to say I took Temor's advice and I completely scrapped the old code (that I used from a tutorial online somewhere) and am using a totally new one built from scrap. I decided to get some professional help and picked up a friend nam...
by Thunderbob
Wed Jul 04, 2012 10:14 pm
Forum: PHP
Topic: Hey I just made this issue...so solve it maybe? - SOLVED
Replies: 29
Views: 4768

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

Thank you for your time.
by Thunderbob
Tue Jul 03, 2012 2:12 pm
Forum: PHP
Topic: Hey I just made this issue...so solve it maybe? - SOLVED
Replies: 29
Views: 4768

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

no dice. I just get id at the end =( updated code <?PHP /* Registration/Login script from HTML Form Guide V1.0 This program is free software published under the terms of the GNU Lesser General Public License. http://www.gnu.org/copyleft/lesser.html This program is distributed in the hope that it wil...
by Thunderbob
Tue Jul 03, 2012 12:43 am
Forum: PHP
Topic: Hey I just made this issue...so solve it maybe? - SOLVED
Replies: 29
Views: 4768

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

sorry but it didn't change anything. (also this is the session problem I mentioned having in the other forum topic I posted) I made a discovery which may or may not be useful to you. When I am logged in my account where the user id = 1.... I get this is what shows http://www.yourtechview.com/source/...
by Thunderbob
Mon Jul 02, 2012 8:50 pm
Forum: PHP
Topic: Hey I just made this issue...so solve it maybe? - SOLVED
Replies: 29
Views: 4768

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

I have this function validate_credentials($user, $pass){ $user = mysql_real_escape_string($user); $pass = sha1($pass); $result = mysql_query("SELECT `user_id` FROM `users` WHERE `username` = '{$user}' AND `password` = '{$pass}'"); if (mysql_num_rows($result) != 1){ return false; }
by Thunderbob
Mon Jul 02, 2012 7:43 pm
Forum: PHP
Topic: Hey I just made this issue...so solve it maybe? - SOLVED
Replies: 29
Views: 4768

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

?? How do I post that on the forum? Screenshot? (final sql code) I have 12 fields id_user name email phone_number username password confirmcode user_picture user_about user_location user_gender user_inbox id_user is int with 11 , it is not null, set to auto increment and is primary key. From my unde...
by Thunderbob
Mon Jul 02, 2012 7:17 pm
Forum: PHP
Topic: Hey I just made this issue...so solve it maybe? - SOLVED
Replies: 29
Views: 4768

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
by Thunderbob
Mon Jul 02, 2012 4:47 pm
Forum: PHP
Topic: Hey I just made this issue...so solve it maybe? - SOLVED
Replies: 29
Views: 4768

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

No it didn't work =( I tried using the function checkLogin(); in the fgmembersite.php file but it only returns a 1 now I get a number at the end of the uid= part but it doesn't equal the uid of the user currently logged in. http://yourtechview.com/source/profile.php?uid=1 this is what is inside the ...
by Thunderbob
Sun Jul 01, 2012 11:51 pm
Forum: PHP
Topic: Hey I just made this issue...so solve it maybe? - SOLVED
Replies: 29
Views: 4768

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

HEY HEY HEY I solved it!!

Thanks again for all of the help!
by Thunderbob
Sun Jul 01, 2012 6:30 pm
Forum: PHP
Topic: Hey I just made this issue...so solve it maybe? - SOLVED
Replies: 29
Views: 4768

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

which code?

Also thank you for taking your time in working with me.
You are very much appreciated.
by Thunderbob
Sun Jul 01, 2012 6:05 pm
Forum: PHP
Topic: Hey I just made this issue...so solve it maybe? - SOLVED
Replies: 29
Views: 4768

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

so closeee :shock:

I'm getting http://www.yourtechview.com/source/profile.php?uid=id
it seems that the $_SESSION['uid'] is only resulting in id instead of the logged in user's id.
by Thunderbob
Sun Jul 01, 2012 5:30 pm
Forum: PHP
Topic: Hey I just made this issue...so solve it maybe? - SOLVED
Replies: 29
Views: 4768

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

It seems your new method is working smoothly.

how do I get the href to point to the users own profile page?

this is in access-controlled.php line 96
by Thunderbob
Sun Jul 01, 2012 1:03 pm
Forum: PHP
Topic: Hey I just made this issue...so solve it maybe? - SOLVED
Replies: 29
Views: 4768

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

sure <?PHP session_start(); require_once("./include/membersite_config.php"); if(isset($_POST['submitted'])) { if($fgmembersite->Login()) { $fgmembersite->RedirectToURL("login-home.php"); } } ?> <!DOCTYPE HTML> <!-- Halcyonic 1.0 by nodethirtythree + FCT http://nodethirtythree.com...
by Thunderbob
Sun Jul 01, 2012 12:23 pm
Forum: PHP
Topic: Hey I just made this issue...so solve it maybe? - SOLVED
Replies: 29
Views: 4768

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

I've tried but I just don't know where to put it. <?PHP /* Registration/Login script from HTML Form Guide V1.0 This program is free software published under the terms of the GNU Lesser General Public License. http://www.gnu.org/copyleft/lesser.html This program is distributed in the hope that it wil...
by Thunderbob
Sun Jul 01, 2012 10:46 am
Forum: PHP
Topic: Hey I just made this issue...so solve it maybe? - SOLVED
Replies: 29
Views: 4768

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

by linked I mean when you click it...you are directed to your own profile page. when I click the link.........as of right now I go to www.yourtechview.com/source/profile.php?uid= when their should be a number at the end (my number). www.yourtechview.com/source/user_list.php the links are done correc...
by Thunderbob
Sun Jul 01, 2012 2:23 am
Forum: PHP
Topic: Hey I just made this issue...so solve it maybe? - SOLVED
Replies: 29
Views: 4768

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

whoops! haha
thanks for your consideration.
by Thunderbob
Sun Jul 01, 2012 1:28 am
Forum: Tutorials
Topic: profile editing errors
Replies: 3
Views: 794

Re: profile editing errors

it didn't change anything.
Can I close down this topic and come back to it?

I think this is an issue with the session scripting that I am using.
by Thunderbob
Sun Jul 01, 2012 1:26 am
Forum: PHP
Topic: Hey I just made this issue...so solve it maybe? - SOLVED
Replies: 29
Views: 4768

Hey I just made this issue...so solve it maybe? - SOLVED

Hey guys Here's what I dealing here...and it's quite tough so be prepared to be mind boggled (like me) So I have a login and and profile system on my page that are currently operating on different "platforms". I want to mix the two together seamlessly without completely starting over. If y...