Search found 205 matches

by ExtremeGaming
Sun Jan 13, 2013 3:02 am
Forum: PHP
Topic: cannot edit profile
Replies: 89
Views: 10949

Re: cannot edit profile

Is the "Password" column actually Uppercase P or is it like "username"?
by ExtremeGaming
Sat Jan 12, 2013 7:34 pm
Forum: General Chat
Topic: And a happy new year!
Replies: 4
Views: 2066

Re: And a happy new year!

KnightMaire wrote:Most people are like "Oh gosh, i need to follow my New Year's Resolution!".

I'm like "Alright Me, remember its one-three now, not one-two".


:lol:
by ExtremeGaming
Sat Jan 12, 2013 7:31 pm
Forum: Tutorials
Topic: Login/Register doesn't work
Replies: 7
Views: 1671

Re: Login/Register doesn't work

There could be a conflict caused by you registering the user with htmlentities and logging in without it. That would convert characters like < to &lt; and login would just be looking for <. Second possibility is, your query is failing. You can try running the query on another page and add [synta...
by ExtremeGaming
Sat Jan 12, 2013 4:26 pm
Forum: PHP
Topic: cannot edit profile
Replies: 89
Views: 10949

Re: cannot edit profile

Did you even try what I said?
by ExtremeGaming
Sat Jan 12, 2013 4:26 pm
Forum: Tutorials
Topic: Blog (including commenting) part 04
Replies: 5
Views: 1390

Re: Blog (including commenting) part 04

You are missing a closing } for your get_comments() function which should be after return $return;
by ExtremeGaming
Sat Jan 12, 2013 12:04 am
Forum: PHP
Topic: cannot edit profile
Replies: 89
Views: 10949

Re: cannot edit profile

I'm not really sure how any sessions are being set at all. Look at your query in login.php and look at what your WHERE clause
by ExtremeGaming
Fri Jan 11, 2013 9:45 pm
Forum: PHP
Topic: cannot edit profile
Replies: 89
Views: 10949

Re: cannot edit profile

I highly doubt you have two columns for their username. Is the column in the table "users" called Username or username. Edit all your queries to select which one it is.
by ExtremeGaming
Fri Jan 11, 2013 4:46 pm
Forum: PHP
Topic: Watermarking an Image
Replies: 3
Views: 755

Re: Watermarking an Image

The php functions imagesx(); and imagesy(); needs an image source to work such as one from imagecreatetruecolor(); I assume you are using a link. For more information you can check out imagesx() and imagesy() or even getimagesize(); although that would require a bit more work in getting height and w...
by ExtremeGaming
Fri Jan 11, 2013 4:38 pm
Forum: PHP
Topic: cannot edit profile
Replies: 89
Views: 10949

Re: cannot edit profile

I notice in your login page you are selecting Username and username from other places. Column names are case-senstive. You need to fix your queries to either work off Username or username. Which ever is your column in the database.
by ExtremeGaming
Thu Jan 10, 2013 2:35 am
Forum: PHP
Topic: Random String Goodyness
Replies: 4
Views: 807

Re: Random String Goodyness

I believe it won't work with specifying 0 because php will assume you mean the max (I think). a-z and 0-9 always adds up to 36 which supports that theory.
by ExtremeGaming
Tue Jan 08, 2013 12:41 pm
Forum: Tutorials
Topic: private message system => can't log in
Replies: 20
Views: 2984

Re: private message system => can't log in

[syntax=php]if (isset($_POST['to'], $_POST['subject'], $_post['body'])){[/syntax]
$_POST is case-sensitive, change $_post to $_POST as it will always return false the way you have it.
by ExtremeGaming
Tue Jan 08, 2013 12:02 am
Forum: Tutorials
Topic: private message system => can't log in
Replies: 20
Views: 2984

Re: private message system => can't log in

First try changing your query to this: [syntax=php]$sql = "select `conversations`.`conversation_id`, `conversations`.`conversation_subject`, max(`conversations_messages`.`message_date`) as `conversation_last_reply`, max(`conversations_messages`.`message_date`) > `conversations_members`.`convers...
by ExtremeGaming
Mon Jan 07, 2013 2:36 am
Forum: PHP
Topic: mysql_fetch_assoc extension
Replies: 10
Views: 5344

Re: mysql_fetch_assoc extension

Ok. That's to be expected. My bad But in user_list.php: somewhere in the top of the file, doesn't matter where as long as it is before the foreach and after the include(); and within the php tags but put: [syntax=php]echo fetch_users();[/syntax] Note that you will still get the foreach error, but an...
by ExtremeGaming
Mon Jan 07, 2013 2:30 am
Forum: Tutorials
Topic: private message system => can't log in
Replies: 20
Views: 2984

Re: private message system => can't log in

Remove the line completely that says:
[syntax=php]return mysql_error();[/syntax]
by ExtremeGaming
Mon Jan 07, 2013 12:17 am
Forum: Tutorials
Topic: private message system => can't log in
Replies: 20
Views: 2984

Re: private message system => can't log in

You need to post your fetch_conversation_summery() function. Make sure it's returning an array.
by ExtremeGaming
Mon Jan 07, 2013 12:13 am
Forum: PHP
Topic: mysql_fetch_assoc extension
Replies: 10
Views: 5344

Re: mysql_fetch_assoc extension

For the first error, you need to post your fetch_users() function. Make sure it is returning an array.

For the second error, your turnery operator needs an opening parenthesis (

[syntax=php]<p>Geslacht: <?php echo ($user_info['gender'] == 1) ? 'Man' : 'Vrouw'; ?></p>[/syntax]
by ExtremeGaming
Mon Jan 07, 2013 12:09 am
Forum: PHP
Topic: Email attachments
Replies: 9
Views: 1353

Re: Email attachments

Other than there being no variables called $filename and $fileContent?
by ExtremeGaming
Mon Jan 07, 2013 12:07 am
Forum: PHP
Topic: too many redirects
Replies: 5
Views: 1009

Re: too many redirects

Make sure you put a:
[syntax=php]die;[/syntax]
below every header redirect.

This might also be some htaccess problem? There really is no definite answer until we can see something.
by ExtremeGaming
Sun Jan 06, 2013 1:16 am
Forum: PHP
Topic: mysql_fetch_assoc extension
Replies: 10
Views: 5344

Re: mysql_fetch_assoc extension

It means your query is failing. Change it to this. [syntax=php]Function fetch_users(){ $result = mysql_query('select `user_id` as `id`, `user_username` as `username` from `users`'); return mysql_error(); $users = array(); while (($row = mysql_fetch_assoc($result)) !== false){ $users[] = $row; } retu...
by ExtremeGaming
Sun Jan 06, 2013 1:13 am
Forum: Tutorials
Topic: private message system => can't log in
Replies: 20
Views: 2984

Re: private message system => can't log in

Post the login file, as well as the files that is uses (functions, processing, etc.)
by ExtremeGaming
Fri Jan 04, 2013 4:33 am
Forum: Tutorials
Topic: private message system => can't log in
Replies: 20
Views: 2984

Re: private message system => can't log in

$user_user here:
[syntax=php]
$user_name = mysql_real_escape_string($user_user);[/syntax]
Should be $user_name