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



Comments:

<0> hi RainMkr...thankyou for the help you gave me the other day...it helped out a lot
<1> jason: anything that can be a form element can be used in conjunction with php to insert data into a mysql table.
<1> and some things that aren't - but lets leave that for now
<0> mikere, well, may i paste my code into a pastebin so you can see what i have?
<2> anybody here have "vista ready computer monitor"?
<0> can someone here help me wtih combo boxes? i vae tried googling to no avai;
<3> go on
<0> combo boxes anyone?
<4> no thanks
<0> don't use them?
<4> what are they?
<0> instead of typing in a value, you select it from a list, and the it supposedly goes into mysql
<4> you mean in html?
<4> <select> drop downs?
<0> yes
<4> ok, then yeah



<0> hermit, yes
<4> they are called selects
<4> what of them
<4> and just for the record, they don't put anything in to mysql
<0> well, i have a select which selects from types of raw material, and then i have a script which is supposed to send it into a db..but it doesn't.
<4> they just allow a <form> to p*** the selected value to the target action
<4> ok
<4> well that's a tough one to diagnose without seeing some code
<0> there are two other pieces of info that go to the db, but the select does not
<4> ok
<4> that helps narrow it down a bit
<4> now show me the code
<5> does preg have [:punct:]
<5> ?
<0> hermit, may i post my form and database code in pastebin? do you mind looking at it?
<4> yes
<4> post it
<4> show me the form html and the code that handles it
<6> is there a way to use smarty without installing it systemwide? i don't have root on the server i want to use it on
<5> I'm trying to create a user management system... is there any reason to create a function that uses preg to check what characters the p***word contains?
<5> or should I allow ALL characters for p***words?
<0> hermit, http://pastebin.com/635388
<7> nautiazn85: it's not necessary to restrict characters in the p***word, since you'll be hashing it anyway.
<8> How do I get e.g. time() to return the time in a particular time zone? Just moved from a server with CET to an EST server, but would like everything timy to remain the same.
<4> jason_: k i was just heating up food
<4> looking at it now
<0> hermit, thx
<4> jason_: you have conflicting names
<4> <select name="select"> appears a bunch of times
<4> you want to name that the name of the receiving end variable
<4> and there are lots of other things we need to do about this code as well
<8> Oh, and I found date_default_timezone_set, but I'm running PHP4.
<5> CryWolf: thanks
<4> grabbing my warm food brb
<0> hermit, k
<4> hm where to start
<4> ok first of all, jason_ you have a bunch of nested selects
<4> <select><select><options></select></select>
<0> hermit, just so u know, two of the variables are successfully handled by thes cript
<4> jason_: which variables
<0> $spec and $footage
<4> yes
<4> those work because they are <input>
<8> Ah, found it. putenv
<4> its all your <select> boxes are ****ed
<4> you also need to not be using register_globals stuff
<6> is there any way to install smarty without root privs?
<4> and you aren't
<4> cancel that one
<0> okay..can i just put commnet characters around it? like '//'?
<4> jason_: each of your <select> entities needs to have a unique name="" thing
<4> jason_: around what
<0> hermit, never mind
<4> and you need to make the <select> boxes not nested
<4> jason_: let me edit this code
<4> and i will save the changes
<7> fires: it's just a script.
<4> and you can look
<0> hermit, thank you
<6> oh okay
<6> thanks



