@# 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 30 31 32 33



Comments:

<0> php's parser gets confused with semi-advanced constructs... especially when using ->
<1> PHP? Confused? Nonsense!
<0> heheh
<2> The parser doesn't get confused, the user does.
<3> it's better than prolog ;)
<2> The parser's rules are, well, hardcoded.
<0> perl once told me that my regexp was too complicated for it to parse .. but that was perl4 back in '95 or so... of course, it also bus errored on my code 100% of the time.... (perl5 fixed it... it didn't like self modifying code in perl4)
<4> is there a function that returns the number of matches when searching array keys?
<0> print "$v[$var->$d[$s[$y]]]"
<0> grep ?
<5> i swear to god i could recode myspace in 2 weeks and itd be a lot more stable than it is now. that site is a huge advertisement for why not to use coldfusion
<6> lol
<6> good with php?
<5> i guess :)
<6> yah
<6> you know databases



<0> mike: do you think people want myspace or sites like it ?
<6> i wanna learn databases
<0> I thouht myspace was recoded in php now
<6> anyone familiar with rafb.net/paste?
<5> no its still cfm
<0> really?
<0> coldfusion is bad?
<5> for busy sites yes
<0> who makes that product
<7> CF is an abomination.
<5> macrodobe
<8> macro****ia ^^
<6> lol
<6> adobe
<7> Adobemedia.
<6> lol
<0> ms?
<0> well, no wonder.
<8> nah nah nah.. adobe is still a bit ok.. but macromedia itself ****s
<5> and i think the college/high school social networking market is saturated, i sure as hell wouldnt waste my time and money trying to make a new one
<4> is this a bad way to write an if statement?: if($i < $count && ($v !== 'Submit') && (substr($v,0,8) !== 'userfile'))
<0> ya, seems like they're all the same. what would make a site stand out -- other than not crashing when it has more than 10 users
<7> Majd: Not particularly, no.
<6> anyone good with mysql database?
<4> i figure, what could i fix?
<0> does php shortcut the logic, if the first condition fails? or the ones to the left of the &&s ?
<6> if () { } else { }
<7> Majd: I can't suggest any improvements on what you have without knowing more context. Alone, it seems fine.
<7> absentia: Yes, PHP short circuit evaluates.
<0> nice
<7> I think the only thing that doesn't is VB.
<4> FlamingCows, oh, i thought you said it's not a good way to write an if statement....sorry...misinterpretation
<9> Hi ppl. I have a problem. I have a php function that I want to call when the user clicks on a <td>. What's the easiest way to do this?? (Preferably without or with minimal javascript)
<10> <td onclick="window.location.href='/path/to/my.php'">
<9> Anyone got any ideas?
<10> but I doubt that's what you want
<7> koehala: PHP function to do what?
<8> only with Javascript
<8> do like GarethAdams said.. i think this will work
<9> the PHP function just deletes a mysql database entry
<11> koehala: three possibilities: 1) item is a link with a variable p***ed in the url. 2) item is a submit button in a form. 3) AJAX
<9> GarethAdams: yeah, thanks but not quite what I want, I want to stay at the same page
<2> Bearing in mind that if you go with option 3, you need to provide a fallback with the same functionality.
<4> Ajax
<2> For non-AJAX users.
<10> see what Noia says in #web ;)
<8> stay at the same page.. hehe.. well then AJAX.. or hidden frame operations
<10> I mean what mattcc says
<9> What's AJAX?
<8> kinda communication interface for dynamical pages
<7> !tell koehala about ajax
<4> is there a php/mysql/apache package for mac?
<0> a god?
<8> http://en.wikipedia.org/wiki/AJAX
<7> Ajax wasn't a god, he was a warrior in the trojan war.
<7> Or a cleaning fluid.
<4> ajax is soap too
<4> or cleaning fluid...w/e
<9> cool, thanks for your help everyone, I think I'll be able to figure it out now



