@# 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 20 21 22 23 24 25 26 27 28 29



Comments:

<0> I have a query that gets and prints the MeetingID and then I need to p*** that information in a form to another script as $MeetingID but I dont know how to get the myrow["MeetingID"] into a variable ( $MeetingID )
<1> eIf: My guess is that there's an error being hidden by display_errors = Off that results in a "blank page"
<0> so i thought that doing $MeetingID = $myrow["MeetingID"] but that does not seem to be owrking
<1> lsailor: What do you mean it isn't working?
<0> I get no return
<0> when i echo #MeetingID there is nothing there
<2> lsailor: Paste the whole code @ pastebin
<3> You have salad?
<4> is _SERVER['script_name'] and alias of _server['php_self'] ?
<5> hi guys, i have 13k customer records, would like to send out email to each of them, can mail() function do this job ?
<0> tws: is @ pastebin #pastebin ??
<2> lsailor: pastebin.com
<0> ewps
<0> http://pastebin.com/544648
<2> lsailor: Are you sure that your query is correct?



<0> the print part works
<6> lsailor, its best to use `field`='value' for conditions at all times....
<6> the "correct" way to do it
<7> Skiver: phpmailer in smtp mode may be better
<2> error403: I even don't know that 'value'=field can be used. Heh ...
<8> TML your guess is trully naive but anyway, thank you
<6> tws, i dont think that is valid at all
<0> yes, I will have to go back and fix that when I get it wroking. I have been told over and over tonight that I am stupid for doing it that way... but that it does work
<6> i bet that query is returning false...
<6> lsailor, fix your query first
<7> Skiver: smtp mode with SMTPKeepAlive turned on
<2> lsailor: Is that query yield the correct MeetingID?
<6> lsailor, people will start to ignore you if you refuse to fix such a simple error...
<0> the print part of the code works and prints the correct MeetingID
<2> lsailor: What's the value of $MeetingID?
<0> It changes everytime you enter a new meeting
<0> and i can enter meetings and see the new MeetingID everytime but I need to take that value and be able to set it to a variable but I am not sure why that is not working
<0> tws: can I msg you the URL and you can try it out
<9> anyone up for answering a few simple idiot questions? :)
<10> Hi, is there any way/lib/something to overlay a picture with another (smaller) one? I'd need to put a logo in the lower right corner of other images.
<0> what i have right now is... a form where someone selects their group and enters a date. That information in entered into a table an the MeetingID is auto_inc. that info is p***ed in a form to another page where I query for that MeetingID and they add they will select the members to add to that meeting. and that will be p***ed and entered into another table
<0> right now it returns MeetingID=60 MeetingID=
<11> hello
<12> mmm... showers are good
<0> http://pastebin.com/544660
<0> same results with that code
<0> MeetingID=61 MeetingID =
<1> Why would you be insulting that way to someone who tried to help?
<0> me?
<1> No
<0> ahh... good... i would never want to insult someone
<1> lsailor: Do you understand how a while() loop works?
<0> not really
<1> That's the first problem
<1> lsailor: while(some_value_is_true) { do this code; }
<0> well i think i have a basic understanding
<0> right... i know that much
<1> lsailor: It will call "do this code;" until "some_value_is_true" results in a false value
<1> lsailor: Now, let's look at your code
<1> while ($myrow = mysql_fetch_array($id_query)) { ... } code_that_uses_$row_here
<1> lsailor: See the problem?
<1> Given what we just discussed about while loops, what value is $myrow after the while loop is finished?
<0> ahhh, I seee, if there was a value it would loop again
<1> Right
<1> So what is the value of (false)["MeetingID"] ?
<1> That's what you've just discovered for us. It so happens that it doesn't HAVE a value.
<0> ahhh... so how would I go about setting the return of $myrow["MeetingID"] to $MeetingID
<12> TML: In Ruby? *cough* cl*** FalseCl***; def [](index); end; end :)
<0> can i just put it before the while statement?
<1> lsailor: You don't want to put it BEFORE the while() statement, because $myrow doesn't have a value yet. You don't want to put it AFTERthe while() statement, because $myrow doesn't have a value *anymore*.
<1> lsailor: Any guesses as to what's left?
<0> in the while statement?
<13> so
<0> lsailor does too... it is good to learn what the heck it going on
<13> anyone using php with vpopmail functions?
<13> any idea how to circumvent the access rights issues?
<0> very very cool. Thank you! That works great
<14> I have the SQL deally setup, now I have to echo out my 'database' into an importable format and BOOM!