<6> it looked from the install guide like it had to be placed in /usr/local/lib/php/Smarty
<4> jason_: http://pastebin.com/635393
<0> hermit, ok
<4> that html code should work for you
<4> unless i missed something
<4> and once you have it working, i will make a few suggestions to make it a bit more safe/nice
<4> you don't want to be inserting data straight into mysql without doing a mysql safe escape
<0> hermit, just trying it now
<0> hermit, you got it!!!!!!!!!!!!!!!!!
<0> now, let me look to see where i ****ed up
<4> jason_: you had a bunch of <select>s littered around
<9> This isn't the place for smarty, try #smarty instead.
<4> jason_: remember that you want all name="" attributes to have unique values
<4> at least in the case of input and select fields
<4> if you have two forms with the same name, one will be overwritten by the other
<0> hermit, now i have to tackle the month and day thing
<0> hermit, thank you for helping me
<4> jason_: you're welcome
<10> I am trying to learn php and and get that to work with databases. I am a little confused right now... I have two exampels on how to connect to mysql. They are identically accept for one thing. One of them has "$link= @" in front of the stuff that is suggested in the other example... As far as i know that means that you are giving the veriabel link that string... But that seems usless to me. can somebody explain?
<9> !+@
<11> [@] The PHP error control operator that suppresses errors (@foo()), see: http://php.net/operators.errorcontrol - Don't use it. Think I'm wrong? Ask me about "GO".
<4> @ hides errors
<4> yeah
<4> nibbo: you can put @ before any function call to have it surpress errors
<4> it's considered a bad idea in general
<12> Anyone has a good PHP ide to recommend for Linux?
<4> jpofy: eh
<4> how IDE do you want it?
<4> integrated debugging, etc?
<4> if so, thre's very little to choose from. Zend's Zend Development Environment which is Java based runs under linux
<12> I used PHPEdit in Windows and liked it
<4> I don't care for it, but it's very complete
<4> Eclipse also has a php-eclipse plugin
<4> and Zend is in the works of making a Zend PHP Eclipse IDE
<4> but that's not usable yet
<4> personally I only use vim
<13> i use activestate komodo
<4> xxoxx: that's commercial right?
<4> do they have a free edition?
<13> yeah
<13> not free
<4> is it java based as well?
<6> zende development environment <3
<13> but very complete
<10> hermit: ok.. but why use the $link then? because he dosent use it. he just says that thats how you connect to your db...
<4> I find ZDE so awful in the UI
<13> i love xdebug integrated support
<10> i mean that he dosent use the veriabel...
<12> i have got vim installed, but it's 1) too advanced 2)too simple ;)
<12> I'd like "code-windows"; i.e. popups that tell me in which order the p***ed vars should come =)
<4> nibbo: when you create the connection to the server $link is the resource which represents that connection
<13> xdebug integrated support in komodo is very good
<14> hermit, I love ZDE
<4> nibbo: you may or may not need to use that $link later on
<4> Davey|Laptop: i like what it offers but I find it to be spotty java UI which is so expected from a java project
<10> ok thanks alot man :) for the help.
<4> nibbo: pas problem
<4> Davey|Laptop: but apparetnly zDE is not so hot because i understand zend is dropping it in favour of eclipse
<14> hermit, sorta
<4> eclipse has a vim plugin which makes it almost usable
<4> but still i can't stand those overweight DEs
<4> i am just using apd debugging in my application
<4> ctags is a good way to manage the code as a project too
<14> hermit, I believe they think they've come to the end of the road with the UI toolkit they're using, and why duplicate effort?
<4> Davey|Laptop: whatever the reason is, i think eclipse will be a benifit to the whole thing
<4> I just wish there was a good native linux IDE for php
<4> something gtk2
<4> but without m***ive gnome lib support required and stuff
<4> just a good editor with debugging capabilities and profiling and project management
<12> yeah
<12> I'm downloading eclipse and zde to try now at least
<4> even if there was, though, i couldn't switch from vim
<4> jpofy: you'll need the php-eclipse plugin to go with eclipse
<4> out of the box, it's just a java ide


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#suse
#fedora
webmin-1.290-1.noarch.rpm: not an rpm package (or package manifest):
ssh submit remote background job
#php
livina rpmforge
#web
maatila.mpg
fedora hwbrowser hal-device-manager
EvanCarroll #math google



Home  |  disclaimer  |  contact  |  submit quotes