Search found 205 matches

by ExtremeGaming
Thu Jan 03, 2013 10:49 pm
Forum: Tutorials
Topic: private message system => can't log in
Replies: 20
Views: 2984

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

The problem isn't with line 10 (completely). The real problem is there is no variable named $result. You need to change your query to $result = query so: [syntax=php] <?php // controleert gebruikersnaam en wachtwoord combinatie en geeft de gebruikers ID. Function validate_credentials($user_name, $us...
by ExtremeGaming
Thu Jan 03, 2013 3:49 pm
Forum: Tutorials
Topic: private message system => can't log in
Replies: 20
Views: 2984

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

You most likely have an undefined variable and your error reporting isn't high enough to display it. You are going to have to post the entire page that contains the form and the processing
by ExtremeGaming
Sun Dec 30, 2012 11:02 pm
Forum: PHP
Topic: cannot edit profile
Replies: 89
Views: 10949

Re: cannot edit profile

Well, for starters, php functions use a comma to seperate arguments, not a period. So change [syntax=php]echo '<ul><li>'. implode('</li><li>'. $errors). '</li></ul>';[/syntax] To [syntax=php]echo '<ul><li>'. implode('</li><li>', $errors). '</li></ul>';[/syntax] The change you made could not possibly...
by ExtremeGaming
Sun Dec 30, 2012 7:13 pm
Forum: Tutorials
Topic: Private Message System help!
Replies: 13
Views: 2118

Re: Private Message System help!

Are there any rows in the database where $_SESSION['user_id'] = 1?
by ExtremeGaming
Sat Dec 29, 2012 5:54 pm
Forum: General Chat
Topic: Merry Christmas
Replies: 10
Views: 2477

Re: Merry Christmas

JelvinJS7 wrote: I'm pretty sure I helped save the world by playing the "Oath to Order" on my Ocarina of Time.

Best. Game. Ever.
by ExtremeGaming
Sat Dec 29, 2012 5:50 pm
Forum: PHP
Topic: Where's my mistake?
Replies: 19
Views: 2619

Re: Where's my mistake?

I don't see the need of editing a file on another server. In fact, I think it's illegal (depending on their TOS). Yes, there are proxy servers out there to mask IP addresses, however an IP block affects the single IP throughout the whole site unless you use another htaccess.
by ExtremeGaming
Sat Dec 29, 2012 5:47 pm
Forum: Tutorials
Topic: Private Message System help!
Replies: 13
Views: 2118

Re: Private Message System help!

Make sure you are including the init.inc.php file correctly, that you are logged in correctly and that you call session_start() in the init.inc.php file. Since it's returning empty, you also need to make sure that the $_SESSION['user_id'] is set and is being used inside the table. If you think it m...
by ExtremeGaming
Sat Dec 29, 2012 2:30 am
Forum: PHP
Topic: Calendar Help
Replies: 1
Views: 514

Re: Calendar Help

You are going to have to be more specific. More importantly, show how your calendar is made and displayed. You can create a column in the table that corresponds to a date like a date column and inside you would put maybe: December 21, 2012 And then an info column: Worst. Apocalypse. Ever. Then your ...
by ExtremeGaming
Fri Dec 28, 2012 8:12 pm
Forum: Suggestions
Topic: OOP
Replies: 1
Views: 1448

OOP

Would love to see some Object-Oriented tutorials ;) It was/is one of the hardest things for me to learn. If you do find a tutorial out there, they don't go into much depth about what things do or are.
by ExtremeGaming
Thu Dec 27, 2012 4:11 pm
Forum: PHP
Topic: Where's my mistake?
Replies: 19
Views: 2619

Re: Where's my mistake?

