Search found 3234 matches

by jacek
Sat Jan 19, 2013 2:24 am
Forum: PHP
Topic: Arguments in XML hierarchy
Replies: 3
Views: 720

Re: Arguments in XML hierarchy

Not really sure what that sample is meant to be doing :? Could you post some sample data and expected result ?
by jacek
Sat Jan 19, 2013 2:19 am
Forum: General Chat
Topic: Get payed by viewing ads everyday
Replies: 3
Views: 1681

Re: Get payed by viewing ads everyday

This post was created with the aim of getting people to click your referral link. Not cool :(
by jacek
Thu Jan 10, 2013 7:55 pm
Forum: PHP
Topic: Watermarking an Image
Replies: 3
Views: 766

Re: Watermarking an Image

[syntax=php]ImageCreateFromPNG("http://i.minus.com/ijp06izjgIy7G.png")[/syntax]
Should work as far as I know. Could you describe the specific problem you are having ?
by jacek
Thu Jan 10, 2013 7:53 pm
Forum: PHP
Topic: Random String Goodyness
Replies: 4
Views: 821

Re: Random String Goodyness

Interesting problem You are actually getting max_length - length as the result. The reason being that array_slice takes three parameters array_slice($array, $start, $length) and you missed off the middle one which made $length behave like $start. to fix this just specify 0 as $start [syntax=php] fun...
by jacek
Thu Jan 10, 2013 7:47 pm
Forum: PHP
Topic: too many redirects
Replies: 5
Views: 1022

Re: too many redirects

Displaying E_NOTICE level errors will help spot this kind of thing, It would have given a message telling you that there was no such variable :)
by jacek
Thu Jan 10, 2013 7:46 pm
Forum: PHP
Topic: mysql_fetch_assoc extension
Replies: 10
Views: 5357

Re: mysql_fetch_assoc extension

Porkypie wrote:The Unknown column... error is gone now but the old error remains.

Did you remove the

[syntax=php]return mysql_error();[/syntax]
? Leaving that there will exit the function block at that point meaning no value ever gets returned.
by jacek
Thu Jan 10, 2013 7:44 pm
Forum: PHP
Topic: cannot edit profile
Replies: 89
Views: 10995

Re: cannot edit profile

[syntax=php]<tbody><tr><td style="width: 100px;"><div align="left"><b>Username:</b></div></td><td><div align="left"><input required="required" name="username" class="login" size="32" type="text"></div></td></tr>[/syntax...
by jacek
Thu Jan 10, 2013 7:41 pm
Forum: PHP
Topic: photo gallery
Replies: 46
Views: 6627

Re: photo gallery

Where you use $image on line 38 above it will not have an array value since you define it as false near the top. I'm not really sure what should be in it's place :/ maybe it should be based on $_GET['image_id'] ? You could keep the value form the loop too, you would just need to use a different vari...
by jacek
Thu Jan 10, 2013 7:30 pm
Forum: Tutorials
Topic: private message system => can't log in
Replies: 20
Views: 2992

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

Not really following this but you're users are not receiving messages it's probably that the insert into `conversations_members` query is failing, which makes sense since you have a typo on this line [syntax=php]$values[] = "({conversation_id}, {$user_id}, 0, 0)";[/syntax] it should be [sy...
by jacek
Thu Jan 10, 2013 7:27 pm
Forum: Tutorials
Topic: Private Message System help!
Replies: 13
Views: 2123

Re: Private Message System help!

Is the table conversations_messages I think mine was conversation_messages, either way try sticking a

[syntax=php]echo mysql_error();[/syntax]
after that mysql_query line.
by jacek
Thu Jan 10, 2013 7:26 pm
Forum: Tutorials
Topic: Private message system page view thingy
Replies: 2
Views: 633

Re: Private message system page view thingy

Sorry for the delay :( You should also be able to do that in the init.inc.php file if you are using it :) Either way is good.
by jacek
Thu Jan 10, 2013 7:20 pm
Forum: Suggestions
Topic: File Attachments with mail() PHP
Replies: 3
Views: 1785

Re: File Attachments with mail() PHP

Didn't I already do this :/ ?
by jacek
Thu Jan 03, 2013 3:13 am
Forum: PHP
Topic: cannot edit profile
Replies: 89
Views: 10995

Re: cannot edit profile

You blindly copied

[syntax=php]if (!isset($_POST["username"])){[/syntax]
you were meant to substitute your variable name :P

the stuff I said about the login system still applied too.
by jacek
Thu Jan 03, 2013 3:11 am
Forum: PHP
Topic: photo gallery
Replies: 46
Views: 6627

Re: photo gallery

The problem seems to be that $images is not given a value before you try to use $images['id'] it could be that you need to assign the result of the function get_images() to this like [syntax=php]$images = get_inages($album_id);[/syntax] Basically you need to follow the variable back from the error u...
by jacek
Thu Jan 03, 2013 3:05 am
Forum: Tutorials
Topic: Private Message System help!
Replies: 13
Views: 2123

Re: Private Message System help!

Shahlin wrote:But my conversations_members table is empty.

That is not good :P Could you post the INSERT query where the users are added to this table ?
by jacek
Thu Jan 03, 2013 2:56 am
Forum: Premium Items
Topic: Should be simple...
Replies: 1
Views: 1694

Re: Should be simple...

Ah, the issue is that it relies on Apache for nice file names in the URL. I'm not sure if IIS has something similar or how it works. When you get redirect to index.html you would actually be viewing index.php?page=index so one option would be to use those directly instead.
by jacek
Thu Jan 03, 2013 1:53 am
Forum: Premium Items
Topic: secure_upload.class
Replies: 9
Views: 5072

Re: secure_upload.class

joeblow wrote:Hi Jacek

what's the specific php extension and where would I find it ?

thanks


Sorry for the delay, the Fileinfo extension would be the best option to go for, info here http://php.net/manual/en/book.fileinfo.php
by jacek
Thu Jan 03, 2013 1:48 am
Forum: General Chat
Topic: And a happy new year!
Replies: 4
Views: 2068

Re: And a happy new year!

I was asleep by 12:30 :P But yes, happy new year :D
by jacek
Sat Dec 29, 2012 2:10 am
Forum: Tutorials
Topic: Private Message System help!
Replies: 13
Views: 2123

Re: Private Message System help!

You may have to wait for someone with better eyes than mine /me enters room An empty array means that the query is technically working but not returning any rows, since it looks like the correct format that probably means the WHERE is faulty. [syntax=sql]`conversations_members`.`conversation_delete...
by jacek
Sat Dec 29, 2012 2:03 am
Forum: PHP
Topic: Where's my mistake?
Replies: 19
Views: 2631

Re: Where's my mistake?

SicX wrote:Ok, best would be using dyndns I think! Because changing everyday the htaccess would... :D
Does htaccess work with IPv6?

Should do, never tested it though. I don't think any routers use IPv6 yet though do they ?
by jacek
Sat Dec 29, 2012 2:01 am
Forum: PHP
Topic: photo gallery
Replies: 46
Views: 6627

Re: photo gallery

The notice error will be about the other variable with "id", $images['id'] so make sure that is being defined correctly ? Also a tip on isset(), you can combine them so instead of [syntax=php]if (isset($var1) && isset($var2)){[/syntax] you can do [syntax=php]if (isset($var1, $var2)...