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



Comments:

<0> nater, only to increase readability
<1> so unset($smarty->***ign_by_ref('fields', $fields["data"]);
<2> Ahroun thanks
<1> so unset($smarty->***ign_by_ref('fields', $fields["data"]));
<3> Yay for php-bot. *pets the good bot*
<4> weedar: makes it harder for me... but anyways, what does echoing it give you?
<5> Stormchaser, about what ?
<1> forgot an )
<0> the echoing gives me SELECT SS_tid from SSTid WHERE Stevne_id = '1' AND Bil_nr='2 ' AND SS_nr='1'
<0> It loops from SS_nr 1 to 9 (which are correct), the results from SS_nr 1 and 2 gives a number (one column), while the other SS_nr returns empty sets
<5> lorfds, you're not trying to unset a variable here
<6> mattmcc: you sure you can call a method on a instanciated cl*** with call_user_func ?
<6> it's complaining about callback validity
<5> lepine, I told you you can, ffs.
<4> weedar: notice anything about one of your sql arguments there?
<1> colder: I have a wiki that uses smarty templates, and want to replace the values taken from the database, with values stored by the user



<7> What's the command to add an element to the beginning of an array. I've found the functions to add it to the end but what do you use to add it to the beginning?
<8> ajt: http://php.net/array_unshift
<1> if there is an error in the script that doesnt save the values to the database
<7> mattmcc: tahnks 10x
<0> nater, uhm, no?
<6> colder : http://pastebin.com/658216
<4> your 2 is inside literal string quotes, an you have a space
<6> colder, never mind
<5> lepine, what php version are you running ?
<6> very stupid typo / error
<6> 5
<6> the mathod variable was unset :-/
<5> err :)
<6> thanks
<9> I am going a little bit nuts
<6> i ***ume call_user_func is MUCH safer than eval
<5> lepine, you ***ume correctly :)
<9> I am forced to do some COM interaction in php
<10> Setien, COM is fun :)
<6> as you can only call defined functions, and not just a whole codeblock
<7> mattmcc: is there a function that preserves the keys?
<9> I get an array of com_safearray_proxy objects, and I can't for the life of me figure out how to get any data out of them
<4> weedar: got it working?
<9> I tried foreach, [], voodoo
<7> Is there a function that will push an element onto the beginning of an array and preserve the keys?
<9> will[werk], you have experience with multidimensional arrats?
<11> [] for READING?!?!
<5> ajt, then you mean, just delete it ?
<10> Setien, I don't believe so... heh
<12> Setien: print_r it?
<9> ||cw: Obviously the first thing I tried :)
<9> ||cw: it prints: com_safearray_proxy
<12> Setien: so $foo[0]->something ?
<0> nater, nope - but I cleaned up the statement..It worked with the single quotes (in a mysql client) anyway
<12> Setien: if that's all ti prints then you got nothing in it
<4> whats the error again?
<5> ajt, just use something like that : unset($array[key($array)]);
<9> ||cw, no, $foo[0]->field doesn't work, $foo->f
<4> weedar: repastebin it
<5> or do you also want the content of it ?
<9> $foo->Field('col_name') doesn't work
<9> $foo['col_name'] doesn't work
<12> Setien: post the print_r output?
<9> I tried every single access pattern I could think of
<9> ||cw, it is _exactly_ what I posted before: com_safearray_proxy
<0> nater, http://pastebin.com/658228
<9> ||cw, that's all print_r outputs
<9> ||cw, there's no way there is nothing in those objects, because I got a similar result out of the array containing the 5 objects until I figured out it needed the [ ] operators
<12> Setien: then you should have access to the com objects stuff in there. appearently it's a proxy and so it doens't know what it has
<12> a dumb proxy even
<9> ||cw, that's also the conclusion I arrived at, but I can't figured out what to do with the proxy, even though I have googled it for about an hour now
<9> so I came here
<4> weedar: comment out the fetch array line and echo out a mysql_error()
<13> hello
<4> weedar: if the query is valid, i'm wondering if your link resource is
<0> I found the error nater, by changing the variable that accepts the result from mysq_fetch_array I don't get the error
<0> in other words I changed $rad to $test (just to try)
<4> weedar: interesting...
<0> I'



