@# 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



Comments:

<0> PHP should add an error check that just counts the number of } and { to see if they match. If they don't, kick back an error saying bracket-mismatch.
<1> yeah, i don't know why it doesn't tip you off that it's a missing }
<1> unexpected $ is really helpful
<2> http://pastebin.com/596460 - when i use that to log in on my site - it says the username and p***word is incorrect - it always says it, even when the username+p***word is correct. any ideas?
<3> you have a post field for ip address? what for?
<3> and you can just run the p***word in the query
<2> for finding out ip addresses - then i can look at where people who go on my site are from.
<2> evulish - how?
<3> SELECT * FROM login WHERE user = '$user' AND p*** = MD5('$p***')
<3> but why's it a post field?
<2> okay. that would make me life a lot easier :( lol.
<3> ip addresses don't get p***ed through POST
<2> they do when i'm using a function to get the ip
<3> ..
<3> why not just use $_SERVER['REMOTE_ADDR'] or whatever?
<2> because that doesnt always return the correct ip.



<4> evulish: i had power user status =) for like... 15 minutes before i dl'd the phish disco @ 10gb =\
<3> ha
<3> orlux: when does it not?
<2> well it never returns my ip correctly.
<5> what's your ip?
<6> does anybody know how to insert multiple items in an order ????
<3> what?
<3> orlux: what's it return and what's your ip?
<5> what kind of "order" ?
<6> like say 1 order contain many items....
<2> why do you want my ip? the ip function i use returns an ip which begins with 80 and the remote_addr thing returns an ip beginning with 62
<6> and i want to store these order to the database
<3> then what's 82.11.46.55?
<2> evulish - that query you told me to run doesnt work - says the username / p***word is wrong.
<2> evulish - arf arf.
<3> then your p***words don't match
<2> they do.
<6> now i can only add an item in one order, i need to add multiple items in order....
<3> apparently not
<2> evulish - believe me, it does.
<3> peeppssii: what's an add to what?
<3> er
<3> -what's an
<6> i have 2 tables, items(product) and order.
<6> like say =>Order #1 contains c++ books and php book.
<2> i found the reason
<7> yup
<2> im just a ****ing idiot.
<2> :(
<7> orlux, '
<7> we've been trying to tell you that
<7> peeppssii, go on
<2> haha
<8> peeppssii: you can do that in a lot of ways... one is to use a separator, like ';' or something and then explode when you fetch... anotherone is to create a third table in wich you put each item for every order...
<2> i had the p*** field on the DB to 15, not 32. hahahaa.
<7> N3vYn, why would he need three?
<7> just the invoice info, and the product info
<8> Technobabble: he doesn't need three, it's just one of the ways it could be done... I never do it that way, and my teacher hates me for not doing it :P
<7> well why would anyone use 3
<3> i prefer 8
<7> the only reason you use 2 is so that you don't have a bunch of empty fields
<6> do i need to use session ?
<8> Technobabble: I don't know... :P
<6> i created the third table(orderdetail), contains (orderID and ItemID).., is this correct ?
<7> peeppssii, think of it like this
<7> you've got a lot of items on an invoice that never change
<7> those go in table A
<7> like, tax rate, customer id, shipping rate, blah blah
<7> table B has the products themselves
<7> because you might have 1 product, or 20
<6> but how do i check what items in the Table A ??
<7> there aren't any products stored in table A
<7> just the stuff that never changes
<7> like tax rates n ****
<7> customer id
<5> damn...
<6> so where do i store those items ??
<7> like i said
<7> the info that doesn't change is stored in table A
<7> customer ID, tax rate, shipping rate, sales person ID



<5> lol! .. i haven't played a song in awhile, for guitar, and i was trying to play it, and I was doing really bad, and i couldn't think why? my fingers just weren't making it to the right frets in time (left hand). .. i realized i was wearing my watch! what a difference a little weight on the wrist makes.
<7> you *****
<5> lol
<6> so how do i see what items contains in invoice#1
<7> if you get some meat on that wrist
<5> oh yeah, cuse it's just sooo scrawny
<5> it's not that i couldn't handle the extra weight, it's just i wasn't adjusting to accomodate it
<5> was just playing like normal.. and it just wasn't happening =P
<7> it's 'cause you're trying to play with a bong in your hand
<7> put it down
<5> but i can't =)
<5> =( **
<9> what's the easiest way to check if any html form fields have been filled in or selected?
<9> ...including lots of checkboxes
<9> would it be:
<9> if ( !isset($_POST['var1'] & !isset($_POST['var2'] & !isset($_POST['var2'] ....etc... ) ??
<10> sounds tedious
<9> I know
<9> hoping there's a better way
<10> so you want to do something if no fields are set?
<9> yes
<10> how about foreach ($_POST as $key=>$value) { if(!isset($_POST[$key]) { $notempty = 1; } } if(!$notempty) {do something }
<10> er
<0> You'd never find anything that way.
<0> use empty(), not isset()
<10> doh
<10> I was actually thinking that as I typed that crap
<10> but opted instead to just give him his method back
<0> So long as you give checkboxes a value, then that will work.
<1> well, you would need isset for the checkboxes
<10> in my method the !isset should be isset
<10> alternately you'd use !empty
<0> isset wouldn't work at all.
<0> $_POST[$key] will always be set.
<0> if it wasn't, it wouldn't even appear in your loop through $_POST
<10> ok then use !empty($_POST[$key])
<10> and give all your damn checkboxes values
<9> ahhh man.... I have so many checkboxes already coded though... with no values
<9> so that method would take me longer then
<0> checkboxes don't appear at all if they arn't checked
<0> so like, if by chance you had a form of nothing but checkboxes, if non were checked, $_POST would be empty.
<9> ok... so then what's the easiest way of doing it without ***igning values to all of my existing checkboxes ?
<11> can i use \n to go to the next line when using mail();?
<9> smickus: yes
<0> Etobicoke27m you'll probably just have to make an array of the checkbox names, then see if they are set in $_POST
<0> and that is why you give checkboxes values :)
<9> hmm... i've never made an array before. can you point me to the correct syntax?
<12> @array
<12> !func array
<13> array (PHP 3, PHP 4, PHP 5) -- Create an array
<13> array array ( [mixed ...] )
<13> http://www.php.net/manual/en/function.array.php
<9> thx
<12> kicken- where's wiser?
<14> I wanna execute an sql script using the command source in dos , but where should the file be listed and how do i reach the file
<14> source \. file.sql
<1> wiser was murdered
<1> mysql -u user -p < /path/to/file.sql
<14> spox : where should the file be listed. i'm on windows system, where dos the document root start.
<1> uh, you just enter the path of the file
<1> mysql -u user -p < [drive letter]:\path\to\file.sql
<0> yea, wiser is dead.
<14> thanx spox
<0> So how's trollbot doing now?
<15> a lot better thanks
<15> I just introduced that bug when I moved from storing each line into a linked list instead of a pointer array
<15> moved from a linked list to a dynamic pointer array I mean
<15> now I can focus on getting the tcl.m4 and php.m4 fixed
<0> I probably would have kept with the linked list.
<0> or allocated the right number of elements to begin with and not worry about resizing it.
<16> I have some text saved in a database, which is something like "TEXT TEXT TEXT <a href="url">Link</a> TEXT TEXT TEXT", but when I Echo that data to my webpage, it shows up just like that with the formatting and everything, rather than actually creating a link. Does anybody have any idea why?
<15> well there is no "right" number, I plan on tweaking it after getting averages and ****, but a lot of IRCDs break the RFC on command parameters (I think the RFC says 9, could be wrong)
<15> and also "rest" is server dependant
<15> I put in low amounts so I'd know if there was a bug with the reallocing which there was


Name:

Comments:

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






Return to #php
or
Go to some related logs:

stan laurel playing sousaphone
poo hi
#java
vedanta + dalnet + ashok
bert and ernie rubber ducky mp3
#india
#india
mm bi rapidshare.de
#allnitecafe
#india



Home  |  disclaimer  |  contact  |  submit quotes