| |
| |
| |
|
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
Comments:
<0> Hilton: thanks! <1> CryWolf: Care to explain? <2> Hilton: just that if preg_match isn't giving you the results you want from a single line, your pattern is wrong. <2> It's too late for me to actually make any sense of the pattern, though. <1> And this is the problem. I don't see anything wrong with it. The preg MATCHES perfectly; but it doesn't SAVE the results properly. <3> please, can i use a global var with many functions other than $_** var ? <2> Hilton: I can guarentee it's doing exactly what you're telling it to. <1> The problem code is: (?:(\w+)="([^"]*)"\s*)* - it matches as many times as is needed, but only the last saves. It keeps overwriting itself in $match. How can I prevent that? <2> Hilton: and please try to keep your problem description consistent. <1> My description is consistant. <1> Your understanding isn't. <4> take that <2> No. In one case, it's only saving the last match. In the other case given, it's failing to match 2 out of 5 matches, but it is getting the other 3. <2> And you wonder why people solve problems that you don't have a problem with. <1> Both are the same thing. <2> In which universe?
<1> Look at the pattern. <2> Hilton: explain to me how "only the last saves" is the same as having three elements in $matches. <1> It has two matching segments. [0] is always the full match... [1] matches fine. Everything past that is the REPEATING MATCH SEGMENT, which only saves once, even if it repeats and matches several times. <2> Ah. You have a problem with your pattern. <1> In the example tag: <e:var name="foobar" mode="ignore" />, [1] is var, and the repeating segment only saves "mode" and "ignore", overwriting "name" and "foobar". <1> **** it. I gotta go. <5> crywolf: It's still returning blank entries in the sql database. http://pastebin.com/548003 is the pastebin. The problem is the array $id[users]. It's posting blank, and I know that it knows its an array because if i just leave it $id - it posts Array. <6> sym0_: '{$id['users']}' <2> tws: $id[users] also works inside quotes. <2> sym0_: var_dump($id) to see what's there. <5> Theoretically, would tws answer be the solution? <2> sym0_: no, that would change nothing <6> sym0_: Practically, you will find out if you try it. <5> checking now <5> i just have to go through 150 requests of bull**** to see if it works <5> heh <5> i havent coded the other element of it in yet <5> and no. <6> sym0_: Try to var_dump($id) like CryWolf said before. <5> checkin... <7> hmm <7> what does a checkbox submit on POST, when its checked and not? <7> checked = value, unchecked = null? <8> something and nothing <7> okies. <8> it doesn't submit anything at all if unchecked. <7> do i check for nothing via isset, or via == ''? <8> no, it LITERALLY sending nothing of the unchecked boxes. <9> if you create multiple checkbox items similr it was p*** an array (if you name it properly) <.. name=checkarray[] > <10> http://pastebin.com/548013 -> Parse error: parse error, unexpected $ in /home2/w0r1d/public_html/index.php on line 140 <7> Jymmm - isset works how i expected it to. <11> god my clones just don't die <12> Hi, complete php newbie here. I am trying to setup subversion->mantis integration. The docs say that I need to run a php script from the command line. But I don't appear to have a 'php' binary. I have all the apache modules and that runs fine. Should I have a /usr/bin/php binary or am I getting the wrong end of the stick completely. <13> HippySurfer_, install php-cli <12> I see, many thanks. <13> then you can run php from your command line <13> Well, no problem, but I'm not entirely sure that this will solve it tho, but perhaps it is something that you need <11> mmm beer and potato ships <11> chips too <11> tv + laptop <11> i gots it made <14> You could get a laptop with a built-in tuner. <11> i'm the king of lazy, all i need now is the porcelen god to sit on <14> Then you'd really have it made. <10> http://pastebin.com/548018 -> $_GET['poll_voted'] is evaluating as true though I haven't submitted the form yet <11> mmm a tuner <11> sorry just s-video :\ <10> ^^ test page -> worldenergies.net <14> An HD tuner. <11> i'm watching CSI: Miami <6> falieson: You're doing = inside if (). <15> falieson, it's == instead of = (one = means ***igning, == means comparing) <10> oh, of course <11> not as good as CSI: Crime scene invest. but... it's good for lat night distractions <10> sorry, to late at night <11> === also works if you know how to use it <16> CSI Miami isn <10> alright, that fixed that part. but it still isn't submitting the information to the database <16> CSI Miami isn't bad
<16> CSI Las Vegas is way better though <16> And... New York is just... ****ty :) ... nobody beats Grissom, NOBODY! RAWR <17> morning <11> erm <11> yeah i dunno what i'm talking about again <11> las vegas, grissle, kicks *** > * <16> grissom, fool :P <11> grissle, hehe <11> anywho <11> i liked new york <11> but showcase doesnt seem to play that <16> New York ones were kind of boring. Miami is not all that fun either, but it has a twist story, which makes it cool <10> http://pastebin.com/548027 ( www.worldenergies.net/index.php ), when selecting anything and then submitting - it doesn't evaluate <11> yeah <16> New York doesn't get played here any more cause it ****ed <11> i agree <11> lol <11> well i can live with the original and miami <11> this epi is good <11> "Grave young men" <16> They used to play Miami then New York in the mornings, now it's either Miami or Las Vegas in the mornings, and like 4 episodes a day on Wed/Thurs <11> mm <10> any ideas friends? <14> I've got a question. <6> falieson: if ( $var == 'val' && $var == 'ues' ), will that ever be met? <14> Why would you use OOP PHP? <6> falieson: My mistake. :) It's $_GET and $_SESSION <10> tws, thats what it should be after the user presses the submit button <10> yah, i made the mistake of using the same title for the two diff so it is confusing <16> kambei: Because object orientation is more organized, generally scales better, easier to understand? <8> gawd this bugs the crap out of me... <18> Where can I find a dummies guide to PHP regarding how to use sql queries for databases and data manipulation inside php documents? <6> falieson: The form is using POST method and you're validating the $_GET? <18> (if that made sense) <8> .069 miles by 0.69 miles == .004761 square miles (seems way too small) <10> tws are you serious <14> cheesecheese: There are a bunch of resources on the web. <10> I definently THOUGHT get <10> btw, is their a difference? <14> cheesecheese: What do you need to know? <18> kambei: i was looking for a personal recommendation, as finding the specific information through google is just sending me into useless blogs <6> falieson: Yes. <18> I need to make this page work, so that it accepts the information in the url query string and then loads it into the form, and then gives me a neat button to press to let me update all that information in the database, changing the original stuff <19> falieson, $_GET is p***ed in the URL <18> but i'm stuck. i can't figure out how to get the database to connect to the form, and then update the fields <18> it's for a porn site, if that excites you into helping :) <19> falieson, http://www.domain.com/index.php?var1=value1&var2=value2 etc etc <14> cheesecheese: It doesn't. <10> tws: that still doesn't fix it <10> =( <10> tws: though it certainly made the submit button work <18> kambei: drat :) <6> falieson: It's funny how you do an `if ()` against any form field being submitted. Why are you doing if ( $_POST['poll_suggestion'] ) while poll_suggestion is a textbox field? <10> I do an if($_GET['poll_suggestion']) because they might not fill it out <10> and if they don't fill it out, I then want to see what they voted for <10> tws: I take it though - that that isn't how its supposed to work <20> is there any way in php to first echo a say "header.html" then isert some code in "whatever.php" then echo "footer.html"? <10> hangten: yes - include(header.html); or require(header.html); <10> www.php.net/include <20> thanks! i was looking at header() but that redirects.. cheers <20> (noob) <10> no problem <10> we all are <10> (at one time) <10> tws: ? <21> ooo snizzap! <22> 5 table(s) Sum 24,426,457 -- latin1_swedish_ci 13.9 GB 0 Bytes <22> funky. <21> 1and1.com was offering a 3 year contract for free, and I signed up (a few times) and just started learning SQL, their SQL support is stupid. 31 char MAX in any entry. They will want $30/mo after the contract ends, tee hee, <23> what exactly is the difference between $_POST['x'] and $_REQUEST['x'] ? <22> REQUEST could be either POST or GET
Return to
#php or Go to some related
logs:
web-cp .deb kernel panic 2.6.16 rec_len notepat+ ERROR 1248 (42000): Every derived table must have its own alias #debian #math #centos #css #debian symas cds how to
|
|