@# 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



Comments:

<0> yep
<0> it did the laundry
<1> Fushuing: Well, there's your problem. ##PHP won't help you with your laundry.
<0> dangit!
<2> just put it on cold...throw in the detergent and your good to go
<0> and i was about to ask how to get these brown streaks and yellow stains out of my underwear :/
<3> but they can help you get so hooked into php that you no lnger care about laundry, similar
<4> question: I know that if you have a variable inside of a string, it gets resolved, but what if I want to have a table access inside of a string? like "$user['name']"?
<4> or a function call in a string, how would I do that?
<5> Pollita: still there?
<1> NightBird: You don't do a function call inside a string.
<5> Pollita: it dosent really work well
<6> after i upgraded 5.0.5 to 5.1.2 i noticed that base64_decode($stuff) doesnt work as it did with older version before - is this some new feature or what? maybe i should try recompiling 5.1.2 aginst older versions of some libraries, or? does anyone have an idea what could be wrong with it?
<4> TML, ok, but what about the indexed lookup?
<1> NightBird: If by "table access", you mean an array, ask php-bot about arrays.
<5> Pollita: i keep getting error messages, i think it is cos the message is deleted but it still is on the same page. so it selects a id that does not exist.



<5> Pollita: do you understand what i mean?!
<3> NightBird, use single quotes
<1> awwa: Pollita is gone
<5> craaaap
<3> NightBird, I ***ume you mean an array
<1> [or: Accessing an array index using single quotes inside an interpolated string will create a parse error.
<3> won't work.. $string = "hello $user['fpp']!"; will work.. $string = 'hello '.$user['foo'].'!';
<7> I am using a ini config file in my php app and was wondering can you use a previously defined ini key as part of a value in another? Like you would $two = $one . ' and some more' in php?
<3> use commas rather than . (dots) if you are simply echoing
<3> oh coffee's ready brb
<4> ok
<3> quiet tonight! heh
<1> NightBird: Ask php-bot about arrays.
<8> hi everybody..
<8> i-m trying install php but i can-t .. do you cant some manual for install in slackware 10.1?
<3> DanyWalker, you have GCC installed?
<3> just compile it
<3> saves messing about. it will create and populate all the folders you need, etc
<3> DanyWalker, there is a slackware package, too
<8> i made make ..make instal... all ok, but
<8> i add line to the httpd.conf
<8> i don-t know what linei must add to the httpd.conf :S
<3> what error are you getting?
<8> none, but i want add lines into httpd.conf
<9> did you compile by hand?
<8> but i don-t what lines y cant set there :S
<9> it's always added the line for me
<10> Do you know simple WYSIWYG javascript editor? ForFirefox and IE .
<11> FCKEditor
<8> i-m goin to crazy :S
<12> Patric, #web
<3> what do you want to add?
<13> Patric: Huge list at http://www.geniisoft.com/showcase.nsf/WebEditors
<12> DanyWalker, php.net/install
<8> thanks
<10> I have seen that list, but I didn't find somethig simple and easy to deply
<14> Can someone help me out and tell me if a query I have is valid?
<14> mysql_query("UPDATE users SET hospital=0 WHERE userid=$userid LIMIT 1");
<14> Should that work?
<15> yes
<12> probably not
<15> put singal quotes around userid to be sure
<15> single
<14> well
<14> I have this query
<14> mysql_query("UPDATE users SET hospital=hospital-50 WHERE userid=$userid LIMIT 1");
<14> and it works fine
<15> then that would work as well
<14> But.. When I use the other one (To update users that's hospital time drops below 0.. ) It doesn't update them (yes there is an If statement)
<14> if($ir['hospital'] < 0)
<14> {
<14> mysql_query("UPDATE users SET hospital=0 WHERE userid=$userid LIMIT 1");
<14> Would that update it if the Time is like -3 ?
<14> Or does it not see that as < 0
<5> could someone tell me why this isent working? http://pastebin.com/558904
<5> i am very new to php
<5> heh
<16> hey all, easy one, how do you get the values for an enum field in mysql?
<3> no opening and closing tags, and nothing between them, that's the trouble
<12> awwa, you never checked the result of the mysql query to be first
<5> masquerade: what?



<12> awwa, erm, *you never checked the result of the mysql query first off
<5> could you help me with that?
<12> if($result)...
<14> http://pastebin.com/558906 Can someone look at that Piece of Code and see if you know why its not working?
<14> It should update a users hospital stay to 50 less minutes.. but if they are in for 49.. and do it .. It puts them at -1 and wont set to 0
<5> masquerade: but hat is not the problem with the script is it?!
<8> boys
<1> Thesifer: Probably because you said "hospital-50"
<1> Thesifer: 49-50 = -1
<14> Yeah but thats what it should be
<14> Yeah I know that .. but
<1> Yes? But what?
<14> I need it to take away 50.. no matter what.. Like if its 349.. it goes to 299.. etc..
<14> all the way down.. but I need something to clear up if its 49.. and you take away 50.. thats what that one line is supposed to do
<1> Thesifer: You asked why it's going to -1 when they have 49. It's because 49-50 = -1
<14> Set hospital=0 if hospital < 0
<1> Thesifer: You didn't update $ir['hospital']
<1> Thesifer: So it's still at 50, while 49 is in the database.
<1> Rather, it's at 49 while -1 is in the database
<14> oh ok.. I think i understand that
<14> So How Do I have it send the updated data and then clear it down to 0
<14> like.. the PHP thinks its still at 49.. But its really at -1.. cause it doesn't know or what?
<1> Thesifer: The database is at -1. $ir['hospital'] is at 49, because the database was at 49 when you set $ir['hospital']
<1> Thesifer: That value doesn't magically update.
<1> Thesifer: Instead of the mess you have now, why not update the database to 0 if $ir['hospital'] < 50, else update it to $ir['hospital']-50
<14> humm i think i know how to do it with the mess I have now
<14> but yeah
<14> that might work better :)
<14> will try both
<15> how many of you use pears auth cl***
<15> im using it now, but its just not doing it for me
<14> TML: What am I missing here? http://pastebin.com/558923
<14> Or anyone else?
<1> Thesifer: Make it easier on yourself. $new_hospital = max(0, $ir['hospital']-50); mysql_query("UPDATE users SET hospital=$new_hospital.....")
<1> I'm not quite sure why you have "LIMIT 1" on your queries there. Presumably, userid is a primary key and thus there's only one possible match.
<14> yeah.. I just got in the habit of putting it
<14> ill remove it .. As for the code.. it works.. but I guess I could do the $new_hospital change
<5> what is wrong with this line: $result = mysql_query("SELECT timestamp, id, title FROM blog_poster WHERE FROM_UNIXTIME( timestamp, '%Y' ) = $year ORDER BY id DESC");
<5> ?
<1> awwa: What makes you think there's something wrong with it?
<1> awwa: Hello?
<17> Gangsta
<17> Hm...
<17> Man, IRC is a tough nut to work with -_-
<17> TML: How does it?
<17> goes*
<18> Is there a way to access a child cl***es members in a static function from the parent cl***?
<17> nsanity: Yes. If their static methods, it doesn't matter.
<17> they're*
<18> Is there a pastebin here?
<17> php-bot: tell nsanity about pastebin
<19> not here, but plenty on http :)
<18> kuda: danke
<1> nsanity: The parent doesn't know about the children, so you have to call the cl*** name explicitly.
<1> PHP cl***es are always deadbeat dads.
<13> And we won't talk about what they do when garbage collection time comes.
<17> Heh, "*when* garbage collection comes"
<13> Something GC this way comes...
<17> It's like I have to beat a million thugs just to connect to IRCNet, this is retarded.
<1> mattmcc: Oh, that's clever. I might borrow that.
<18> TML: what if you don't know it?
<1> nsanity: Then you can't call it.
<18> Is there a way to find out from the parent?
<1> No
<1> The parent never knows the children.
<19> like any good father...
<20> how can I unset a variable by clicking on a link?
<5> TML: well it dosent work
<5> TML: i get: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /gaia/httpd/html/neenok/journal.php on line 7
<13> dbe: I think your understanding of how HTTP works is missing some important details.
<17> awwa: So? Your query failed. mysql_error() is your friend.
<5> the thing is i am at a friend, so i cannot get hold of my friend who has the servers here


Name:

Comments:

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






Return to #php
or
Go to some related logs:

what's gfxboot
packman-test
mp3 hot white cum
#debian
#linux
mv replacement debian
#math
mplayer glibc detected *** gmplayer: double free or corruption
#gentoo
#mysql



Home  |  disclaimer  |  contact  |  submit quotes