<9> boom indeed! :D
<14> It wa cute, I exported a dump in XML then imported garbage :)
<0> TML: Thanks... I gained a lot from that... light bulbs are going off.. I am new and now understand much better :)
<1> lsailor: Just be aware that what you got right there was the ultra-kid-gloves treatment
<14> After I get it all working I can 'add value' by making a VB6 program to remotely edit the DB :). Add some value, yeah, some vaaaaaaaaaluuuuue!
<1> lsailor: I took my anti-depression meds about 15 minutes ago and you got the benefit
<0> hehe
<0> Sometime people need that to really understand how things work
<0> And..now my work is nearly done. Thank You
<13> can i run a php function as another user?
<13> :p
<14> TML, Don't feel too bad about what has recently happened, depressing as it might be. When I joined I had no idea how to use SQL, now, an hour later I have no idea how to use SQL but I have a SQL DB.
<12> TML: I wasn't aware depression was an chemical illness :S
<12> s/an/a/
<14> kuja, In the US it is, we love mommas little helpers.
<12> The main cause of depression IMO, is women. At least for me :P
<12> lig: Hmm, about a 4 hour nap eh?
<0> yeah...they feed us crap food that makes people depressed and then they get to sell drug to fix it
<15> nope - left work kuja ... finally at home after dinner
<16> kuja exactly
<14> You might be right, I'm not depressed, I've never had a girlfriend, I've never kissed a girl, and no one is interested in me.
<12> lig: Mm, dinner :D
<12> lig: I need some lumpia
<12> lig: Hook me up? :D
<15> and women do not cause depression kuja...
<15> anytime kuja
<15> make shanghai lumpia
<12> lig: *NEXT* time I'm in Guam, I'll make sure to notify you :)
<12> I want the lumpia my friend's mom used to make :(
<14> I'm waiting for my chicks dig unix shirt to work it's magic.
<15> np- kuja...
<12> lig: Like, Filipino :)
<15> I follow my families traditional recipe
<14> guten aben.
<12> lig: Ah
<15> pork and shrimp
<12> lig: You know any Filipino recipes?
<15> I am filipino - so yes
<17> How to get the keys of all values *containing* a given string for an array ?
<18> depressed pissed depressed pissed..work work.. thats usual.. ahhhkk
<12> rawr!
<17> is there a command for that ?
<12> lig: Do you have to cool accent? :D
<12> s/to/the/
<15> kuja, I'm first gen - so no accent. none of my generation speak tagalog
<12> Ah
<15> but I make lumpia, adobo, tocino, popcorn shrimp, ribletts, talapia, leche flan (though poorly), asado, and more
<12> adobo!!! :D
<18> shrimp with fried rice and corn mmm
<3> lig: Do you deliver?
<15> nope - but if you come over FlamingCows - I'll cook
<12> lig: You live on base, offbase (if so, which villiage?) or where?
<3> hrm, how expensive is a plane ticket to Guam...
<12> FlamingCows: Depends where you are.
<15> offbase - talofofo
<12> I used to live in piti
<12> Then we moved to Agrahan base-housing close to big navy
<12> It's really nice there
<15> FlamingCows, ~1000 - 1500 from the states
<12> Lived on top of Nimitz Hill, when we first moved there
<12> Smack dab next to the school
<17> Is there a function that allow to get the keys of all values containing 'bl' in the following array => array('blue', 'black', 'orange') ?
<15> miana
<15> xiaogil, how about something like array_walk that uses preg_match
<12> xiaogil: function preg_array_keys($pattern, $array) { $keys = array(); foreach ($array as $key => $value) { if (preg_match($pattern, $value)) { $keys[] = $key; } } return $keys; }
<12> Something like that
<17> thanks!
<3> Or just use preg_grep
<3> Like you should be doing.
<15> ouch! hehe - tells you how often I use preg_* stuff


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#fedora
#php
printer mp130 ubuntu
perl tabstrip
schevo sys.path
hairydairymaid problems
#gentoo
#awk
yum --installroot
cacti bash scrips



Home  |  disclaimer  |  contact  |  submit quotes