Ah yes...silly me. You have two forms. So your dropdown will only work if you submit at the top of the page, which will also not allow for editing of the file. Combine the form into one and it will work. Something like this: [syntax=php]<?php if(empty($_POST['seitenauswahl'])) { $edit = "CT/ind...
by ExtremeGaming
Thu Dec 27, 2012 6:22 am
Forum: PHP
Topic: Message after redirect
Replies: 11
Views: 1615

Re: Message after redirect

Why not use the form action attribute to set the form to submit to the same page? It would automatically remove the ?update from the URL
by ExtremeGaming
Wed Dec 26, 2012 10:40 pm
Forum: PHP
Topic: Where's my mistake?
Replies: 19
Views: 2619

Re: Where's my mistake?

There were a few issues I found when running the code on my site. First, textareas take empty spaces very seriously. All that empty space you had between the opening <textarea> and closing </textarea> caused your fopen() issue. Second, you aren't checking if $_POST['seitenauswahl'] even exists. Thir...
by ExtremeGaming
Wed Dec 26, 2012 9:22 pm
Forum: PHP
Topic: Where's my mistake?
Replies: 19
Views: 2619

Re: Where's my mistake?

It means your drop down is not submitting properly. Post the exact code you have for your html form
by ExtremeGaming
Wed Dec 26, 2012 8:30 pm
Forum: PHP
Topic: Where's my mistake?
Replies: 19
Views: 2619

Re: Where's my mistake?

That means, for whatever reason, the $_POST["seitenauswahl"] is not in the post array and your earlier if(empty($edit)) { was taking over. Add print_r($_POST); before the fopen and post whatever is shown
by ExtremeGaming
Wed Dec 26, 2012 7:48 pm
Forum: Tutorials
Topic: Private Message System help!
Replies: 13
Views: 2118

Re: Private Message System help!

I have no idea unless you aren't starting the session or are not logged in. You may have to wait for someone with better eyes than mine :?
by ExtremeGaming
Wed Dec 26, 2012 7:06 pm
Forum: PHP
Topic: Where's my mistake?
Replies: 19
Views: 2619

Re: Where's my mistake?

Remove $edit = $Seite; I'm not sure why that's your problem but it seems it is. Change all $Seite to $edit or vice versa.
by ExtremeGaming
Wed Dec 26, 2012 5:33 pm
Forum: PHP
Topic: Where's my mistake?
Replies: 19
Views: 2619

Re: Where's my mistake?

I'm not too sure I understand you. fwrite() will remove all data on the file you want to edit, then add. Also, remove the variables calling on variables. $Seite is pointless. You can call everything you need by $edit. If you need to edit other files, you need to add more options to your dropdown.
by ExtremeGaming
Wed Dec 26, 2012 5:24 pm
Forum: Tutorials
Topic: Private Message System help!
Replies: 13
Views: 2118

Re: Private Message System help!

It is my guess that your query is failing. Change return $conversations; to return mysql_error(); Then instead of print_r just echo
by ExtremeGaming
Wed Dec 26, 2012 3:07 am
Forum: Tutorials
Topic: User Profiles - Edit Profile Not Working
Replies: 18
Views: 3270

Re: User Profiles - Edit Profile Not Working

I'm not sure why you are editing the function fetch_users(). Or even setting sessions within it, where it should be used for displaying users You are supposed to set the sessions within the function that you are using to login the users [syntax=php]if (empty($errors)){ $_SESSION['username'] = htmlen...
by ExtremeGaming
Tue Dec 25, 2012 10:53 pm
Forum: General Chat
Topic: Merry Christmas
Replies: 10
Views: 2477

Re: Merry Christmas

Temor wrote:This new year will be a good one. I can feel it in my /core!

Programming joke. Ahhh!!! :geek:

Merry christmas to all! :D
by ExtremeGaming
Mon Dec 24, 2012 6:49 am
Forum: PHP
Topic: Message after redirect
Replies: 11
Views: 1615

Re: Message after redirect

It seems rewriting the URL would cause major issues with your whole updating. Major issues that would most likely take an extremely long time to work around. So, another option would probably be good using sessions. Wherever you are running the function, set a session like $_SESSION['update'] = &quo...