@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19



Comments:

<0> You are not being annoying man. I 'm doing this out of good will. If you were annoying I would'nt be talking to you in the first place :) Really, don't take it personally
<1> how could I set the default value of an argument in a function? So when you call the function, you don't have to specify the argument if the default is fine
<0> mejobloggs: function ($arg1='foo', $arg2='bar', $arg3)
<2> mejobloggs: $argument = 'value'
<3> mejobloggs, ($x=false){ if($x){ do stuff}
<0> mejobloggs: in that example arg1 and arg2 have default values
<4> mejobloggs: you should keep args with default values at the end
<5> ZaphodBeeblebrox hey i found out the trouble hehehe
<4> therefore, also making them optional
<5> i found it
<0> fastidioso: I'm glad you did, man
<5> heheeh was easy
<0> :)
<6> can you help me now please?
<5> yeah but now is missing something
<5> its printing SELECT channel, user_count, phone FROM chan, ison, friends



<3> ZEUGMA, only if you ask the question (not to ask)
<6> http://pastebin.com/729244
<6> this is what i have
<7> Hi again
<6> how could i put links to each line?
<5> he stop on line 21
<7> any basic tutorial on how to transfer files? I want to transfer some images to a given directory
<7> anyone knows a basic tutorial
<7> ?
<3> ZEUGMA, why you imploding ??, why not just do a foreach on it, foreach($x as $y){ echo "\n $y"; }
<1> anyone here use phpeclipse?
<4> like file upload?
<6> isn't implode a good way?
<5> brb
<6> i don't want to upload
<5> i have to do the # 2
<4> danf_1979: like uploading files?
<3> ZEUGMA, if it comes out as an array why not use the array instead of sticking it all into 1 giant string ?
<7> yep
<8> danf_1979: php.net/features.file-upload
<7> thanks, I'll take a look
<6> yes, it comes from an array
<6> so what do you recommend?
<3> use the array, foreach/for it
<8> I'd probably echo join(), myself, but *shrug*
<6> foreach($x as $y){ echo "\n $y"; }
<6> what is x and y in my case?
<8> ZEUGMA: php.net/foreach
<6> i just have $results to echo
<9> ZEUGMA: php.net/foreach, look at the examples
<4> !tell flashbang about guidelines
<9> it's not hard, experiment, we're not going to spoonfeed you
<8> itrebal: ?
<10> How's everyone doing tonight
<4> TML: i'm talking to him in another channel and wanted to know the guidelines, so i told him
<6> i don't see the examples ressemble my case
<8> I see
<6> i don't have 2 variables
<3> Alystair, its 6am, all time is wrong if it isnt UTC
<6> just 1 to show
<8> ZEUGMA: There's an example which fits your case PRECISELY
<11> hey all!
<6> which one?
<11> could somebody help me out with this code.. I'm trying to debug / fix a program, but I'm not even sure what it's trying to do: http://pastebin.com/729263
<5> im back
<8> ZEUGMA: You're joking, right?
<11> i.e., do I have to feed it $db_type ?
<5> now the trouble is on the query :)
<5> ZaphodBeeblebrox ya there?
<8> OrangeSun: Is this Drupal code?
<12> Do I have to do anything to special to use a function defined in an include(); file?
<8> threat: No
<12> oh
<3> OrangeSun, your trying to fix Drupal ?
<11> Keloran: indeed.
<11> TML: it is kinda drupal code.
<12> TML, hmmm well I am returning the returned value of array_map()
<11> a module
<0> fastidioso: from the http://channels.debian.net/paste/2587 link I see you are not closing your where clause
<12> TML, any thing special there? :)
<8> OrangeSun: Then you need to talk to Drupal developers. ##PHP doesn't do third-party support.



<0> fastidioso: it should have a closing '}' there
<8> threat: No
<11> tml: Well, it's 'third party' to drupal, too.
<11> this is by no means core drupal.
<12> TML, ok thank you
<12> hmmm
<5> ZaphodBeeblebrox lete me c
<4> OrangeSun: while still being third party to us
<11> itrebal: i.e., I didn't write it?
<4> right
<8> OrangeSun: But it appears to make use of Drupal framework code, which we don't know/use.
<4> bed time, way past, night
<11> TML: gotcha.
<13> see ya
<5> ZaphodBeeblebrox check there $sql = " SELECT channel, user_counts, phone FROM chan, ison, friends ";
<8> OrangeSun: I'm pretty sure drupal has fora for support of people writing to the Drupal framework.
<5> the php say that there is the trouble
<3> fastidioso, your trying to select from 3 tables ?
<8> !tell fastidioso about sql
<3> why not just join them ?
<5> he say there is a trouble on the query .$sql that contains the lines a wrote before
<11> TML: i'm trying there too..
<8> fastidioso: Do you have some sort of error message you could share with us?
<8> That might help
<0> fastidioso: your SQL query is wrong
<0> SQL basics, PHP basics, my friend...
<0> again you need basic knowledge
<8> ZaphodBeeblebrox: I'm not certain, but I think he's saying his code never gets that far.
<8> "that contains the lines a wrote before" (?)
<5> ZaphodBeeblebrox hehe i am a complete mess
<5> :)
<3> fastidioso, your best bet is to take an existing site and debug it, or do some tutorials, cause this stuff looks too advanced for you
<5> TML $sql = " SELECT channel, user_counts, phone FROM chan, ison, friends ";
<3> fastidioso, by existing site i dont mean a CMS
<5> CMS ?
<3> e.g. e107
<9> Keloran: his best bet would be a tutorial, don't confuse him
<3> i never learn from tutorials, i learn from taking sites/programs apart so thats why i said both
<8> fastidioso: What is the *ERROR*?
<9> TML: you can't tell from that query? :P
<3> LOL
<8> aidan`: I can't even tell if he's getting *TO* the query
<5> he is not printing the contain of the tables
<8> Perhaps there's a parse error in the include file
<8> fastidioso: Do you have an error message, yes or no?
<5> no
<5> simply the query in not being executing
<3> fastidioso, you need to relearn SQL especailly the parts of selecting
<8> fastidioso: Your SQL doesn't make sense. Go see what php-bot sent you in private.
<14> fastidioso: trolling isnt nice...
<5> ok there i go
<12> what function tells me how many elements are in an array?
<3> count ?
<12> $count_of_array = count(array_name); ?
<15> Yes.
<12> $array_name even
<12> :)
<12> ok thanx
<15> (sizeof() will also work, IIRC)
<6> foreach($result as $y){ echo "\n $y"; }
<6> that worked
<6> but i prefer the implode
<6> echo "<pre><b>", implode("\n", $result), "<pre>";
<6> with that i can arrange the output looking good with <pre>
<3> and you cant wit hthe foreach ??
<12> max_, thanx
<3> echo "<pre>"; foreach(stuff); echo "</pre>"; ????
<6> Keloran: how?
<3> oviouslly not all on one line, cause htat would be silly
<15> Keloran: one two many semicolons in there, I think...
<15> Keloran: Wait, no.
<15> Just... not quite the whole thing. I get it.
<3> k he didnt have to leave it wasnt that obvious, hehe


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

clxs lisp
#gentoo
document.getElementByIds() + javascript
Rewrite Message-ID Sendmail
#fluxbox
who is easypwn
#web
postfix/postqueue fatal: usage: postqueue -f
WorkArounds2
#python



Home  |  disclaimer  |  contact  |  submit quotes