| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Comments:
<0> this is probably a beginner's question, but does the global array clear on each page load? <1> this will all get done for every single request <0> ok <1> brendyn: you start from scratch each time <0> cool, that's perfect then <0> thanks all. i think that solves my problem <2> i have a really long IF statement with lots of && <2> how do i break it onto multiple lines? <2> thanks <2> that works perfect! <1> heh <3> I am entering in a string of text and want to replace all occurrences of newline with <br> <3> what is the newline in php <1> ZeroFear: nl2br() will do it for you <1> nl2br("cheese\ntoast");
<3> well a person is typeing into this text field and then the data goes to the database <3> so i want it to show up in the database as <br> <3> so when it comes back out it will be formated right <0> yeah nl2br() is what you want <3> ok <1> if they can edit the text after it's been stored, you should store it as is and only use nl2br() when you want to show it anywhere but in a textarea <1> otherwise, you'll have to convert the <br>s back to newlines for editing <0> and unfortunatley br2nl doesn't exist ;) <4> nut str_replace(0 does <4> s/0/) <4> !tell nbits about away <5> but Stormchaser, it's so important that we all know we can't get in touch with him now <4> luu: of course. <4> luu: if you can't reaxch him, then call him. <6> can any one help me wit a rpg hack <7> ...What do you have to do? <6> ?? <7> What do you have to do? <6> have to do what <6> can u make one or something <7> Okay, here's how you should start programming something. First, figure out what you have to do. <6> what are u tlking about <7> Then you figure out the best way to do it. PHP seems to be your choice. Then you look for ways to turn what has to be done into code that solves it. <6> i just need a html code <7> ... <8> lol <6> for a harry potter rpg hacj <8> hahahahah <8> this channel is great entertainment :) <7> May I insult him? Please? <8> yes <6> no <8> {DoR}obliverate you obviously have no idea what the hell you need, let alone any idea what the hell you are doing <7> obliverate: ...Dude, you're a ****ing idiot. Please, if you join a programming channel, at least have a decent question. <6> i do know what i need <4> !tell {DoR}obliverate about u <7> You know what the end product should be. <9> hey guys quick question, i have a dynamic set of checkboxes, depending on the page it can range from 0 check boxes to 100 or more...what is the easiest way to keep count of each one so at the end I can check to see if only the check boxes are checked? <9> should i just do <input type='checkbox' name='checkboxarray[]' value='someval'>? <7> daum: Might wanna switch to radio buttons, but okay. <7> Radio buttons of the same name cannot have more than one selected. <9> its for chebk boes, and doesn't the [] at the end just create an array of check boxes? <7> ...No. <7> It names hte element checkboxarray[] <9> http://www.webmasterworld.com/forum88/1085.htm <7> If you want to make sure that only one is selected, radio buttons might be better for the purpose. <7> You can always change the apperance of an element. Changing functionality is harder... <9> FreeOne3000, no, i just need to find out in the end which check boxes are checked <10> anybody know php script that can list files nicely like in a directory <4> hexoroid: php.net/glob <10> tnx Stormchaser <7> foreach($_POST as $key => $value ) { if($key=="itsnamehere") { //This element was checked, value is $value } } <11> can someone tell me if the double quotes in the string in this need to be escaped - $query = "INSERT INTO folder VALUES (1, 0, "stuff")"; db_query($query); <11> or point me to the php manual page which explains this <7> Yeah, double quotes inside double quotes need to be escaped. <11> thanks FreeOne3000 <11> does that also mean that single quotes within single quotes need to be escaped? <12> echo '''; <- error echo '\''; <- happy days <13> heh
<14> if I have a cl*** testCl***2 that extends testCl***, and in the testCl***2-cl*** use a function defined in testCl***, can that function in testCl*** change a value in testCl***2? <9> anyone here know how to process an array of checkboxes? <15> gn8 <7> mishantil: I don't think so. <7> daum: Look up, you can just change my comment line to inserting them into an array. <14> FreeOne3000: damn.. <16> how can i take like 100000 and turn it into 100,000 <17> number_format <16> ah thank you <18> foreach (array('1' => 'foo', '2' => 'bar', '3' => 'foobar') as $i) { $i = md5(uniqid(rand(), true)); echo "$i\n"; } <18> how would i change the $i = to like $i_something = ... <7> Huh? <18> i wanna make unique variables that contain each array value.. <18> like a prefix for each variable in the loop <19> ok, im trying to install php with apache2.2 under ubuntu, when i do ./configure, i get this error: http://pastebin.com/549133 <18> $i_prefix = md5(uniqid(rand(), true)); <19> anyone know whats wrong? libxml2 is already installed.. <20> likewhoa: extract($arr, EXTR_PREFIX_ALL, "pre") ? <18> Mordof: missing libxml2 <21> is there a way to test for STDIN data in CLI PHP scripts? if i start a script that expects some without there being any, it just sits there waiting... <18> Mordof: find where is looking for xml2-config <18> arcannon: no <18> arcannon: the array is coming from $_FILES <19> likewhoa: ok, i installed all the libxml files i could try, and it got it workin.. <22> deltab: I also like the tripple-threat of that guy's name. Three apostles. <18> Mordof: gg <19> libxml2 was installed, but i had to install developer versions, or w/e... lol *shrugs* <22> Er, missed. Ah well. <19> now to solve the next problem, mysql errors.. heh <18> phun <18> arcannon: any ideas? i'm processing 40+ files from a form upload which is generated setup with "file[]" so that it turns everything into arrays <20> likewhoa: hrmm not sure what you want still, did you want to prefix each file name ? <18> i need to set several variables using the array names <23> Anyone have some advice on this: http://codedump.nutextonline.com/view/192 <18> arcannon: prefix each new variable <21> CLI php scripts, checking for STDIN, going once, twice .. :) <18> arcannon: not prefix them with extract but while in the foreach loop <24> anyone know why I'm getting this error emerging php? checking for Apache 2.0 handler-module support via DSO through APXS... configure: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads <7> Make sure it can check to see if your system supports POSIX threads...? <24> well thats helpful <24> how would I do that? <20> likewhoa: :( not sure. Also not sure why you want to do this <25> hey guys <25> what does this mean: " <25> Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/addicted/public_html/venue_review.php on line 9 <25> " <23> Your query died. echo mysql_error() and see what the issue is. <26> <4> !tell nbits about away <26> .- nbits [n=0x0@unaffiliated/nbits] has left ##php [requested] <26> ? <18> arcannon: the foreach has 4 different variables that need to be set from each array but the variables need to have a unique prefix.. <25> I get this now: <25> Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/addicted/public_html/venue_review.php on line 8 <25> You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'limit 1' at line 1 <23> There ya go, SQL error <7> You messed up on a select query. Yay. <25> thank you for helping me finding where to look <18> arcannon: i'm processing them with gd functions then ***igning unique variables based on the each array.. but i don't know how to add a prefix to a variable variable.. <20> likewhoa: I dont know how to set a prefix to a var var either :( <25> is this correct? http://pastebin.com/549149 <18> arcannon: ahh so we both in the same boat <18> arcannon: i'll get the jack daniels, brb <20> likewhoa: :( sorry. <26> this channel has been changed since im not more owner. <9> FreeOne3000, this should work right ? http://pastebin.com/549151 <9> because i am never getting the echo of the Add..yet i'm checking all the boxes <18> nbits: when was you founder? <26> in the beggining <18> cool <18> i just got here.. <25> ASleep|Work - can I message you please? <9> FreeOne3000, nvm <26> used to be brody my nick <18> nbits: why you dropped it?
Return to
#php or Go to some related
logs:
how can i create user defined function in mysql4.x with php mssql replace Msg 8114 RESITION
a copy of glibc was found #ai #math Monarc PPC phpMyAdmin #2002 - The server is not responding (or the local MySQL server's soc +getelementbyid +run perl #suse
|
|