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



Comments:

<0> what?
<1> The ? on the end was throwing it off, apparently
<0> ah =]
<0> it exists, why when i echo ($client->ListaDeLotes('00150380844')); i get this soap_fault?
<2> how to extract a value inside a string, wich are between 2 words, ie: <div>extract me please</div> ?
<3> Anyone here written anything where the backend builds an XML document, and then outputs via an XSLT parser? I am wondering if there is a way to be creating and adding child nodes to a node in the document without globalling the DOMDocument variable...
<1> the_rock: regex, standard string functions, etc
<1> the_rock: php.net/pcre
<4> anyone here familiar with domxml_open_mem? I'm trying to parse the following response: http://www.managebay.com/api/test.xml, but having a bit of a problem separating the ChildCategory of a ChildCategory
<2> Lateralus thanks
<5> Does anyone know how to get command line php script parameters?
<6> Lateralus oh, just the standard BS; debian/rules yada yada.
<0> Lateralus where can i p*** this method?
<1> Cody`: "get"? Eg, parse? google "optarg"
<7> who in here can script TCL?
<5> php has optarg?



<5> nice
<5> I'm attempting a crappy httpd in php
<4> I'm doing get_elements_by_tagname('ChildCategory') to a CustomCategory element, and it's returning the ChildCategory's of the ChildCategory too, but I don't want that, I only want it to return one level deep (the main ChildCategory, without nested ChildCategory's)
<1> Cody`: http://pear.php.net/package/Console_Getargs
<8> deadroot: I get string(14) "203.128.11.188"
<9> wtheck: do you understand why?
<8> it re-defines the constant to a new value from server variables?
<9> wtheck: no. you can't redefine a constant
<8> then, its not defined at all.
<9> wtheck: try defining the same constant twice. php will throw an error
<9> wtheck: yep. PHP_SELF isn't a constant
<8> I added a undefine ('PHP_SELF'); and phpinfo() after it. I don't get phpinfo() output.
<10> heh
<1> lol
<11> can anyone help? http://hashphp.org/pastebin.php?pid=6708
<1> m4lu6: I would grab the source from pecl and compile it myself.
<9> wtheck: there's an undefine() ?
<6> at least i have a sense of humor about this tripe. ... back to smacking the ****e out of soap.c
<10> maybe wtheck is a troll, i'm having some doubts
<12> muhahahaha!
<8> deadroot: Nope, lol
<8> [Tue May 16 06:57:53 2006] [error] [client 203.128.11.188] PHP Fatal error: Call to undefined function undefine() in /home/users/websites/travelad/pi.php on line 5
<13> Cambridge13: An INSERT won't order the rows .. why would it?
<14> wtheck: Irony itself, right there
<8> its undef() iirc
<14> undefine() is undefined
<9> wtheck: when you give PHP what appears to be a constant where a string is expected, php will automatically convert that constant into a string for you
<14> wtheck: PHP has neither an undefine() nor an undef()
<13> Cambridge13: MySQL doesn't store rows in order as such, the order is only important to you, which is why you define it
<8> TML: Learned.
<11> the query inserts and then orders the rows? no????
<10> the php error also says it checks for string
<9> wtheck: that is why when i defined a PHP_SELF constant, php happily used that constant, and gave you the value for $_SERVER['REMOTE_ADDR']
<13> Cambridge13: No, it just inserts
<10> Cambridge13: you are a wild man :)
<11> i know that you can hace group by with insert so why not order by?
<1> I don't understand how people can go from having constants-automagically-turn-into-strings to randomly trying to use an "undefine" function.
<10> php-bot: tell Cambridge13 about sql
<13> Cambridge13: You can't GROUP BY with INSERT
<8> Lateralus: Just ignore it.
<13> Cambridge13: An INSERT just inserts a row .. that's all .. no ordering or grouping is required
<1> wtheck: The point is this: stop trying random things. Listen to the explanation.
<8> Ok
<3> AHA, I found my answer anyway :D
<10> or read php.net/types.string it has examples for this even ;)
<13> Cambridge13: The order only becomes important when you are SELECT'ing rows from the db
<14> Lateralus: Nah, the point is this: Stop trying to understand it
<14> Embrace your ignorance
<14> Bask in it
<14> Roll in it like a pig in so much mud
<13> What is ignorance?
<10> now THAT'S old school #php :)
<1> I think I just had an anurism
<0> there is DataSet in php?



