@# 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> Cambridge13: But regardless of that your logic is ok, as long as that all comes before you select->display
<1> monkey: does that method not work? or not do what you want? the docs look like it's changed behaviour over time
<2> (jotpad = windows php editor that my colleague is working on its in private beta at this time)
<3> Gimp_: you are creating a php ide for mac? i'm getting a mac in 11 days :)
<3> oh :)
<2> philip: if you want a mac one, use subethaedit.
<4> would I use the Document_root command with the include command?
<2> SEE > everything else
<5> Hey all, I have a problem - how can I get help? (post my script for you to view?)
<6> when you update your account form monthly to annual subscription arent you deleted from one table with the monthly subscriptions and go to annual subscriptions?
<2> arachn1d: lisppaste
<2> wait
<2> darnit. http://www.pastebin.com
<5> thanks brb
<2> i forgot this channel doesn't use listpaste
<3> ratbert90: you could, spend some time playing around ang get a feel on the difference. note what the document root is, where it is, and how it relates to the file system



<0> Cambridge13: No
<4> I have been reading documentation all day
<6> i dont think its bad db design but anyway , i had it working before i add some more php in the page
<4> and I feel like I have gotten nowhere :(
<7> cambridge13: sounds like it might make more sense to have an attribute for "subscription type" in an existing entity.
<0> Cambridge13: Normally a subscription_type field would be updated .. that's all. Having a table each for monthly and anual subscriptions does'nt make sense
<3> ratbert90: the document root is a path, such as /var/foo/www so in the browser this is seen as / as in example.com/ instead of example.com/var/foo/www
<3> ratbert90: include uses the file system, so you include /var/foo/www
<6> i just gave an example which i think is ok. buti dont really matter for this task
<3> something like that :)
<5> http://pastebin.com/719917
<4> so I would have to set a variable
<4> and then include the variable
<4> such as include $home
<4> and I would have to set $home to a directory
<7> cambridge13: it sounds like you may be greatly helped by looking into help/tutorial/data about Normal Form Compliance with databases
<3> the DOCUMENT_ROOT is set to /var/foo/www
<4> correct?
<3> no
<3> well, you could
<8> xyphoid: it doesnt do what i want. if I say "get_elements_by_tagname('ChildCategory')" on that XML response, so I can get the ChildCategory of a CustomCategory, it returns the ChildCategory, as well as the ChildCategory's of that ChildCategory. I just want it to return the ChildCategory of my CustomCategory, without returning the children of the ChildCategory.
<0> Cambridge13: You've previously said that your 2 tables have the same fields/columns .. which means you don't need 2 tables
<4> probobly not the best way though
<3> i doubt it
<3> the document root is set for a reason, so you can use it
<4> mmm
<7> pastebin seems to be very slow again :(
<3> but you should set include_path directive in php.ini and use that, but anyway... :)
<4> so how do I include the document root/foo.php
<5> yeah it took a minute before my id showed up :(
<0> ratbert90: require_once($_SERVER['DOCUMENT_ROOT'].'/foo.php');
<4> :O
<9> arachn1d: try hashphp.org/pastebin
<3> it's just a variable, like $Home is, nothing special
<5> http://pastebin.ca/56105
<6> i need 2 tables because if you remeber yesterday what we did, we p***ed 1 value in the list box. That value is the FreeHourID. I use the 2nd table for an admin to see a full description of a FreeHourID which has VetName, Day and Hour
<5> oop thanks crywolf but just found this one
<4> philip, you have to realize, I am very VERY new to php
<1> monkey: are you using the php 5 DOM or php 4 DOMXML?
<8> php4 domxml
<8> would an xpath work?
<3> ratbert90: i know :)
<4> the only other things I know are bash, html, and xml. and fvwm script, which is much like bash
<4> =]
<6> i think we got lost now.......
<9> arachn1d: now, what problem are you having?
<0> Cambridge13: What's the difference between your 2 tables?
<6> only the name
<6> of the table
<5> CryWolf: The description of the problem is on the top, if it's not I'll re-type it.
<3> Gimp_: i think i'll get textmate
<2> philip: textmate ain't that great
<0> Cambridge13: Then you don't need 2 tables .. guarenteed
<7> cambridge13: then you do not need 2 tables...period
<2> its also freaking expensive.
<4> philip, I do appreciate your help very much though.
<3> Gimp_: textwrangler then?
<2> philip: as i said before, SEE is the best.
<0> Cambridge13: Seriously, you need to sort of the db design other wise you'll be digging yourself a hole, good db design leads to easier PHP code
<2> (in my head)



