| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Comments:
<0> think about intranet type sites - stuff built more to be an application. ie, a real estate site. <1> Unless you use GET, but that's so retarded that I don't even wanna think of it. <0> i don't know why i bother <2> sean`: this does not work too, now i get something like this 09:04:00 ... but i need a decimal number <1> Bother with what? <3> so a session is what i want if i want to p*** the $_POST array onto the next page, to add something else to it? <4> ABaer; Decimal number, like.. 09.40 ? <4> which format <1> NBrepresent: Didn't you listen at all? <0> two solutions: a session, or a dataobject <3> (the situation is that if the admin wants to put a link in a new category, they go to the form to create the new category) <1> NBrepresent: Don't freakin' use multi-page forms! <4> lol <4> NBrepresent; Try some logic.. <3> oh, ok.
<5> someone knows a workaround for that particular problem? http://rafb.net/paste/results/VAi7Jd56.html <4> There are some options.. <4> You could store the info from the previous form into a session, which would be best/most secure <3> so those inputs are part of the form, but only visible if it's already been submitted, with 'newcat' selected <4> You could also put them in hidden fields.. and post them on the next form, but that would mean the info can be manipulated easily.. <2> sean`: no. e.g. the time 13:15:00 should become 13.25 (13 hours and a quarter) <0> kanye`; don't forget to tell php that $bar is global <0> outside of the scope of the function <4> ABaer; I'm not gonna write that code for you.. think myql time -> convert to unix timestamp -> calculate with date and math <5> thanks, how is that working? it works in non eval'd code though ;) <5> CloCkWeRX[a] <4> NBrepresent; If my answer does not help you, then I suggest you try reading a tutorial on multiple forms.. <6> can anyone recommend me a good html/php editor for linux? <4> Or like KimmoA said.. don't use them <2> sean`: I have three times... start, end and break ... i want to calculate the worked hours. like this start: 08:15, end: 13:45, break 0:15 = 5.25 <4> Storkme; I hear VIM is very good.. <0> kanye`: a good practice is to declare your varibles before you use them. PHP doesn't need it like other langauges, but it's a good habit <4> ABaer; You need to be working with percentages <5> CloCkWeRX[a]: it is declared before the function, but the eval'd code is the problem <3> sean`: thanks for your help, i'm reading the sessions section of the manual <0> eval scares me <2> sean`: but is there a function which do this for me... to do the timestamp in percentages <4> ABaer; I was hoping my answer had already answered that, since I didn't give you a function name.. To my knowledge there isn't af unction which will do that for yo. <4> you* <2> sean`: ok, thank you... i thought there is a function in php... i think i will split the cells into hours and minutes and convert it by myself <4> think myql time -> convert to unix timestamp -> calculate with date and math <4> also think percentages <2> sean`: yes, this was my second idea... i thought php will do this for me :) thanks a lot <7> oi bom dia <7> Oi <7> Alguem est na sala <1> Achallagnakgalgah on you too! <8> Mi aerodeslizador es lleno de anguilas <9> an md5 hash is unique no? <10> lra_: no <11> lra_: there are only so many possible combinations for 32 numbers/letters, but infinite possibility of characters/punctuation/legnth <12> CloCkWeRX[a] : tried ultra-edit ? <0> don't like it <0> can't stand it <0> i use editplus typically (very similar), but because it's so similar.. <0> its feels wrong... or like i'm sleeping with editplus' sister <0> (the buck toothed one) <11> !tell CloCkWeRX[a] about editors <11> CloCkWeRX[a]: i prefer emacs, with php-mode.el <0> has anyone played around much with Zend Framework's port of lucene? <13> !tell Gerry about editors <14> !tell eml about editors <0> !tell CloCkWeRX[a] about love <0> <php-bot> i dunno what is 'love'. <0> :( <11> `whatis love` in bash <15> would somebody finally fix http://bugs.php.net/bug.php?id=36949 <16> Jax: Are you sure that this bug is unfixed in the latest cvs ? <17> MarkR i can't install CVS on a production server, so i don't know <17> i need a stable release <8> Jax: Surely you have a non-production server that you can test it on??
<16> Well, you should not test bugs in a production server! <17> i was coding in a production server... <17> and FOUND this bug, hence wrote the test-case <8> Shouldn't be coding on a production server either .. <17> none of your business <8> LOL <17> and why would you say something like that without knowing how my servers are setup? <17> i mean, totally NO help regarding the issue.. <17> so why even bother answering? <17> this channel so pisses me off like that... <17> "why doesn't this work?" <8> Bit arsewipish to be asking for help with all this and then getting upset when people start pointing out the bleeding obvious .. <17> "why are you even trying to do that?!" <18> well you did say earlier that <17> instead of answering questions <18> i can't install CVS on a production server so how come you can code on a production server ? <17> i've been here like 5000 friggin years.. and it's only going downhill <11> Jax: we told you how to fix it, you have to try the CVS release: they won't release a new version for a while <8> This is a chat room, not a help desk afaik .. if the chatter manages to answer a question that you asked, then consider yourself lucky <17> and oh.. interesting that EVERYBODY comes to discuss as soon as it's offtopic <17> but when somebody asks a php question.. wait for years <19> Jax: So, why are you here if it's so bad? <17> because i'm dependant of crappy php because the client demands it?! <8> Must be the way you ask things .. most times I get what I need (even if it's not what I want) pretty quick ... <17> sometimes you are bound to contracts you know <19> Jax: So, why are you here *in this perticular channel* if it's so bad? <20> OK, somebody kick this @#$%er. <17> well, give me an alternate, non-adolescent infested one? <20> (9:37:05 AM) Jax: because i'm dependant of crappy php because the client demands it?! <-- HE HATH INSULTED OUR BREAD AND BUTTER!!! <8> LOL <17> Elazar if this is your bread and butter.. you will be dying soon. <17> mal-nutrition my friend.. <8> This time I'm going to side with those in the 'crappy' corner <17> anyway, this really helped in resolving the issue.. <17> another day in #php <20> PHP has actually been the majority of my work for about four years and the duration of two jobs now. <8> I figure tony2001 already resolved it .. you just wont take his advice .. <17> Elazar yeah that all changes one day. <1> I am in a situation where performance is critical. I need to INSERT if a given entry isn't present in an SQL table, but UPDATE if it's present. Must I check this manually, or can it be done in one step at MySQL level? <17> KimmoA you can do it on mysql <18> mysql5 or 4.x <8> KimmoA: depends on your mysql version <16> KimmoA: You can do it in one step in MySQL 5 <8> 4.1+ IIRC <1> Well... 6. <1> Damn. 5. <1> Ah. What keyword? <8> INSERT blah ON DUPLICATE KEY UPDATE blah <1> Looks fancy. <1> Not SQL standard, I ***ume? <16> No <8> Doubt it .. this is mysql you're talking about <1> :) <16> You can use REPLACE <8> Is anything in there standard? <16> No, there is not, that I'm aware of <8> MarkR: in some cases <1> Well... I'm gonna be evil and say that I won't change database anytime soon. <17> KimmoA: http://dev.mysql.com/doc/refman/5.0/en/insert.html <8> REPLACE INTO is destructive <18> looks nice and easy. i was going to suggest a stored procedure and transactions but i like the 1 liner approach better ;) <16> However, REPLACE will totally destroy what was there before <1> Thanks. <16> In most DB, a stored procedure is the only way of doing that <16> Of course you could make a SP in MySQL 5 as well <17> or even: http://dev.mysql.com/doc/refman/5.0/en/insert-on-duplicate.html <8> use the first if you want something like UPDATE x SETcount = count + 5 <17> do not use SPs <8> Use the latter if you just want UPDATE x SET count = 5 <16> Or use a subquery <8> Jax: scroll up .. <8> Gah, I was going to bed .. <17> Woosta well, looks like i'll have to go find a server to test it then >;/
Return to
#php or Go to some related
logs:
#gaim gentoo id2entry.bdb #css #web password for tiaraxclusive website #debian #suse #css gcc: Depends: cpp (>= 4:3.3.5-3) debian Fedora transparent xconfig
|
|