| |
| |
| |
|
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
Comments:
<0> dan__t, sounds like you are right with using the 2.2 branch then <1> i have a small little private network <1> cythnet.com <2> oh, alrighty : ) <3> hrm <4> doing that DCC exploit is an annoyance to everybody involved <5> is it better to select some redundatnt (strings) informations in one query? or is it better to make more queries , saving it in some arrays(uniques) and selecting the values by id from the other arrays? <2> hehe, i'll make sure i try it <2> once i leave : ) <1> frog: use sql joins? <4> silentt: only if you want to get a somewhat bad reputation ;) <5> cythrawll: yes <2> lol i don't have MUCH of a reputation anyways :P <5> well im wondering what i better <3> Looks like headers live in /usr/include/apr-1/, Jy. Can you verify this? <4> silentt: you don't want people hanging on your every word
<2> new nick possibilities are endless! true tho :P <0> dan__t, i don't have 1.x of apr but mine are in /usr/include /apr-0 <2> ok my PHP problem is im posting user input, but how do I check if its valid? and I have a lot of inputs, do I have to right a check for EACH input, or can I do it all at once somehow? <2> im using isset() trim() and ctype_alpha() <2> to check the contents <2> is this noobish? lol <1> better to do it for each input, i don't know what your form looks like, but each input will have different rules for validation anyhow <2> i have 'type of food' and 'quantity' <2> and then about 10 rows <2> that's pretty much it <1> so you have an array structure <1> basically <2> do I? lol <2> i have no clue how to use an array or implement it <1> well you have 10 rows of type of food and quantity right? <2> correct <1> first thing that comes to mind is name each form var: food1 quant1 or similar <3> Welp. <1> food2 quant2 <2> yah, done that <3> guess we'll go back to Apache 2.0 <2> foodone, qty_foodone etc <1> and loop through them <1> something like $_POST['food'.$i] <6> Hi everyone! Noob here :) Using WAMPS and I just learned the basics in mysql and php. How would you guys do when you want to add and manage users in a community? please... <1> store them in a mysql database <7> can round() round 78 to 80 and 54 to 50 and so on? <2> cythrawll: do i start $i = 0 <2> ? <8> Raz: I'm guessing: Windows, Apache, MySQL, PHP, and...you got me on the "S". <2> errr or 1 <2> food 1 <1> 0 and use $i++ <9> TML: http://www.between-the-shadows.com/images/sonoratop.jpg <1> i think <9> TML: A "stick" on that "S"? <2> how do I ***ociate a number with a food <1> TML: S stands for Spyware <6> TML: yes <9> o.O <1> common wiht the W <2> $_POST['food'.$i] <2> ? <1> silentt, i think that should work <10> silentt - every time you eat the food, say the number over and over ;) <11> lol <2> ok i'll try and get back to you <1> ijustmadeitup, i think i've done something simlar before tho <2> .......... >< <12> silentt, use arrays in your form directly if you need something variable and repetitive <2> colder-: i don't know how lol <2> colder-: been using php maybe 2 days <12> name them food[1] , food[2] etc.. in the HTML. <6> TML: do you have any experience in user accounts on communities? <12> then, $_POST['food'] will be an array. <1> silentt, what colder suggests will work <12> cythrawll, thanks for making me sure! <1> if your good then you can vary the amount of form fields that way too <2> ok i'll give it a shot <2> lol im definitely NOT good
<2> hah <13> if I join two tables, which each contain a field with the same name, how would I access each element in the resultset using either PEAR DB, Php builtin mysql, or PDO? ie. $row['id'] -- would it belong to Table A or Table B? Can I do $row['tableA.id']? <14> ghostrunner: use aliases to avoid ambiguousity <1> ghostrunner, in mysql you could use a field alias for each one <13> bazzi: aliases? not familiar with it, but I shall research <15> Does anyone know of a support channel for Diebold or Micros systems? <13> cythrawll: ok, thats two for aliases, will look into it, thanks! <16> has anyone used RegisterFly's VPS hosting? <1> ghostrunner, SELECT tablea.id as aid, tableb.id as bid <2> cythrawll / colder- : i've been doing this up until now: <2> http://pastebin.com/731828 <1> then $row['aid'] and $row[ <1> 'bid'] <1> would work <2> just a small FYI :P <13> cythrawll: sweet... thks! <2> i'll try what you two have suggested <3> bah. <17> hi, im trying to connect to a mysql database, when i call mysql_connect from my php script i get 'undefined function' i have extension=mysql.so in my php file, anyone point me in the rite direction? runing php5.0.5 on ubunto <1> silentt, something i usually do: make a variable called $error set to false <1> and $errorstring as an empty string <18> marl, run php -m on CLI, get any errors? <2> k <1> when an error condition is true, set $error to true, and set some sort of user erro message in the string <18> marl, then try to restart apache, see if the error continues <1> and when it finds another, it appends the string with another error message <19> if i have a form and a post something with the name of "gallery" later in the code, can i refer back to that post by doing $_POST['gallery'] ? <18> marl: finally, check phpinfo() to make sure it's using the correct php.ini <2> so ALL errors are displayed at once <2> and not one at a time? <1> then when all validation is done, then check if $error == true and if it is, echo the error string, and 'die' <1> exactly silentt <2> that's a good idea <17> php -m shows no errors and shows mysql, have already restarted apache2 (hit that one before!!) <2> i was having that problem as well <2> cuz what if food one is okay but food two isn't... etc... <20> marl: what php.ini file did you edit? <20> /etc/php5/apache2/php.ini ? <21> xshad: say, do you have any special php.ini configuraiton for soap? <21> configuration* <17> running phpinfo, shows /etc/php4/apache2/php.ini <20> marl: then your webserver isn't running php5 <18> what version of PHP does it show? <17> have also edited that one <17> php4 :( <22> anyone can help me install cacti on fedora <18> marl, remove php4 and re-install php4 <18> php5 <23> Is there any place where I can evaluate the progress of php 6? Is it currently in trunk? <1> marl: just reconfigure apache to load php5 module instead of php4 <9> sidoli: no. <18> sudo apt-get remove php4-common && sudo apt-get install --reinstall php5 :) <21> without the :) <18> or just reconfigure apache as cythrawll says <18> personally, I have all sorts of problems with phpize and such not because of PHP 4 being on the same system <1> yes uninstallation of php4 is also recommended <19> if i have a form and a post something with the name of "gallery" later in the code, can i refer back to that post by doing $_POST['gallery'] ? <1> CLucas916_x64, as long as it is in the same file, yes <24> HOLY CRAP I FIGURED IT OTU <24> I WAS TRYING FILE OPEN ALL THIS TIME <24> oy <24> can you ping in php <9> o.O <24> yeah <25> hi <24> i need to check if a certain IP is accessible before running a script <25> do I need date("Y-m-d") or $_POST[date("Y-m-d")] to insert date into a table from a php page? <24> or a certain script or whatever <24> well i mean a certain website <26> azuranz: you can run applications in PHP... shell_exec('ping xxxxxx'); <1> azuranz, your connection method of whatever your using should give that functionality <27> Kartagis: just date("Y-m-d"); <24> how do i say if shell_exec('ping rreturns a result? <28> in_array vs. preg_match... which wins
Return to
#php or Go to some related
logs:
perl pretty popup_menu(-name=> -value perl + decode_utf manipulating the HTTP_Referer +Python
suse j2ee_home failed to open device brother2 #physics debian splashy grub i810 Too many open files at solaris perl no line break youtube #suse
|
|