| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11
Comments:
<0> ohhhh <1> link() is already a function <0> but can we use link within a function? <0> that means, line 20-24 should have no problems right? <1> right <1> you can nest functions <0> ahhh..so that's where Im going wrong.. <0> okie..i'll make the changes and see if it works.. <0> thanx for the help leeroy :) <1> np <1> hey, with a command like: list($key, $val) = each($filearray); is there a way I can make it start at a specified result and stop after a certian number of results, to make it behave like the start and lim in mysql_query? <2> uhm <2> you want to create a LIMIT for list() = each()? <2> that doesn't make any sense <1> well, I have that inside a for loop, some pages will return 2000+ results so I want to split up to xx per page <2> ok, so use a for loop
<1> I am, for ($max = $startat; $max < 3; $max++) $startat is the page number the user selects but can only get it to show the first three results, and when $startat is increased no results at all. <2> uhm <2> so do 3+$startat <1> ok let me try, one sec <1> now I get no results <2> what'd you change it to? <1> ($max = $startat+3; $max < 3; $max++) <2> sigh <2> think about the logic <1> you mean max < 3+$startat ?? <1> ok, for ($max = $startat; $max < $startat+$perpage; $max++) now its howing the first three results on every page, page numbers are incrementing in 3's <1> $perpage =3 <2> huh? <2> so what's wrong? <1> well it should show the 456th result on the next page <1> sorry, 4th, 5th, 6th <1> not the 1st,2nd,3rd on every page <2> paste your whole code inside a pastebin <1> http://pastebin.com/590734 <1> that for loop is line 180 <2> uhg <2> each() starts at the beginning of the array and works it's way up <2> either you have to next() the right amount of times or find a different method <1> is the next() option viable? <2> no, not really <1> hmm, im looking at php.net/list() they are doing list(blah) = $blaharray is there no way to put a different condition on $blaharray <2> leeroy: $blaharray[$key] <1> when I do that with my code it just shows "arrayarrayarray" ont eh screen <2> list($blah) = $array[0]; <2> plz to http://www.php.net/arrays <3> plz 2 be teaching how to print array??//slash <4> @print_r <5> (PHP 4, PHP 5) <5> bool print_r ( mixed expression [, bool return] ) <5> Prints human-readable information about a variable <5> http://www.php.net/print-r <4> @var_dump <5> (PHP 3 >= 3.0.5, PHP 4, PHP 5) <5> void var_dump ( mixed expression [, mixed expression [, ...]] ) <5> Dumps information about a variable <5> http://www.php.net/var-dump <6> good ****ing morning <7> kthx <0> leeroy just now, you gave me the solution, i changed link() to thislink() but I get this error: Fatal error: Cannot redeclare thislink() (previously declared in /home/shahz/public_html/gallery/UTIL/render.links.inc.php:9) in /home/shahz/public_html/gallery/UTIL/render.links.inc.php on line 9 <1> erm <2> [FerrariF40]: that's kind of self-explanatory <0> evulish why does that happen? <2> .. <2> because it was previously declared <0> ermm..what should I do to overcome it? <2> only declare it once? <2> or rename one of them <0> i dont think thislink() is a PHP common function? <2> is it "hold my **** and help me" day? <2> no, it's not <3> it says that on the calendar <3> followed by "malaysians requesting phpBB help in broken english" day <0> im sorry to bug u guys.. <8> http://pastebin.com/590773 <8> any ideas on the the mouse over innerhtml change doesnt work no more? <3> first of all, you're not escaping your php
<3> or you're not escaping your quotation marks <8> um, it's in an echo ' ' with single quotes. the " double quotes dont need to be escaped. <3> oh i'm seeing it now <8> sorry, i left that out. <9> still pretty fugly ansi <3> yeah <8> tb: i agree. but there's no other way. <9> care to wager? <8> tiko <8> then tell me smart guy. <9> gimme till this afternoon <9> I need to hope in the shower <8> this afternoon? <9> got a meeting in 1.5 hours <8> there's no hope for you. <8> but ok <8> :) <9> now now ansimation lets not forget what nietzche said about hope <8> heh <3> are you getting any javascript errors <3> kind of a dumb question but i don't see anything wrong with the code <3> as much as my eyes hate parsing it because i'm tired <9> here here <9> rather <9> hear hear <9> Meomari... <9> hmm <9> what's that from? <3> sounds like a delicacy <9> that's the name of the chick from escryed isn't it <8> kanis: no, no errors at all. just doesnt work. it works on the one that's uploaded to my site. but locally it doesnt anymore and i don't know why. i havent touched that code. <3> where do you have img_description defined? <3> as in a separate file, or in-file <8> SAME <3> javascript's not my fort but the only issue i've run into with javascript stuff not working locally is I'd be using absolute paths to the file <3> other than that i can't think of anything <3> and my eyes are starting to cross so i'm going to bed <8> <div id="img_description" style="color: white; font-family: tahoma; font-size: small;">These are the last 3 images that were added to my portfolio.<br><br>Click on an image to view it.</div> <3> well wtf then <8> that's what im sayin. <10> i created a registration script which encrypts p***words using md5(); and that works fine, but when i try to log in using those md5(); p***words it wont let me. after they've submitted their username/p***word the p***word gets encrypted to md5() too so it should all work, in theory. but it doesnt. it works when the p***words arent encrypted. <10> it just displays wrong username/p***word <10> anyone got any ideas why it's not working? <8> select * from the database in the console window, and see if the only thing in there is the md5'd p***word <8> it could have a null value in there,w hich will cause it not to work. <10> ansimation - it inputs all the information from the registration form with the p***word md5'ed. <8> !php echo md5('poo'); <11> /usr/local/bin/php-irc: not found <8> !chanset +php <12> Mode change for #php (+php) <8> !php echo md5('poo'); <12> f3ede926587776a8cd79fb2afe4e07b4 <11> /usr/local/bin/php-irc: not found <13> it be broken <6> @php-add ansimation <5> User has been added to PHP command: ansimation <8> tyty <8> !chanset -php <12> Mode change for #php (-php) <10> any ideas then? <8> $a='poo'; $b='f3ede926587776a8cd79fb2afe4e07b4'; if(md5($a)==$b){ echo '1'; } else { echo '0'; } <8> err <8> @php $a='poo'; $b='f3ede926587776a8cd79fb2afe4e07b4'; if(md5($a)==$b){ echo '1'; } else { echo '0'; } <10> so basically check the md5'ed p***word with the database entry via what you said? <8> yah <8> @php $a='poo'; $b='f3ede926587776a8cd79fb2afe4e07b4'; if(md5($a)==$b){ echo '1'; } else { echo '0'; } <10> cool, thanks. <5> Result: 1 <8> @php $a='pooa'; $b='f3ede926587776a8cd79fb2afe4e07b4'; if(md5($a)==$b){ echo '1'; } else { echo '0'; } <5> Result: 0 <14> shouldnt that be a true result? <6> nein! <8> no <14> suppose it wouldnt be the same twice
Return to
#php or Go to some related
logs:
gentoo freefontpath #allnitecafe #php #php #linux awek KL Hunter_Krupter #allnitecafe #allnitecafe konflik mp3
|
|