<11> MarkL i tried also t odelete the ORDER BY part and create another sql statement saying SELECT * FROM <tablename> ORDER BY <column name>; and didnt work
<10> Cambridge13: only one query per mysql_query
<13> Cambridge13: Define "didn't work" .. what happened?
<11> the script supposed to execute the queries one by one a
<14> Cambridge13: Don't make random guesses, get an understanding of what's going on.
<11> yes yes , the second one was another mysql_query
<10> all your loop does is print stuff
<14> Cambridge13: So, for example, if your query doesn't work, ask mysql_error() why. It'll tell you where your syntax went wrong, and you can go study mysql.com documentation to see how you've led MySQL astray.
<8> gotta get ready for work. later folks
<11> the values that i want to insert have been previously deleted. And now i want them back in the right order because that column contains numbers.
<10> to help debug, and see what your queries really are, also consider defining a var with the query, such as $sql, and when something goes wrong print it with mysql_error()
<16> Cambridge13: you fail to understand sql
<13> Cambridge13: MySQL doesn't care about order .. only you do .. so you tell it how to order them when you SELECT
<11> where do i put mysql_error();
<10> you must answer that question
<10> Cambridge13: what does mysql_query() return if the query failed?
<9> if (mysql_query() === false) var_dump(mysql_error());
<10> Cambridge13: okay, how about this, go here: http://us2.php.net/mysql-fetch-***oc and look at that example, carefully, see what is going on
<13> Cambridge13: I think it's just your logic at fault, you show the list->select one to remove->post->delete->redirect back to the view list page .. i think you're missing the last step and expecting to delete and show the updated list all in one go
<17> hello, you are going to laugh at me, however, I am trying to set a link to just simply go back to the first page of my website.
<17> HREF=$_SERVER["DOCUMENT_ROOT"]> back home
<17> that is very wrong
<13> Cambridge13: As the page initially gets the rows in order you just need to redirect back to it after deleting
<17> however, I don't know how to make it right
<17> any help would be appreciated
<10> nobody knows what you are wanting to do there ratbert90
<13> Cambridge13: Or just do the delete at the top of the script (if posted) and leave the rest of the code as it is
<17> go back to the root directory of my website
<16> ratbert90: print_r($_SERVER), pick and choose what you need.
<10> ratbert90: you must echo variables
<18> why not just <a href="/">home</a>
<4> anyone here familiar with domxml_open_mem? I'm trying to parse the following response: http://www.managebay.com/api/test.xml, but having a bit of a problem separating the ChildCategory of a ChildCategory
<17> if "/" was defined
<4> get_elements_by_tagname ****s
<11> the $delete query works fine.
<18> ratbert: / is a relative path.
<17> oh really?
<13> Cambridge13: And before you post the page to do the delete the rows are displayed in the correct order right?
<10> ratbert90: <a href="<?php echo $foo; ?>">bar</a>
<11> do yo uthing that becasue of the redirect in 0 seconds it doesnt have enough time to complete all the queries?
<10> but yes, simply / sounded appropriate
<11> yes
<10> Cambridge13: the answer to your l***t question is no
<9> Xyphoid: if it's href="/", then no. it's an absolute path, within the same server
<11> before i post the data the rows in the database table are fine
<17> Interesting
<13> Cambridge13: So you have all the pieces, just get the logic right, delete row (if form posted)->get rows->display rows->post form
<4> anyone here familiar with 'get_elements_by_tagname'?
<18> uh, yes.
<10> well, irc isn't threaded, so they it depends on what context you read it as :)
<13> Cambridge13: You only need to delete .. as the following code that gets the rows and displays them will take care of the order for you
<19> HI there :)
<19> What is a good IDE for PHP, for win32 ?
<17> does the "/" work with the include command?
<11> when page loads get rows from db table -> when press button post the data -> insert the selected data into db table -> delete selected data from other db table
<20> Paleo: I'm putting my standard vote for "vi" out there
<10> ratbert90: no
<17> ok. I figured as much
<13> Cambridge13: Inserting into one table and deleting from another sounds like bad database design
<21> oh wait...
<21> damnit
<20> Paleo: there is always Eclipse ... I know a lot of folks who like that for many things.
<21> its not done yet...
<10> Gimp_: wrong channel
<21> philip: nope.
<19> JAJMaster I'll try it out, thanks
<21> response for the IDE for php question
<13> Cambridge13: But regardless of that your logic is ok, as long as that all comes before you select->display


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#php
php __deconstruct array
#lisp
xwinwrap rpm
#ai
#php
#php
vim column copy
xorg resizing the panel
mysqldump : binlogging



Home  |  disclaimer  |  contact  |  submit quotes