| |
| |
| |
|
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> ds-: Well... That's KimmoA <1> heh, I hope he wasn't really using urldecode <1> ah well, back to things that matter <0> :) <2> error403, you can simply check the key <3> my PHP5.1.2 isn't showing any errors, yet display_errors = On <4> anyone have a particular ajax framework library they'd recommend? <0> !tell gsnedders about error reporting <5> colder, well, yeah... but what kind of check? I cant work out a way to distinguish between them <5> because 0, 1 etc are returned as strings <2> error403, you can still check them with is_numeric() <2> gsnedders, E_ALL & E_STRICT makes no sense... <3> ah. I need |, not &, duh... <2> yes, thats it ;) <5> colder, but a numeric field name can exist..... this is for a database abstraction layer...
<3> colder, having been stuck on that issue, as soon as I ask in IRC I realise it myself. :P <5> colder, what i am trying to do is, 'field1' means it will select field1, but 'field1' => 'field2' will alias the fie; <5> *field <2> so you have the fields' names, and their content, in an array ? <5> no <5> lets me explain <2> you've an array that looks like what mysql_fetch_array(..., MYSQL_BOTH); returns ? <5> say for example the variable p***ed for the fields is array('field1', 'field2' => 'field3', 'field4'), it would turn that into SELECT field1, field2 AS field3, field4 FROM ....... <2> arg, thats not a good use of arrays then <2> the => doesnt mean "will be aliased by" <6> hmm <2> you could use <field> => <alias_name|false> <5> i know it doesnt <5> i'm trying to use it that way though.... <7> Hello, i get an Duplicate entry '' for key 5 error with this code: $sql = "INSERT INTO $tabell (fnamn, lnamn, nickname, losenord, email, alder, msn, aim, icq, hemsida, irc_kanal, userlev) VALUES ('$_POST[fnamn]', '$_POST[lnamn]', '$_POST[nickname]', p***word('$_POST[losenord]'), '$_POST[email]', '$_POST[alder]', '$_POST[msn]', '$_POST[aim]', '$_POST[icq]', '$_POST[hemsida]', '$_POST[irc_kanal]', '1')"; <7> $result = @mysql_query($sql) or die(mysql_error()); <5> how else, with an array, should i show it as being an alias? <7> What could be wrong? <0> why are the $_POST things in quotes? <6> NiGHTFiRE^ - sounds like you have a constraint on your table <5> colder, maybe just have array('field1', array('field2', 'field3'), 'field4') ? <0> Em... nm <2> NiGHTFiRE^, is the index that is unique set to auto_increment ? <5> colder, and use is_array() ? <7> I got a lot of unique keys in my table, can i only use 1 at one table? <2> error403, that would be a solution <2> NiGHTFiRE^, it looks like your unique keys are not automagically set to a value that doesnt exist yet. <5> colder, or maybe just separate them with a char that isnt legal for a field name.... hmmm <2> error403, I don't think there is one :) <7> can i somehow give a mysql command so i can see the structure of the table without i gotta retype everything for hand? <5> colder, really? so you can have | in a field name? <2> error403, that's what back ticks are for ;) <5> NiGHTFiRE^, DESCRIBE table; <7> ty <5> i see <5> hmmm <5> testicles <2> error403, what is the problem with array('field1', array('field2', 'field3'), 'field4') ? <5> colder, isnt one, just exploring my options <5> i barely ever get anything finished, because if i find something better than my current method, i update <7> This is my structure: http://nopaste.php-q.net/188892 <8> guys what would i use to add text to an image in php? <2> NiGHTFiRE^, are you sure everything is filled ? (in the $_POST ) <9> anyone here good at flash? <10> ? <7> I'll fix in everything and try again, hold on <10> "good" at lash <9> macromedia flash <2> GeekToe, imagefttext() <10> perhaps if you asked a real question you might get an answer <9> I know, i know... this is a php channel <10> or you might get rebuked <10> its 50/50 <2> or imagettftext() <4> anyone have a particular ajax framework library they'd recommend? <8> ok colder <11> http://www.codepost.org/view/94 is very simple for ajax like stuff <7> Hmm, okey well now when i filled in absolute everything it worked but i don't want that they nee dto fill in everything cause some fields aren't important it's jsut for contact with other members. <2> NiGHTFiRE^, then don't make them unique :) <7> okey :) <12> I'm looking for a good, free PHP editor for Windows. I use Crimson Editor right now, but it crashes a lot on me. :/ My problem is that most of the editors have a bunch of WYSIWYG options that I don't bother using anyway. Anyone got some suggestions?
<8> colder, how would I put a jpg background to text I get using imagettftext? <2> Tachyon, weaversalve, (g)vim, etc.. <2> GeekToe, look on http://php.net/image <8> ok <8> thanks <7> Lol how do i change it, can't find where to do it in phpmyadmin <9> oh I want to hire a flash expert <2> *sigh* <9> nuff ching $$$$ <2> Megan001_, no ned to look here. <2> *need <13> Megan001_, read the guidelines. <13> 7) No spam/bots/scripts/trolls/job postings <9> oh <9> ok <13> enygma, if the pay's good enough. <6> Julian|Work - I'll pay in pudding <14> How do I get expect into my install of PHP? <15> BrokenPipe: expect is an external program, you don't install it "into" php <13> enygma: good times <6> :D <16> enygma Do you know what to do with a personal slave by chance? <14> "n order to use these functions you must compile PHP with expect support by using the --with-expect[=DIR] configure option." <6> Jymmm - um...make their life miserable? ;) <6> BrokenPipe - that's compiling into PHP <14> I'm on a gentoo box, so I'm trying to figure out if there's a way to do it with the package manager. I don't really want to compile it by hand. <6> ****s to be you ;p <17> does php has an xml writer (all i see from the docs is xml_parser)? - like giving an hash array and it make a xml file out of it... <6> mcm - there's ways with the DOM stuff <6> but there's no "magic function" for it, no <16> enygma: no no no you silly bitch.... you torture them mentally! <14> enygma: It's not that I can't. =P I just need to make this setup as simple as possible for coworkers to duplicate. <6> ahh <17> enygma: ok thanks. <6> BrokenPipe - oh, well, unless there's a packge out there that includes it, you're going to have to compile <15> BrokenPipe: so gentoo's ebuild doesn't have support for expect? <15> BrokenPipe: looks like it's in PECL <14> I'm not familiar with PECL <13> Think PEAR, only compiled extensions. <14> Is it like Perl's module installer? <13> Close enough <15> php.net/expect <15> there's a URL to the pecl package, or just "pecl install expect", if you have pear installed <14> Is that a per-user install? <14> Will be server-wide if I'm root? <15> server wide <18> hello. just a question about mysql + php. i have this query, and it fails. on phpmyadmin, goes fine. what's my problem? $query = 'select 1; select 2;'; <15> or, in the scope of your php install anyway <15> zaikxtox: the mysql api that php uses doens't support running multiple comands <15> or at least they way php is using the api <15> or something like that <14> damn... installing php conflicts with having mod_php installed <15> it's actualy a good thing because it limits the types of sql injection that will work <15> BrokenPipe: what distro? <18> ||cw, you mean, that phpmyadmin does some magic work to overcome that limitation? <15> is there a php-cli package? <15> zaikxtox: yes, it explodes on ; and runs them one at a time <19> is there such a thing as UUID() in php? <2> well, mysqli can handle multi queries. <15> probaly more like regex though, so that ; in the data won't toss it <14> ||cw: Gentoo <15> mysqli won't work with mysql <4.1 <15> BrokenPipe: i think use cli, or something <15> BrokenPipe: it should be able to compile botht he apache mod and the cli binary in the same p*** <15> or at least regular ./configure does <19> is uuid implemented in php at all? <14> Oh, it does, apparently there's a difference between dev-php/php and dev-lang/php <20> kombi__: http://pecl.php.net/package/uuid <14> Gentoo is pretty cool, but sometimes... <15> heh <14> I can't find a stand-alone pecl or pear package. <19> mattmcc: thanks mattmcc, looking at it <15> gentoo is interesting, but i wouldn't go far as say pretty cool
Return to
#php or Go to some related
logs:
installing ventrilo on ubuntu
firestarter on drapper funlix default ubuntu username command for psi-jingle psybnc hangs cyclone download ubuntu fl4 ubuntu mysqldump error 1033 incorrect information do_syncrep1: rid ldap_sasl_bind_s failed (-1)
|
|