Search found 38 matches

by TehCrayz
Sun Jun 23, 2013 6:24 pm
Forum: Tutorials
Topic: Error in Edit_Profile
Replies: 2
Views: 1204

Re: Error in Edit_Profile

:D When i changed my Country to USA, it worked. But then when i changed it back to UK, i still get the error
by TehCrayz
Sun Jun 23, 2013 2:10 pm
Forum: Tutorials
Topic: Error in Edit_Profile
Replies: 2
Views: 1204

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. m User.inc.php [syntax=...
by TehCrayz
Sun Jun 23, 2013 12:22 am
Forum: PHP
Topic: Session Uid in A href
Replies: 12
Views: 2579

Re: Session Uid in A href

Ok, i'll look back on the tutorial. Thanks. :D
by TehCrayz
Sat Jun 15, 2013 10:26 pm
Forum: PHP
Topic: Session Uid in A href
Replies: 12
Views: 2579

Re: Session Uid in A href

So uh, How can i fix this issue? :)

Sorry, i'm kinda a noob at PHP.
by TehCrayz
Sat Jun 15, 2013 9:47 pm
Forum: PHP
Topic: Session Uid in A href
Replies: 12
Views: 2579

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... :?
by TehCrayz
Sat Jun 15, 2013 9:33 pm
Forum: PHP
Topic: Session Uid in A href
Replies: 12
Views: 2579

Re: Session Uid in A href

What do you mean by that? [syntax=php]<?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...
by TehCrayz
Sat Jun 15, 2013 7:53 pm
Forum: PHP
Topic: Session Uid in A href
Replies: 12
Views: 2579

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/profil ... 20%3Cb%3EC:\xampp\htdocs\Quodec\pictures.php%3C/b%3E%20on%20line%20%3Cb%3E417%3C/b%3E%3Cbr%20/%3E

...I don't get it :/
by TehCrayz
Sat Jun 15, 2013 5:41 pm
Forum: PHP
Topic: Session Uid in A href
Replies: 12
Views: 2579

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...
by TehCrayz
Sat Jun 15, 2013 2:07 pm
Forum: PHP
Topic: Session Uid in A href
Replies: 12
Views: 2579

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...
by TehCrayz
Tue Dec 25, 2012 8:27 pm
Forum: Tutorials
Topic: User Profiles - Edit Profile Not Working
Replies: 18
Views: 3293

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 [syntax=php]<?php //fe...
by TehCrayz
Mon Dec 17, 2012 7:53 am
Forum: PHP
Topic: Search <a href=''>
Replies: 15
Views: 2053

Re: Search <a href=''>

Db.inc.php [syntax=php]<?php mysql_connect('localhost', 'root', 'Hi....'); mysql_select_db('phplogin'); ?>[/syntax] Func.inc.php [syntax=php]<?php include 'db.inc.php'; function search_results($keywords) { $returned_results = array(); $where = ""; $keywords = preg_split('/[\s]+/', $keyword...
by TehCrayz
Sun Dec 16, 2012 4:30 pm
Forum: PHP
Topic: Search <a href=''>
Replies: 15
Views: 2053

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 [syntax=php] <?php include('core/init....
by TehCrayz
Sun Dec 16, 2012 4:15 pm
Forum: PHP
Topic: Search <a href=''>
Replies: 15
Views: 2053

Re: Search <a href=''>

ignore this, this problem has been solved
by TehCrayz
Sun Dec 16, 2012 12:09 pm
Forum: PHP
Topic: Search <a href=''>
Replies: 15
Views: 2053

Re: Search <a href=''>

For some reason, the line you told me to add does something that screws it up.
by TehCrayz
Sun Dec 16, 2012 11:37 am
Forum: PHP
Topic: Search <a href=''>
Replies: 15
Views: 2053

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.. [syntax=php]<?php include 'func.inc.php'; ?> <html> <head> <SCRIPT LANGUAGE="JavaScript"> var message="Function Disabled!"; /////////////////////...
by TehCrayz
Sun Dec 16, 2012 12:28 am
Forum: PHP
Topic: Search <a href=''>
Replies: 15
Views: 2053

Re: Search <a href=''>

Is there a reason why you can't just gather the id from the database? [syntax=php]<?php echo "<a href='profile.php?uid=" .$result['uid']. "'>" .$result['Username']. "</a>"; ?>[/syntax] :O i didn't see it like that! but when i do add ^^^^^^^^^ i get this error Parse err...
by TehCrayz
Sat Dec 15, 2012 9:06 pm
Forum: PHP
Topic: Search <a href=''>
Replies: 15
Views: 2053

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.
by TehCrayz
Sat Dec 15, 2012 9:03 pm
Forum: PHP
Topic: Search <a href=''>
Replies: 15
Views: 2053

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...
by TehCrayz
Sat Dec 15, 2012 11:08 am
Forum: Tutorials
Topic: User Profiles - Edit Profile Not Working
Replies: 18
Views: 3293

Re: User Profiles - Edit Profile Not Working

I havnt been on better php for a while @.@ login.php [syntax=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 ...
by TehCrayz
Tue Dec 11, 2012 4:33 pm
Forum: Tutorials
Topic: User Profiles - Edit Profile Not Working
Replies: 18
Views: 3293

Re: User Profiles - Edit Profile Not Working

How would i do that?