| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
Comments:
<0> JAJMaster: I probably did some stupid mistake. But here's the new script. (it's broken now) http://pastebin.ca/56129 <1> arachn1d: ouch, that's some painful indenting there <0> JAJMaster: ack, sorry. :( <2> MarkL, solved my problem <2> he is one awesome dude <1> arachn1d: you can ***ign a value to $d outside the while loop, however, your $delete (line 33) needs to be inside your ($d == $id) conditional block <0> JAJMaster: ahh okay, thanks for the heads up. <3> :o <0> JAJMaster: still not workie. <1> arachn1d: gimme a nother pastebin <0> JAJMaster: I really appreciate your help. - http://pastebin.ca/56130 <4> no-one can help ... :-( ... ? <1> arachn1d: what is the value of $id when you compare it to $d? <2> babo, what the heck is the question? <2> just ask it man! <0> JAJMaster: do I check that with echo?
<1> arachn1d: (starting lessson) just look at the code. What is the value of $id the FIRST time the while loop is executed? <4> ratbert90 : I asked it already above ... I can open a connection to my imap server, but I can't get anything intelligible from the result object ... http://pastebin.com/719964 <4> thanks <0> JAJMaster: $id = the mysl_result <0> mysql* <1> arachn1d: another way to ask the same thing: What line number is $id FIRST ***igned a value? <0> $JAJMaster: 40 <1> arachn1d: and at what line number are you FIRST checking it's value? <0> JAJMaster: 35 <1> arachn1d: do you see that as a problem? <0> JAJMaster: yes, it has no value untill later in the loop. <1> arachn1d: bingo! <1> arachn1d: so how would you fix that? <0> JAJMaster: I believe it would still work if I take lines 40-42 outside of the while loop. <0> ait <1> arachn1d: nope. they would need to be INSIDE the loop, just BEFORE your "if" block <0> wait no thats retarded <0> lol <0> Ahh alright <0> JAJMaster: Alright it works. But now something else is weird. The page doesn't load after I press x. I have to re-enter the url. Otherwise it just says "loading..." in the status bar <3> arachn1d: Also, if ($d == $id){ .. when that's true it will perform the DELETE and not do $i++ which means $i < $num will stay as it is <3> arachn1d: i.e after you delete you still need to $i++ <0> ahjh okay <3> That's why it never finishes loading .. infinite loop ;) <0> sweet! <0> Thanks alot guys. I'm finaly learning php. Haha. <0> You don't want to know how many years I've been reading it :( <0> notice years... <3> GwaiLo: Long time no see ;) <4> ratbert90, ?? <5> MarkL: heya :) I take it things are well ? <2> babo, I am looking at it, but I have no clue. I am sorry. <2> =[ <3> GwaiLo: Yeah thanks, a lot better after a year away from ##php ;) And you? <4> ratbert90, ok thanks anyway ... <1> arachn1d: cool. I'm not trying to be critical, but it seems that you could gain a LOT from going through some material on basic programming concepts like looping structures, conditionals, debug output, and binary logic before getting too deep in PHP. It will serve you well in the long run. <5> MarkL: excellent, I'm in the middle of my holiday :) just got back from thailand, and am about to start heading round australia for a week or two :) <3> GwaiLo: I hope you stayed away from those ladyboys <5> MarkL: hehe, successfully stayed away, yes :) Became a scuba addict while I was there though :) <3> Nice <2> babo, have you tried phpfreaks.com? <2> they are usually very helpfull <4> ratbert90: the forums ? <2> heck, the whole site <0> JAJMaster: Yeah, I agree. I just am starting to try out my own simple applications after reading php off and on for a couple years. *shrug* - But now i'm really learning so I'm happy. <6> hi <2> but yeah, the forums are great also <4> ratbert90, I usually use google groups as my backup, but I'll give phpfreaks a go as well ... thanks <2> no prob <1> arachn1d: nothing speeds the ride up the learning curve more than having a project that you would really like to see working, and can use <3> babo: What's the problem? I see nothing wrong with your pastebin code <0> JAJMaster: that's exactly what got me going today, hehe. <4> MarkL: yes, the code is straight out of the 'bible', but it's the result I'm getting that is the problem ... <3> babo: Why? It lists you mailbox .. INBOX ok <3> *your <3> {localhost:144}INBOX is what you'd expect <4> MarkL; hmm ... ok just a sec ... <0> JAJMaster: so to prevent sql injection, I need to type mysql_escape_string in the insert query? <7> ugh...phpfreaks
<5> phpfreaks hasn't died a slow painful death yet ? <8> LOL <7> No, in fact /names shows 3 people in #phpfreaks still <7> I can't believe people are still there. <7> That was like, 2 years ago wasn't it? <7> GwaiLo, kittyanya: Isn't that where we all met anyways? :) <8> yeah, but then it died a horrible painful death at one point when we all left because something disgusted us all <8> I think about someone "accidentally" being banned from the forums, but was done on purposely? <7> Or someone being revoked of their priviledges for no apparent reason. <1> arachn1d: that is the crux of it. It would be good to do a google search and read a few articles on sql injection though, just to cover all your bases. <4> MarkL: arrghh ... it works fine now for some reason ... <4> it didn't work at all yesterday ... <3> babo: :o <3> babo: Ah, that code won't work on Sundays .. it's a known bug <7> I threw away that phpfreaks.com shirt phpfreak sent me for the linuxforum.com logo I made for him. <4> MarkL ok thanks :-) <3> Sunday is PHP's day of rest <4> MarkL: does that take into account DST ? <0> JAJMaster: alright - thanks for all your help <3> babo: Only if register_globals is On <4> MarkL: dammit, I knew it ... <3> ;) <4> :-) <1> arachn1d: glad it's working...brain getting sleepy...must lie down... <7> I think kittyanya's been here longer so she doesn't have to obey the sign :) <8> JAJMaster: I've been coming to ##php since it was #php <1> hehe, just joking. I'm way, way down on the totem pole. <7> kittyanya's been on FreeNode longer than I have :( <1> buck naked of course <7> kittyanya: Did you know Daeken used to totally own my *** for aolbonics? :) <7> Man, memories :P <5> kuja: what's the command for that again ? nickinfo or something ? <8> I think I remember that :P <7> GwaiLo: /msg nickserver info <nick> :) <3> .. /msg nickserv info <nick> <5> ahh <9> Hi, Just wandering if there is a free IDE that is equivalent to Dreamweaver MS 2005 (or better) that wll run on win or even better win / linux / mac <10> Eclipse <9> sorry I mean Dreamweaver MX 2004 <10> oh wait, dreamweaver <10> dreamweaver....macromedia product....macromedia banned freebsd.... <7> IDE...IDE...IDE... since you mentioned it, you have this coming: IDE's **** <10> no idea <9> Eclipse is the kind of thing <9> they banned FreeBSD .. why the hell did they do that <9> IDE's work well for some people <7> I find that emacs/vim works well for all people :) <10> mwright1night: or at least, that's what i heard when it came to flash... <9> I'm not Dreamweaver fan, <7> Once you learn elisp you're unstoppable. <10> kuja; do you even need to learn it? <9> I do vim and I do vi badly <9> but I'm not keen on learning emacs <7> Fushuing: No, but you should if you want to customize emacs <10> i still prefer notepad++ in freebsd though for small hackjobs... <7> Though, usually I'll write my own editor and use it =P <10> though it frequently makes Xorg crash for no apparent reason :/ <1> I've witnessed many multi-million dollar projects coded in nothing but vi <10> i just can't wrap my mind around vi :< <1> fushuing: naw, two or three years, 4 hours a day tops and you'll be an expert :) <10> o.o <1> one of my favorite lines from Groundhog Day "It would take forever to get good at this!" (murray) <11> i still don't get how 'h', 'j', 'k' and 'l' is easier to navigate with <1> (murray) "Naw, 6 months, 2 to three hours a day tops" <7> deadcat: Because it's closer to every other key than the arrows. <10> i actually made art in PHP :S
Return to
#php or Go to some related
logs:
fvwm ubuntu lsb_release: command not found +mpeg321 +download Can't access procfs/sysfs file ubuntu #php qemu nographic serial redirect join two arrays +perl installing ventrilo on ubuntu
vesa:failed to set up write combining range
C compiler cannot create executables in Xubuntu
|
|