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



Comments:

<0> http://www.php.net/if
<1> read that for proper structure
<2> no, I mean...
<2> is the /index.php right?
<1> no slash
<2> or does it register as some other variable
<2> yeah, thought so
<3> and you might want to put it in quotes or youll get errors
<2> k
<4> ya rly
<4> I wish I could move without moving. Like, just teleport all my stuff to my new apartment
<5> haha so true.
<4> no packing or unpacking necessary
<1> that's why i don't move anymore
<1> :P



<2> they're called slaves.
<2> get some.
<4> I'm not charismatic enough a leader yet.
<5> i was looking to move. i found a place a block away that i almost got.
<5> it would have been hilarious. carrying a mattress a block.
<5> i would have just left everything on my dresser
<1> http://www.thedenverchannel.com/news/9511801/detail.html
<1> that is ****ing awesome
<2> the denver channel.
<2> sounds exciting.
<6> can anyone explain me what is array i had read the php.net manual but i can't understand it
<7> i think an array holds characters or something like that
<1> an array can hold anything
<1> usually, it's a place to hold a collection of things
<1> like: $fruit = array('apple', 'orange', 'banana');
<7> aaah
<7> so how do you get the array to output the one you want?
<3> think of it as a variable that holds multiple values
<3> $fruit[0]
<7> ah
<3> specify the number that you want, starting with 0 and not 1
<7> so it can hold up to 99 values?
<3> it could hold millions of values
<7> ah
<7> lol
<3> $fruit[99999999999999999999] if you wanted to although it would eat alot of memory
<6> then how the get the result if it was $fruit = array('apple', 'orange', 'banana'); for example i need it 'orange'
<7> yeah 0_o
<3> $orange = $fruit[1];
<7> $fruit[02] ?
<7> aah
<8> and apple = 0
<3> yeah you start at 0
<7> bannana = 2
<7> cool, thanks, :)
<7> i made a small users online script, and it works perfectly, but i want it to count the number of users online as well as display who is actually online
<7> is there an SQL query for that?
<9> are they in a table?
<7> yea
<9> select count(*) from table where online = true;
<9> or something like that
<7> cheers, :)
<9> i dont know how your table looks
<7> the table is users_online, then the field i want it to count is called username
<9> there you go
<7> :)
<7> lol
<7> cheers
<10> ooh, as/400
<11> :O
<11> mmm aix
<11> AIX has no Mad Cow Powerz though. :(
<9> i have a little one here
<9> im going to use it for an end table
<9> the e series is in a storage room
<11> lol
<9> big enough to use for a coffee table
<11> an end table
<9> but too big to move =P
<11> just put a ton of old processor cards in it



<10> i've never ever used AIX
<10> i want to try it
<9> its os400 actually
<11> See how many Power3 cards it takes to make the equivilant of a single Power5 one. :D
<10> i've never used an AS/400 either
<9> i was supposed to learn rpg iv programming
<9> thats why i have them
<11> lmfao
<9> but its a dumb *** language
<11> ARR PEE GEE
<11> it's not bad, for what it was used for
<9> its t3h sux
<10> my old boss did it for years
<10> it twisted him a little
<9> half of the language is nothing but formatting
<11> it breeds a little bit of evil into everyone
<10> i've also wanted to give Rexx a whirl
<10> but never have
<11> OS/2 runs in VMware!
<11> OS/2 Warp 4 here I come!
<11> I'm sure I can find install media somewhere here at IBM
<7> i got my SQL query to work, but how do i get it to output the number?
<7> mysql_query("SELECT COUNT(*) FROM `users_online` WHERE `username` = true");
<9> http://rafb.net/paste/results/lGmUnb21.html
<10> that's another one i wanted to try
<9> take a look at that
<9> its the hello world of rpg iv
<1> @mysql_fetch_array
<0> (PHP 3, PHP 4, PHP 5)
<0> array mysql_fetch_array ( resource result [, int result_type] )
<0> Fetch a result row as an ***ociative array, a numeric array, or both
<0> http://www.php.net/mysql-fetch-array
<11> sparkeh: erm, fetch
<7> agh, n00b error, -_-
<10> sparkeh: hint, the shorter your data is, the faster mysql can be. use '0' and '1' or 'Y' and 'N' instead of 'true' and 'false'
<11> no, truely
<11> use something like
<7> thanks, i'll bare that in mind :)
<11> 'supercaliflagulisticexpialidocious' and 'notsupercaliflagulisticexpialidociousatall'
<10> heh
<7> rofl
<11> does mysql not have a ****ing boolean type yet?
<1> it does
<1> but it's just a tinyint
<11> Lame
<7> is this right?
<7> mysql_fetch_array("SELECT COUNT(*) FROM `users_online` WHERE `username` = true");
<1> lol
<11> is true and false a constant then?
<7> :|
<1> do you only have two users?
<11> why would your username be true?
<1> Zenethian: yeah
<7> oh, forgot to change it, lol
<11> lol
<7> :|
<7> lol
<10> no only 1
<10> himself
<10> if true, he's online
<11> OMG UR FALSE. DENIED, BYACH!
<7> lol
<11> I saw this query once in production code:
<11> SELECT COUNT(*) FROM sometable WHERE (blah blah lots of where clauses I dont remember) LIMIT 1;
<7> 0_o
<11> I was like........... ... .....
<11> HURRRRR
<11> YOU THINK!?
<1> lol
<7> n00b question, but does using LIMIT 1 just show the first result?
<1> at least it wasn't like limit 5 or something


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#chat-world
#india
#linux
#chat-world
#php
#php
www.askyeli.com
#chat-world
#india
#kl



Home  |  disclaimer  |  contact  |  submit quotes