<2> alrighty, linux n00bie here, anyone feel like helping find the php5 package for debian?
<3> i only want one person to edit :)
<2> for some reason, apt-get install php5 doesn't work
<5> apt-get install php5
<5> do you have synpatik or adept?
<9> arachn1d: every time info is posted, you will insert a record.
<3> see is about the same price as textmate, not a fair argument :)
<5> CryWolf: Yes, that's my problem, #1. I got 2 of them :(.
<3> but we digress
<2> arachn1d: it says "package php5 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
<5> CryWolf: I mean everyime I refresh
<6> you are right, My db though is very small. And i have already finished all the work needed for this project , but to insert those values in order would be perfect now....
<0> Gimp_: Search http://www.apt-get.org/
<5> Gimp_: Update your respiroty
<1> monkey: you could work through the child_nodes instead of using get_by_tagname
<2> philip: see is free. go to the site, down the right side, there is a place to download version 2.2
<9> arachn1d: you can set a unique identifier in the form and put that in a session variable to avoid duplicate queries. Or use header() to redirect back to the page, so that when you refresh, you're not resending the form.
<0> Cambridge13: ... you can't INSERT or DELETE 'in order' .. there's no such concept
<9> arachn1d: but whatever you do, you must also use mysql_real_escape_string()
<0> Cambridge13: You might as well say 'insert in green'
<0> Cambridge13: order only becomes important to you when you SELECT .. no other time
<6> so why when i first insert and then with another query ORDER, dont get the result?
<5> CryWolf: The problem is that everyime the page loads, it inserts a blank table into the database. Then #2 the delete link won't work
<10> Is it possible to use multiple files to dfine a single cl*** in php5?
<8> xyphoid, what do you mean by that?
<1> if order is important to you, add a field named 'order' and keep it up to date.
<9> arachn1d: you're not checking to see if a form was submitted. You're ***uming it was.
<0> Xyphoid: No no
<3> heh
<10> ie, through include etc to define more functions for a cl***, not by extending the cl***
<1> monkey: rather than using get_elements_by_tagname, which is recursive, you could work through the result of the child_nodes method which is only one level down
<11> does php support method overloading?
<0> Cambridge13: Don't get result .. or they are not in order?
<5> CryWolf: ooo, makes sense. So if(__what to insert to check if form was submitted?)
<6> i want with one button press to insert, delete and order (using 3 different queries)
<7> arachn1d: also, in your final "if" block, you are ***IGNING $id to $d, not checking for equality
<9> arachn1d: it inserts a blank record, not a blank table
<9> arachn1d: isset()
<2> i cannot find a thing for php5... its listed on that search site as php5.0 but apt-get install php5.0 doesn't work
<6> they are not in order
<10> Majd1, yes it does, but you'll have to read up on php.net
<0> Cambridge13: But you already have the ordering sorted .. you initial page shows them in order before you post the form
<5> CryWolf: Thanks, I'll check that out right now. Brb
<11> Mangusta, ok cool thanks
<5> JAJMaster: thanks aswell brb
<3> Gimp_: you've adjusted your apt sources file?
<0> Cambridge13: So you put the deletion code above that, have it run if the form is posted .. and that's it
<2> philip: i have no idea what you mean by that. i JUST installed debian.
<0> Cambridge13: The code will then continue on to the select code you already have
<9> arachn1d: also, deleting records based on a GET variable is a bad idea
<6> noo the initial page displays the data from that table. They are gonna be displayed however they are
<10> Gimp_, the file : /etc/sources.list contains a list of sources to retrieve packages from
<0> Cambridge13: The delete part of your code doesn't need any selecting of it's own
<5> CryWolf: well.. this is just a script to learn with really. But how else wwould you do it? (And what do i check with isset, the $_POST variables?)
<9> arachn1d: proper indentation would also show you the remaining problem
<10> check that the package you found in the search is on a source in your sources.list file
<6> you mean first delete then insert and then order?
<2> k
<9> arachn1d: yes, check if various $_POST variables were set.
<9> !tell arachn1d about error reporting
<2> Mangusta: grep is saying /etc/sources.list doesn't exist...
<9> arachn1d: that will help you see more subtle problems, such as using variables which are not defined.
<10> Gimp_, sorry, /etc/apt/sources.list
<10> Gimp_, best to ask about this in #ubuntu
<10> they are usually very helpful
<12> evening all... what's the deal with php/pear, PEAR::DB and php version 5?? is it not compatible?
<10> no, it works fine here
<0> Cambridge13: 1.(delete/insert if form posted) -> 2.select in order -> 3.display
<2> Mangusta: actually.. ill go ask in #debian
<10> however, there may be a memory overflow issue in pear::DB
<0> Cambridge13: You already have 2 and 3 working, just put 1. above 2 and 3
<0> Cambridge13: 1. doesn't need any further selecting/ordering of it's own
<12> E_STRICT: ***igning the return value of new by reference is deprecated in /home/rames/includes-cvs/pear/DB.php on line 470
<0> Cambridge13: 2 and 3 run when you first load the page, 1, 2 and 3 runs after posting


Name:

Comments:

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






Return to #php
or
Go to some related logs:

msttcorefonts automatix
kismet.rpm suse
startfluxbox on debian
#gentoo
#python
#perl
python subprocess +close failed
dhcpoffer already seen
koraraa install
#suse



Home  |  disclaimer  |  contact  |  submit quotes