Search found 1179 matches

by Temor
Mon Nov 12, 2012 12:35 am
Forum: PHP
Topic: Undefined index:
Replies: 6
Views: 1105

Re: Undefined index:

That is not really an error.
PHP gives you that notice because it doesn't know that $_GET['album'] is set.

You can disable it by setting error reporting to E_ALL &~ E_NOTICE.
Put this at the top of the page.
<?php error_reporting (E_ALL ^ E_NOTICE); ?>
by Temor
Sun Nov 11, 2012 4:12 pm
Forum: Tutorials
Topic: Some trouble with register.php
Replies: 1
Views: 613

Re: Some trouble with register.php

This error occurs when you have an error in your SQL query.
Post all the code that's relevant, not just the last line please :)
by Temor
Sun Nov 11, 2012 4:10 pm
Forum: Other
Topic: [GENERAL] My IP hasn't changed in 3 years...
Replies: 7
Views: 2714

Re: [GENERAL] My IP hasn't changed in 3 years...

Changing an IP takes literally three seconds or less for an ISP employee.

" Klick ", done.

I hope this solved your problems :)
by Temor
Sat Nov 10, 2012 8:53 pm
Forum: Other
Topic: [GENERAL] My IP hasn't changed in 3 years...
Replies: 7
Views: 2714

Re: [GENERAL] My IP hasn't changed in 3 years...

If you give your ISP a call monday morning they will probably be able to assist you with this. I had a similar problem where the static IP I was given had been used for malicious activity, and I suddenly got my accounts banned. I just gave them one quick call and they released a new IP in less than ...
by Temor
Sun Nov 04, 2012 7:55 pm
Forum: General Chat
Topic: So I'm Making a Game
Replies: 67
Views: 10450

Re: So I'm Making a Game

Shoot things.
by Temor
Fri Nov 02, 2012 9:52 pm
Forum: General Chat
Topic: So I'm Making a Game
Replies: 67
Views: 10450

Re: So I'm Making a Game

I'm glad to see you're working on this again. I'm really excited to see where this leads :)
by Temor
Fri Nov 02, 2012 7:28 pm
Forum: SQL
Topic: Jacek's maillinglist tutorial
Replies: 31
Views: 7909

Re: Jacek's maillinglist tutorial

Well, it is the only way I know of to send an email through PHP, but yes, it does require some tinkering on some servers. Most servers have this enabled by default, but if you're using a free host ( or even some payed hosts ) there might be a chance that they block or limit the email function to pre...
by Temor
Thu Nov 01, 2012 10:04 pm
Forum: SQL
Topic: Jacek's maillinglist tutorial
Replies: 31
Views: 7909

Re: Jacek's maillinglist tutorial

well, you could have the mail() function inside your register function.
[syntax=php]function register_user($email,$username,$password){
// Do register type stuff here.

mail($email,'Welcome','Welcome to the site');

return true;
}[/syntax]
by Temor
Tue Oct 30, 2012 10:57 pm
Forum: Tutorials
Topic: PHP blog tut, post and comments fail insert [Solved]
Replies: 17
Views: 3580

Re: PHP blog tut, post and comments fail insert [mostly Solv

Well, your while loop is empty.
[syntax=php] while (($row = mysql_fetch_assoc($comments)) !== false){

}[/syntax]

you need to add the values to the $return array.
[syntax=php] while (($row = mysql_fetch_assoc($comments)) !== false){
$return[] = $row;
}[/syntax]
by Temor
Tue Oct 30, 2012 7:21 pm
Forum: General Chat
Topic: I'm a Huge Criminal
Replies: 22
Views: 3826

Re: I'm a Huge Criminal

This thread got me thinking about the two strikes I got last year, so I went to look at them, and whaddayakno, they're gone! This is wierd. I never appealed or anything, because I was clearly violating copyright. Shouldn't I have gotten an email or something when the strikes were removed? :S All's w...
by Temor
Tue Oct 30, 2012 7:15 pm
Forum: General Chat
Topic: Opinion on site design?
Replies: 8
Views: 1977

Re: Opinion on site design?

When I hear "URL Shortening" I instantly think "minimalistic". Your design looks good, but it's not minimalistic. I think as a URL shortening service, the focus should be on the actual service and not the bookmarklet. Those things should ( in my opinion ) be "hidden" aw...
by Temor
Mon Oct 29, 2012 4:12 pm
Forum: General Chat
Topic: I'm a Huge Criminal
Replies: 22
Views: 3826

Re: I'm a Huge Criminal

Such a shame. They can't possibly suffer any damage from having a video of their software ( if that's the case ). It's free advertisement if anything!

Copyright is an abomination and should be killed with fire.
by Temor
Sun Oct 28, 2012 12:38 pm
Forum: PHP
Topic: problem with showing image gallery
Replies: 3
Views: 838

Re: problem with showing image gallery

could you post the code?
by Temor
Thu Oct 25, 2012 1:43 pm
Forum: SQL
Topic: SQL COUNT
Replies: 10
Views: 2956

Re: SQL COUNT

Sometimes the charset gets messed up even though you set it. Try running it through htmlentities(); [syntax=php]$user_count = user_count(); $user_count = htmlentities($user_count);[/syntax] if that doesn't work, try adding the extra parameters. [syntax=php]$user_count = user_count(); $user_count = h...
by Temor
Thu Oct 25, 2012 1:22 pm
Forum: SQL
Topic: SQL COUNT
Replies: 10
Views: 2956

Re: SQL COUNT

have you given $user_count a value?
[syntax=php]
$user_count = user_count();[/syntax]
by Temor
Thu Oct 25, 2012 10:57 am
Forum: SQL
Topic: SQL COUNT
Replies: 10
Views: 2956

Re: SQL COUNT

You need to rework the last few lines. [syntax=php]function user_count() { return mysql_result(mysql_query("SELECT COUNT(`user_id`) FROM `users`"), 0); } $user_count = $count; $suffix = ($user_count != 1) ? 's' : ''; ?>[/syntax] You need to move the last two lines outside of the file, and ...
by Temor
Wed Oct 24, 2012 8:47 pm
Forum: SQL
Topic: SQL COUNT
Replies: 10
Views: 2956

Re: SQL COUNT

try adding , 0 at the end, like this:
[syntax=php]return mysql_result(mysql_query("SELECT COUNT(`user_id`) FROM `users`"), 0);[/syntax]

does it work?
it should.
by Temor
Wed Oct 24, 2012 8:06 pm
Forum: SQL
Topic: SQL COUNT
Replies: 10
Views: 2956

Re: SQL COUNT

You shouldn't use msql for this. use mysql instead. [syntax=php] return mysql_result(mysql_query("SELECT COUNT(`user_id`) FROM `users`"));[/syntax] and do not use $ before user_count(). you should also not use quotes around it. quotes are meant for strings, not to echo variables or functio...
by Temor
Wed Oct 24, 2012 2:03 pm
Forum: PHP
Topic: Inserting Array into Database?
Replies: 6
Views: 1124

Re: Inserting Array into Database?

FrederickGeek8 wrote:Ooh I could just insert the comma separated tags into the database and when search or outputting, I could just explode it :D

yes.
by Temor
Wed Oct 24, 2012 1:10 pm
Forum: PHP
Topic: Inserting Array into Database?
Replies: 6
Views: 1124

Re: Inserting Array into Database?

You use the explode() function to create an array from a comma separated list. m There are many different methods of getting the array in your database. You could insert is a string using implode() m or you could create a foreach loop and run a query for every tag? ( not very effective, performance ...