Search found 38 matches
- Sun Jun 23, 2013 6:24 pm
- Forum: Tutorials
- Topic: Error in Edit_Profile
- Replies: 2
- Views: 1379
Re: Error in Edit_Profile
When i changed my Country to USA, it worked. But then when i changed it back to UK, i still get the error
- Sun Jun 23, 2013 2:10 pm
- Forum: Tutorials
- Topic: Error in Edit_Profile
- Replies: 2
- Views: 1379
Error in Edit_Profile
Ok, after going through the whole tutorial again( http://betterphp.co.uk/board/viewtopic.php?f=7&t=2068 ), i came to a stop by a error which i have received before. On edit_profile, when i click update i get this error. Your location must only contain a-z, 0-9 and spaces. http://gyazo.com/88fdaf...
- Sun Jun 23, 2013 12:22 am
- Forum: PHP
- Topic: Session Uid in A href
- Replies: 12
- Views: 3109
Re: Session Uid in A href
Ok, i'll look back on the tutorial. Thanks.
- Sat Jun 15, 2013 10:26 pm
- Forum: PHP
- Topic: Session Uid in A href
- Replies: 12
- Views: 3109
Re: Session Uid in A href
So uh, How can i fix this issue?
Sorry, i'm kinda a noob at PHP.
Sorry, i'm kinda a noob at PHP.
- Sat Jun 15, 2013 9:47 pm
- Forum: PHP
- Topic: Session Uid in A href
- Replies: 12
- Views: 3109
Re: Session Uid in A href
Ah, so you're trying to say that right now $_SESSION['uid'] isn't getting the IDs from the database??
...
I'm confused...
...
I'm confused...
- Sat Jun 15, 2013 9:33 pm
- Forum: PHP
- Topic: Session Uid in A href
- Replies: 12
- Views: 3109
Re: Session Uid in A href
What do you mean by that? <?php function user_exists($user){ $user = mysql_real_escape_string($user); $total = mysql_query("SELECT COUNT(`ID`) FROM `users` WHERE `Username` = '{$user}'"); return (mysql_result($total, 0) == '1') ? true : false; } function valid_credentials($user, $pass){ $u...
- Sat Jun 15, 2013 7:53 pm
- Forum: PHP
- Topic: Session Uid in A href
- Replies: 12
- Views: 3109
Re: Session Uid in A href
[EDIT] Or, if it doesn't do what's below, it just takes me to uid=1 When i change it to that, i get this in the URL: http://localhost/Quodec/Profiles/profile.php?uid=%3Cbr%20/%3E%3Cb%3ENotice%3C/b%3E:%20%20Undefined%20index:%20uid%20in%20%3Cb%3EC:\xampp\htdocs\Quodec\pictures.php%3C/b%3E%20on%20line...
- Sat Jun 15, 2013 5:41 pm
- Forum: PHP
- Topic: Session Uid in A href
- Replies: 12
- Views: 3109
Re: Session Uid in A href
Basically, on the main page, it says the users name, they click it. It's a drop down, and it says "Profile", and so when they click it, it takes them to their profile. Simple. <a href="*insert thingy here*"><i class="icon-user"></i>Profile</a></li> I just don't know how...
- Sat Jun 15, 2013 2:07 pm
- Forum: PHP
- Topic: Session Uid in A href
- Replies: 12
- Views: 3109
Session Uid in A href
Hello, i havn'nt used php for a while because i gave up. But now im back to give it another try...So i fail straight away and need a solution to this. I have been following the profile tutorial and have a profile on uid 1. But i don't know to be able to make that when i click on profile, it will tak...
- Tue Dec 25, 2012 8:27 pm
- Forum: Tutorials
- Topic: User Profiles - Edit Profile Not Working
- Replies: 18
- Views: 3966
Re: User Profiles - Edit Profile Not Working
When i go to reigstered users page, i keep getting Notice: Undefined variable: username in C:\xampp\htdocs\GameCrayz\Profiles\core\inc\user.inc.php on line 4 Notice: Undefined variable: password in C:\xampp\htdocs\GameCrayz\Profiles\core\inc\user.inc.php on line 4 User.inc.php <?php //fetches all of...
- Mon Dec 17, 2012 7:53 am
- Forum: PHP
- Topic: Search <a href=''>
- Replies: 15
- Views: 2724
Re: Search <a href=''>
Db.inc.php <?php mysql_connect('localhost', 'root', 'Hi....'); mysql_select_db('phplogin'); ?> Func.inc.php <?php include 'db.inc.php'; function search_results($keywords) { $returned_results = array(); $where = ""; $keywords = preg_split('/[\s]+/', $keywords); $total_keywords = count($keyw...
- Sun Dec 16, 2012 10:52 pm
- Forum: PHP
- Topic: Search <a href=''>
- Replies: 15
- Views: 2724
- Sun Dec 16, 2012 4:30 pm
- Forum: PHP
- Topic: Search <a href=''>
- Replies: 15
- Views: 2724
Re: Search <a href=''>
Ok, i had some problems which i was going to post, but i solved them. But now, when i search something. i get a uid error. Your search for Crayz returned 2 results Notice: Undefined index: uid in C:\xampp\htdocs\GameCrayz\Search\index.php on line 55 Profile.php <?php include('core/init.inc.php'); $u...
- Sun Dec 16, 2012 4:15 pm
- Forum: PHP
- Topic: Search <a href=''>
- Replies: 15
- Views: 2724
Re: Search <a href=''>
ignore this, this problem has been solved
- Sun Dec 16, 2012 12:09 pm
- Forum: PHP
- Topic: Search <a href=''>
- Replies: 15
- Views: 2724
Re: Search <a href=''>
For some reason, the line you told me to add does something that screws it up.
- Sun Dec 16, 2012 11:37 am
- Forum: PHP
- Topic: Search <a href=''>
- Replies: 15
- Views: 2724
Re: Search <a href=''>
I've wrote it correctly, yet it still doesn't work. Plus, the last '?>' isn't the color its ment to be, i think i have done an error.. <?php include 'func.inc.php'; ?> <html> <head> <SCRIPT LANGUAGE="JavaScript"> var message="Function Disabled!"; /////////////////////////////////...
- Sun Dec 16, 2012 12:28 am
- Forum: PHP
- Topic: Search <a href=''>
- Replies: 15
- Views: 2724
Re: Search <a href=''>
Is there a reason why you can't just gather the id from the database? <?php echo "<a href='profile.php?uid=" .$result['uid']. "'>" .$result['Username']. "</a>"; ?> :O i didn't see it like that! but when i do add ^^^^^^^^^ i get this error Parse error: syntax error, une...
- Sat Dec 15, 2012 9:06 pm
- Forum: PHP
- Topic: Search <a href=''>
- Replies: 15
- Views: 2724
Re: Search <a href=''>
Also, http://gyazo.com/e812aa6a8463911b23187aff44d0eceb
There's a button, and i would like the user who is logged in to be able to click that button and will take him to HIS profile. Thanks.
There's a button, and i would like the user who is logged in to be able to click that button and will take him to HIS profile. Thanks.
- Sat Dec 15, 2012 9:03 pm
- Forum: PHP
- Topic: Search <a href=''>
- Replies: 15
- Views: 2724
Search <a href=''>
i Have a search function, and on it. i want it to create a link on the users name, to their Specific profile profile.php?uid=(right here, i want it to show their number) This is kind of hard to explain... Basically, when they search for a name, it comes up with the info of the person (done) but i wa...
- Sat Dec 15, 2012 11:08 am
- Forum: Tutorials
- Topic: User Profiles - Edit Profile Not Working
- Replies: 18
- Views: 3966
Re: User Profiles - Edit Profile Not Working
I havnt been on better php for a while @.@ login.php <?php include('core/init.inc.php'); $errors = array(); if (isset($_POST['username'], $_POST['password'])){ if (empty($_POST['username'])){ $errors[] = 'The username cannot be empty.'; } if (empty($_POST['password'])){ $errors[] = 'The password can...
- Tue Dec 11, 2012 4:33 pm
- Forum: Tutorials
- Topic: User Profiles - Edit Profile Not Working
- Replies: 18
- Views: 3966
Re: User Profiles - Edit Profile Not Working
How would i do that?