<0> I'd say
<9> ||cw, as far as I can tell, the php header file that defines the object type also defines an iterator for it, meaning that foreach should work - but it doesn't, i tried
<6> colder, last question! there's a function that goes hand in hand with list i believe that i think could be very usefulle along with var_dump( call_user_func(array($object, $method), magic_function_name($_GET) ) );
<6> that would do something like foreach ( $_GET as argument ) inside the call_user_func argument list
<5> lepine, call_user_func_array ?
<6> whoops :P
<5> you want to p*** multiple parameters to the function, the parameters being stored in an array, then call_user_func_array is what you want
<6> good stuff
<0> nater, I'd like to thanks for your help still - You gave me a different perspective on the problem :)
<14> hey i have a small question
<14> when i use fwrite all works perfectly
<14> but with all things i try /rn /nn /t or /tt never p***es the new line after i save
<14> and next record keeps going end of the line
<15> you need to use double quotes, are you?
<14> yes
<14> " --> these i am using
<5> un|c0rn, its \r\n \n \t etc..
<3> er, yeah, \, my bad.
<3> Wow, corrected a line I didn't even send, doh.
<14> itrebal, what i have to do to solve it?
<15> i udnno, not today
<11> !+nl
<16> Newlines are hidden (not normally visible) control characters that distinguish the end-of-a-line of text and are different for each platform as follows: [Windows = \r\n] [*nix & OSX = \n] [Cl***ic Mac = \r] And can be seen as: [LF (linefeed) = \n, 10d, 0x0A, 0001010b] [CR (carriage return) = \r, 13d, 0x0D, 0001101b]
<14> how can i say end of line then with \t right?
<11> you can't end a line with a 't... That's a tab character.
<11> s/'t/\t
<14> Stormchaser, the bir problem is even i put \n on unix system it still starts the next line end of the line of one line before what i need is it has to start from new line
<11> un|c0rn: And now in english?
<14> sorry
<14> when i press submit it saves in file successufuly but when i save another one the 2nd one starting from eof of the first 1 i saved i need the second one to start from new line not eol of the 1st one
<14> and \n doesnot do that
<14> oir \rn
<17> What is the most efficient way to handle date formatting when storing and retrieving data in/from MySQL. For example when posting a news article.
<18> So write another newline before starting the new text
<19> un|c0rn: What operating system?
<14> linux
<19> un|c0rn: Then \n should do it.
<8> SauceH: What sort of formatting?
<2> seem to be having a few problems running php4 and mysql5 - what would be the best server?
<2> APACHE + PHP5 + MySQL5?
<14> dj_segfault, it is not doing it
<17> How should I store the current date into the database and how should I format it to my likings after retrieving it from the database: should I let php do everything with time() and date() functions?
<14> it still starts from the eol of the 1st one
<3> un|c0rn: pastebin.
<17> Or is it better to have the database format?
<14> rideaway
<14> Ahroun, http://pastebin.com/658299
<2> anyanswers on a dream server?
<3> Andy298: No technology can be said to be decisively better than any other, as all technologies are designed with certain base ***umptions in mind that your particular situation may not hold in agreement.
<2> Ahroun: oooo...k
<3> un|c0rn: Looks like you're missing a . in that first statement
<3> un|c0rn: and one where it shouldn't be.
<14> Ahroun, i put the dot near the "\n" on first line where it is missing
<14> still not doing next line
<3> un|c0rn: 'near' does not tell me where you put it. Did you put it before or after?
<20> hey everyone
<11> "\n" "textbox1 value:" <-- Yum. Parse error.
<14> Ahroun, after the "\n"
<3> un|c0rn: Did you get rid of the wayward . at the end?
<21> does this really do something ? <meta http-equiv="Content-Language" content="en"/>
<3> Questutis: #web
<21> ok
<1> i have a for -if -else array structure, that stores values in a variable called $fields -- when i var_dump $fields within the loop, i get correct output
<14> Ahroun, warward?
<14> Ahroun, please excuse my english
<14> i am sorry
<1> however, when i vardump fields from the else statement, i only get the last field that was run through the for loop
<3> un|c0rn: You have .; in your code. Get rid of the . there
<14> oh i did
<14> and put . next to first "\n"
<1> how do i send all values from the for loop to the else statement in my code, so that i can then manipulate all the values
<14> still not p***ing to next line
<3> un|c0rn: What operating system?
<14> linux


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#python
#math
#css
niggercum
ddns3-client ubuntu
xvinfo + Unable to open display + mplayer
eothml
#osdev
ubuntu thunderbird eats cpu
TLS negotiation failure openldap



Home  |  disclaimer  |  contact  |  submit quotes