| |
| |
| |
|
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
Comments:
<0> Lomat: NO IT WONT! <0> god <0> since when does an XHTML document start with <?= <0> I have short tags off >.< <1> I go a check like, if(!$_GET) $_GET = $HTTP_GET_VARS; <2> sorry i miss read the <?= part above and cleared the window :) <1> s/go/do/ <1> beebop: I still use them, but I check to make sure my version supports them first <3> $_GET =& $HTTP_GET_VARS; <0> Lomat: this is why I've been trying to get across, <?= is a supported part of php, it works with short tags turned off, and doesn't interfere with XML :( <0> anyone fancy helping me with my problem now? :) <1> kestas: That would work too <1> :) <3> imphasing, it would be a few nanoseconds faster too :) always a good thing <1> kestas: hehe
<2> bah too much of it, whats you issue MikeH :) <0> I'll repeat <0> "can anyone look at this: http://pastebin.com/566697 - it displays this page: http://new.stimulate-gaming.com/matches/ - the problem is, it's only showing one result under each "type"" <1> MikeH: You're also ***uming that the version of php that someone is going to be using was built with "-enable-php-tags", but you're probably not concerned about compatibility. I'll just give it up. <0> and before you say it, I've checked the query in mysql, and it returns more than 1 result <0> imphasing: I compile my own php thankyou, and it wasnt built with -enable-php-tags <1> Never under estimate the power of mysql_fetch_***oc <1> :) <1> MikeH: Hopefully the next chump that runs it will think just like you. <0> are you one of these troll type people that think everyone must code like you? <1> I think it's good coding practice to make sure your code is compatible with version LOADS of people use. <1> But that's just mean. <1> You go do your own thing. <0> I think you are failing to see the difference between a short tag (<?) and the echo operator (<?=) <4> imphasing: most of the stuff in php5 isn't compatible anyway... what's the point then? <2> MikeH: shouldn't you use ORDER BY type instead of GROUP BY type <4> cl***es anyone? <5> MikeH: actualy, <?= is one of the features that short open tags turns ON <1> infect: Hah, no cl***es for me, thanks. PHP's cl***es scare me.. <0> Lomat: well the first query is just to get the different "types" that are in the database <0> the second grabs all the rows with that type <0> so each type has its own heading <6> I am needing ***istance with a function that is not working correctly. I have constructed a function that takes an array and implodes it, once it is imploded, I am needing to encrypt it so I can drop a cookie. When I go to decrypt and explode it, I am not getting original three values... Can anyone help me with this? <6> BTW, as long as I do not encrypt the array, the implode and explode works just fine <0> and ||cw: i have short tags OFF and it works fine <5> and your tabbing, or lack thereof, makes it really hard to quickly see where your loops start and end <0> gabrielone: surely you need to encrypt each value in the array, not the array it's self? <0> It's tabbed <4> has anyone gotten this error before? "Warning: readdir(): supplied argument is not a valid Directory resource" <0> some lines are a little long, but it's tabbed... just :P <4> i know that it 1) is a directory and 2) has 777 permissions <6> MikeH: I just tried that and I am getting an Iv size incorrect on the decrypt function when the visited page goes to validate and decrypt the cookie... <5> you have if blocks inside a while block that are to the left of the while block, that's NOT tabbed <0> infect: the directories below it permissions <7> hi allz <8> infect: is your server running safemode on, and how did you create the folder <7> Stormx2: ping <5> anyway, i don't see a problem with the code, must be your data <2> MikeH: you could try... while( ($re = mysql_fetch_object( $result )) !== FALSE ) Maybe the next row object is being evaled as false? <0> gabrielone: I'm not sure about that one, it is tabbed fine in my editor, not sure why that happened <4> sema: folder was created via ftp <6> MikeH: I can post the snippet of code if you would like to look at it <6> k Thanks.... <1> infect: What OS is the php running on? <8> infect: ok, if it was created by php it could be a server permission error on safemode on <4> freebsd 4.9 i believe <0> gabrielone: how do you mean? <1> Hrmm.. <5> MikeH: my guess is that you used tabs on some liens and spaces on others, but the tabs-per-space fo pastebin is different than your editor <0> texturizer is a bit funny like that <0> sometimes it tabs, sometimes it spaces, it normally converts tabs to spaces when copying and pasteing <2> MikeH: you could also echo the result from mysql_num_rows() 'just to make sure' that there should be more then 1 result. <1> Yay for vi's space-tabs <1> :) <0> and ||cw - the query works fine in mysql command line <0> good plan Lomat :) <4> sema: safe mode is off and the permissions are 777 on the folder and the folder above <4> imphasing: i doubt it's freeBSD's problem? <0> aah <0> Lomat: there are 3 rows <0> while just doesn't seem to be looping
<1> infect: Well, sometimes if you're running it on windows, since they have a different directory structure, it could cause problem, but that's obviously no the case. <4> imphasing: hmm i see <2> Mike did you try what i said about about the while loop? <0> while( ($re = mysql_fetch_object( $result )) !== FALSE <0> I'll try it <2> MikeH: ha ha ha ha just spotted the bug :) <0> oh yeah? <5> MikeH: ahha i just saw it <9> why isn't this valid? $start_tag = "<txt$nbr>"; ? <2> MikeH: look at your 'match result' code :) <5> $result = mysql_query..... <5> $result = '<span style="co.... <5> you are killing your results <0> oh <0> lol <0> haha <2> ;) <7> anyone of you from NY ? <0> well spotted guys! <0> thanks <0> yay, works :) <9> anyone? <10> stylus, it is valid? <4> StylusEater_Work: try concatenating it outside of the "s <1> StylusEater_Work: Try $foo = "<txt."$nbr.">";? <9> well...I'm creating start and end tags <9> to use to parse a file <7> $start_tag = "<txt{$nbr}>"; <10> do you want $nbr to be replaced? <9> ahhhh...let me try that imphasing <1> Or what CPUnerd said <9> yes I want $nbr to be replaced <10> ooooooooooow :) <4> $start_tag = "<txt" . $nbr. ">"; <10> $start_tag = '<txt'.$nbr.'>'; <9> thx <9> infect and Ruud: I get a T_CONSTANT_ENCAPSED_STRING error with those two <9> CPUnerd: that doesn't return anything...as in...when I echo that variable <9> it contains nothing <7> paste your code on some pastebin <10> stylus, in that case you probably missed something like a ; at the end of the previous line <7> ~pastebin <7> !pastebin <7> last try <9> nope...checked that Ruud <7> !paste <9> k thx <4> StylusEater_Work: pastebin it? <9> I have a whole slew of files... <9> this is just an include <4> just the few surrounding lines <7> what if you just print '---> ' . $nbr . ' <-------'; <9> www.pastebin.com/566756 <7> well, where do you define $nbr ?? <9> brb <0> hrm <0> is this a valid mysql query <0> SELECT * FROM table WHERE us < them; <0> I have 1 field where us < them, yet it doesn't show the result <0> It's really strange :| <11> strings generally need to be quoted <4> MikeH: what type is that field? <0> they are fields <0> err int <0> both "us" and "them" are int <4> try using the extended form... thisTable.us < thisTable.them <0> hrm <0> no <0> for some reason they are char <0> even though I set them to int <4> :) <0> stupid phpmyadmin <0> yay, finally have a half completed results page \o/ <0> looks quite good too :)
Return to
#php or Go to some related
logs:
#ubuntu ubuntu downgrade apt-get mythtv #lgp #linuxhelp how to unfreeze screen irssi #lisp okiesmokie ubuntu detect wlan0 lspci -ndiswrapper formatting ex3 in linux suse online-update-configuration curl firewall
|
|