<10> it's a dutch football team too
<9> lol @ all the different ajaxes :p
<8> but u know.. ajax only works WITH javascript.. and witrh internet explorer onlx with activated ActiveX (imho)
<0> wow.. yup sure 'nuff
<0> ya! ayax
<12> Okay...I did a query to mysql but it's not returning a result. Like if I try to echo the result, it's nothing. Nada. Any ideas?
<12> And the query was to input something into the db.
<13> INSERT doesn't return any result data
<8> INSERTS dont return direct values
<13> http://www.php.net/mysql_affected_rows
<13> is what you want
<8> it shows u how many rrows where affected.. as the name says hehe
<6> anyone know how to create a nopaste site with sql?
<12> Okay...is there anything wrong with this query?
<12> http://pastebin.com/542731
<12> I'm using this query, and it's not going in.
<12> Via php that is. Hmmz.
<13> htns: after the mysql_query, try echo mysql_error
<11> htns: what error message are you getting?
<8> alt="Who's Who" <<< escape '
<12> Okay, error in mysql syntax. Thought so...
<8> as i said.. escape all '
<8> in the HTML source
<8> href="http://www.honoring.com/"; title="Who's Who"><img cl***="space" src="images/corp/whosWho.gif" alt="Who's Who" /></a></li></ul>','aa.ad.01',0)
<8> there at alt="Who's Who"
<8> make
<8> Who\'s Who
<12> Yes yes of course...sorry I'm a bit slow today.
<8> hehe np me too ... damn late here hehe
<12> Thx for the help though. (-:
<8> np =)
<4> is there a way to delete an array element by refering to it's key?
<4> can't find exactly what i need in manual
<11> Majd: unset($array[$key])
<4> oh, didn't know you can do that
<4> thanks
<11> Majd: and also, the right word is "its", not "it's"
<4> CryWolf, yeah....i know....typing really fast trying to fix problem before i lose my train of though
<4> *thought
<14> you mean thought?
<14> :P
<8> cmon.. dont flame about language ;P
<4> shhhh beat you
<4> haha
<11> [FiRe]Maverick: *don't
<14> you mean c'mon
<11> :)
<8> hehe u r so .... ahh forget it :P
<4> technically, c'mon is slang and i believe that is not tolerated
<4> ummm, *I
<8> oh yes.. "you" and "are"
<15> i'd like to display the month name according to the $_GET['month'] variable . is there an easier way to do this than with a switch? an array? how would i go about saying 01=january, 02=february, etc.?
<14> $date
<7> NBrepresent: Lokkup table.
<7> s/Lokkup/Lookup/
<15> will do. thanks
<15> i can't find what you're talking about. this is all mysql stuff.
<11> Easiest way to change a month number to a month is probably an array. You could also use mktime and date, I suppose.
<11> lig: we don't support pears here
<16> damn ;) - well too bad CryWolf
<17> hi, i am getting Warning: mysql_result(): Unable to jump to row 8 on MySQL result index 3, i know i have 8 rows, each with an id, ranging 1-8. any ideas?
<8> can u jump to row 7?
<17> yes
<8> maybe it starts with row 0.. then row 7 is number 8
<15> ok, this gave me an error, so it's wrong, but how would i do this idea properly? Events in $months[$_GET['month']]
<17> thanx Maverick
<8> np ;)
<15> $months is an array of months and i'd like to get $months['1'] if $_GET['month'] = 1
<15> to further muck things up, this is in a double-quoted string
<15> $multiple .= "Events in $months[$_GET['month']]";
<8> $months['1'] <<<< sure that this is an asoziative array?


Name:

Comments:

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






Return to #php
or
Go to some related logs:

gentoo XF86DRIQueryDirectRenderingCapable
#lisp
libglib2.0-0 (=2.10.2-1ubuntu3) but 2.10.3-0ubuntu1 is to be installed
tobaz rock
AMB01 driver
#freedesktop
php + mysquery
pop3d-ssl: chdir Permission denied
duo-core processor justification
XFCe4 moz_no_remote



Home  |  disclaimer  |  contact  |  submit quotes