@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
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



Comments:

<0> Elazar, great then that should be the culprit =)
<1> it goes through an ***ociative array i fetch just fine
<2> johnjacky: It's good programming practice to define constants before you use them, anyway. Do define('P***WORD', 'whateveryouwant');
<3> Elazar, yes that cleared the notice, but still my major issue exists.. :-( The o/p is not being displayed on browser :-(
<2> johnjacky: Try calling var_dump() on various variables throughout the script to make sure they are what you think they are.
<4> ||cw: Hey guy, that looks what i need, that tip you have give me. I have try it, it's looks to been work :-)
<2> johnjacky: If errors aren't displaying when you run it via a browser, you might try checking your display_errors setting.
<2> evaded: He has been known to give good advice every once in a while. :P
<5> any of you seen a file dropload type php setup? I need something just really simple - where anyone can upload a file, and then see the link to get it
<4> Elazar: :-)
<5> I realize it would be easy to write, but if one already exists...
<6> How do I rehash php so it would show up the openssl module in phpinfo(); ? Or do I have to restart apache?
<7> cruocitae: The latter
<8> is anyone using pear's DB_Table ?
<1> foreach ($dbh->query("SELECT First_name, Last_name, MailAdd1, MailAdd2, MailCity, MailState, MailPostal_Code, Email, Phone1, Phone2, Fax, ShipAdd1, ShipAdd2, ShipCity, ShipState, ShipPostal_Code FROM User WHERE Email = '" . $_SESSION['User']."'", PDO::FETCH_***OC) as $row) { foreach ($row as $key => $data) { works, but foreach ($_POST as $row) foreach ($row as $key => $data) { does not, why?



<1>
<1> foreach ($dbh->query("SELECT First_name, Last_name FROM User WHERE Email = '" . $_SESSION['User']."'", PDO::FETCH_***OC) as $row) { foreach ($row as $key => $data) { works, but foreach ($_POST as $row) foreach ($row as $key => $data) { does not, why?
<1>
<2> sky: What version of PHP are you using?
<1> 5.1.x
<9> Can anyone see why this doesn't work? http://pastebin.com/642433
<9> I'm getting the unexpected T_ECHO error for line 3
<2> sky: Do print_r($_POST) as see what you get.
<1> I get an array Array ( [First_name] => Sky [Last_name] => etc
<10> Aw0L: semicolons are a wonderful thing
<10> and so are braces
<11> what driver should i use to connecto to ms sql express with php? i have problems with the built-in ones
<2> sky: $db->query ... returns a multidimensional array.
<2> sky: Unless you're using array syntax in your form field names, $_POST is a single-dimensional ***ociative array.
<9> lostage, if I used a '{' - I get an error for that instead
<9> I"m missing something really really simple aren't I?
<2> sky: Do this: foreach($_POST as $row) { print_r($row); }
<10> perhps closing your parenthesis on your if statement
<10> *perhaps
<1> hmmm
<9> lostage, oh crap - I knew it was something rediculously simple
<9> thanks!
<1> so I should foreach($_POST as $key => $data?
<2> sky: You can, yes. In that case, key should contain the name of the field and data its respective value.
<1> OK i just did that
<2> sky: I would read up on how foreach works if I were you. The manual is a wonderful reference.
<1> yay thanks
<2> sky: And probably arrays in general.
<1> I didnt recognize the multidimensionality of the first
<1> tried it that way actually but I had a bug so it didnt work, needed more encouragement I guess
<3> I am lost..var_dump display every html and the output also
<12> html must be stored within the array
<12> you just gonna have to look through it
<13> Pollita?
<2> sky: print_r() and var_dump() are also useful.
<14> Ange1a !
<1> ill have to read about var-dump but i use printr all the time
<13> Hey Jymmm, how is it going?
<14> Ange1a: Not bad, yourself?
<13> Jymmm: I bought a volvo
<13> and going to sweeden to pick it up :)
<13> I am such a wanker
<14> Ange1a: Eeeeeeeeew, I hate Volvos and their drivers!
<14> Ange1a: now, the goin to part part is cool =)
<13> yea aparently you pay for the car here, they send you air tickets, hotel vouchers and a free week of insurance
<13> you go to sweeden, pick the car, test drive it for a week, then return it to volvo, they'll pack it up on a boat and send it to the US
<13> for free
<14> Ange1a: you serious?
<13> yea
<14> Ange1a Damn...
<13> so it's safe to say I am buying a car for the free airplane tickets :)
<13> and cause I need a car
<14> Ange1a: What happened to the car Pollita bought you?
<13> Jymmm, I picked up snowboarding :)
<13> I need something that can go to tahoe
<13> and carry my plank
<13> erm board
<14> lol
<13> anyway
<13> that
<14> Ange1a: Tickets for two I hope?



<13> plus I am in charge of the sarbane oaxley crap at my company
<13> so I've been dead busy
<13> Jymmm: yes
<14> Ange1a: So, what's Pollita gonna do when WE are in Sweden?
<2> sky: var_dump() is like print_r(), but more detailed. Has type information and such.
<13> hehe
<13> Pollita wants to go to a php conference in germany or something
<14> Noooooooooooooooooooooooooooooooooooo!
<13> so we are thinking road trip: sweeden -> germany -> sweeden
<13> what better test for my new car
<13> plus
<13> I just have to drive in the autobahn at least once!
<13> mwahahahah!
<15> hey all, i find myself having to make a compromise between the elegance of OOP and the speed of a non-object approach. Specifically when it comes to outputting an html table of data from inter-related database tables. Does this sound familiar to anyone?
<14> Ange1a: You know the rules about driving on it dont ya? You get into an accident it's your fault, they just use a bulldozer to push your car to the side of the road.
<13> I wouldn't know I'v enever been to germany
<13> but I suspected so
<15> for example, i've got a "Project" object, with attributes like price, status, owner, etc. But the status is a lookup from a related table. So when i want to output a list of all projects with their status, i can either get a list of OBJECTS, and have each object look up it's own status on instantiation (elegant, but slow), OR i can simply do a join on the database tables, and get a more complete database output.
<14> me neither, just watch way too much Discovery Channel
<13> anyway, I figure that if I crash going something like 140mph... there won't be any left overs for them to bulldoze off the road
<14> lol
<4> ||cw: You have give me there a good tip about that <?php define('WEBSURL', 'http://localhost/~david/test/test_website/02/');?>; But i have mess it up. I no more understand it.
<4> On the other side i write been?? <?php echo '<a href="'.WEBSURL.'"html/articles/index.php">';?>List of All Articles</a> Is that been correct?
<4> ||cw: It's sure, not. Because it no more work. I have do an mistake some else, but where?
<4> ||cw: So that first part i have set it in the 'top.php' page. So that it's loaded in every page. That second part, could be in every document
<16> hello, I am looking for some sort of PHP script that will basically will act as a web browser itself
<16> does something like that exist?
<13> anyway, back to work
<13> Jymmm nice talking to you
<13> we should go play pool one of these days
<17> hello, does anyone know how HTTP headers are set in php?
<14> Ange1a have fun!
<13> or snowboarding :)
<4> What not work. ^^ I see no more the 'html/articles/index.php' on the link it point to localhost only
<18> Genfoo: can i message you?
<16> itrebal, yes.
<19> I have my validation code, here http://pastebin.com/642486, and I want to have any errors stored in a session, then the error data in the session will be used to construct error messages. But, I can't think how I can do this. I thought of putting $SESSION statements in the case switches and then an array. Or would it be better to have it done in the last if statment, where it's counting errors.
<20> good news: you can run windows on mac: http://www.apple.com/macosx/bootcamp/
<21> Jinx: Welcome to a month ago.
<14> Pollita Your wife was looking for you
<21> She found me
<20> pollita it's recent enws
<14> WOOHOO
<22> wondering what the safest way to p*** a variable via the url is for something in the form of ?signature=1:1=1:2=8 where the data is "1:1=1:2=8"
<22> In other words, is it necessary to quote that data somehow so as not to confuse the parser
<21> Jinx: Then why have I known about it for so long?
<21> Am I..... a time traveler?
<21> THAT IS SO COOL!!!!!
<23> Pollita: YES!
<21> Tacomanator: urlencode()
<19> Pollita, before it was third parties doing it. Now apple have done something, officially
<21> grogoreo: Still don't care though
<21> The ONLY thing I use MacOSX for is testing software builds so that the wankers who DO use it don't bitch to me about bugs
<18> Pollita: i have a crappy OS9 iMac sitting arround here i test my website on sometimes
<11> is anyone using sql server express with php?
<18> lol, is that MS's free SQL server?
<22> thank you Pollita
<11> itrebal: yes. but i could also ask: is anyone using sql server 2005 with php?
<18> faber2: just ask
<23> !+g1
<24> Guideline #1) Don't ask to ask, Don't state: "I have a question", Don't ask: "Is anyone around?" or "Can anyone help?". Just Ask The Question
<11> itrebal: i am using odbc/freetds or sybase api and the database returns a string with a length of 1 instead of 0
<23> faber2: Don't rely on freedts. It's crap.
<11> itrebal: i want to know what the best way is, to connect to sql server 2005. it need this for a production environ, it does not have to be free
<18> faber2: don't direct your questions to me
<11> itrebal: sorry
<11> itrebal: already very tire
<21> faber2: From Windows or from Unix?
<18> and why do you want to use microsoft SQL?
<11> Pollita: i am connecting from LINUX
<11> itrebal: one of our customers paid for it.


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

perl golf rindolf
unrar-free Failed Debian
p-bot moo
as people are want to say
#lisp
#math
#lisp
phpmode.el
et-linux-2.60.x86.run.zip
#centos



Home  |  disclaimer  |  contact  |  submit quotes