@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6



Comments:

<0> can anyone tell me whats wrong with this
<1> what's the error
<0> when i press submit it shows the else part
<0> it dont send a mail
<1> then you can be pretty sure that the IF isn't right
<2> no way
<0> what can i do
<1> fix the IF part
<0> how? im not good at scripting
<3> how did you manage to write what code you have if you're no good at scripting?
<0> i just figured it from the reference
<0> have seen it in other form processors
<3> www.php.net/tutorial.forms
<0> ok thanks



<4> Ssup all
<5> whats wrong with <?php include("folder/file.php"); ?> folder is in same directory and file.php is in the folder
<6> echo getcwd();
<5> ?
<6> <?php echo getcwd(); include("folder/file.php"); ?>
<5> i simply want to include a file..which is in a folder of same directory
<5> but simple include should work..
<5> isnt it?
<6> Kingfisher, is that so hard to add that echo's ?
<5> no its not but i just wanted to know why it doesnt work ?
<6> your answer is inside that echo
<5> okay thanks
<7> you need "." to be in the list of include directories
<7> or the absolute path
<7> i forget if it is by default :/
<8> Hello, someone could tell me an another option that imagecreatefromgif because i have an gd version < 1.6 and need to open an gif file , resize and save id..
<4> imagemagick
<8> DjKaye
<8> i have no access at server
<8> to install imagemagik
<8> ..
<4> uh
<8> so isn`t another way to open an gif
<8> ?
<8> ..
<4> Uhmm
<4> iI might be wrong
<4> but nope
<9> morning fellas
<10> howdy
<9> what's up man?
<2> sup
<9> **** here. bout to go and find some damn breakfast.
<9> you?
<2> drinking my coffee
<2> i think im going to the beach in a little bit
<9> true that
<9> where you stay at again?
<2> in between houston and galveston
<9> ah. the longhorn.
<2> just texan
<9> true
<9> bbiaf. im freakin starving
<4> ssup yo
<11> I need to select this form list values if it exists in some table..
<7> indeed.
<11> so I'm running another query inside the loop which is generating the list values
<11> or filling up the list values
<9> werd
<9> sup pizza boy
<11> the query is fine.. but it's not selecting anything
<11> <option value="<? echo $row_getSoftwares['id']?>"<? if ($totalRows_ifexists > 0){ echo "selected=\"selected\"";} ?>><? echo $row_getSoftwares['Name']?></option>



<11> this is what I'm doing
<7> hey ansimation !
<9> Timbaktu: try doing it inside of 1 set of php braces.
<9> what's up man?
<11> now it selects everything
<9> Timbaktu: isn't that what you want it to do?
<11> I want to select only if the value exists in this other table
<11> so I'm running a second query to select where the id matches
<11> or is there a simpler way?
<7> ansimation: working on a release, taking calculus course, got a FreeScale dev/test kit from a friend i'm going to play with
<7> you?
<12> Timbaktu: a join
<9> ****. about to write an article on digital copyrights for my website and then play with wigga some. maybe write a photoshop tv feed parser or something for him.
<11> groogs: join? not sure about that.. first of all I need to populate the list with all the values from this table, and then I need to select if it exists in this other table
<12> so you have one table that has a bunch of options, and you want it to be selected if it exists with some constraint in another table..?
<11> yes
<12> well, theres lots of ways.. one way: SELECT o.option_id, IF(ISNULL(s.option_id), 0, 1) as selected FROM options_table o LEFT JOIN selected_options s ON s.option_id = o.option_id
<12> (maybe also WHERE s.user_id = 53 or something, if you only want certain data)
<11> wow.. this is over my head
<11> didn't understand the first query
<9> then your best bet is to study the manual
<12> IF(ISNULL(s.option_id), 0, 1) as selected
<4> http://www.w3schools.com/sql/sql_join.asp
<12> that creates a new field called "selected" .. if option_id (from the seleted_options table) is null, it will have a value of 0, otherwise, 1
<12> "FROM options_table o " is the same as "FROM options_table AS o" which makes an alias, so i can type "o.option_id" instead of "options_table.option_id" .. just laziness
<12> for the LEFT JOIN part, go to that url that DjKaye posted
<12> http://www.tizag.com/sqlTutorial/sqljoin.php
<12> A Left join returns all rows of the left of the conditional even if there is no right column to match.
<11> what is holding all the options? s table ?
<12> selected_options (s) is the table that may or may not have an option_id
<12> (eg, it determines if its selected or not)
<11> okay.. let me see if I can do this
<11> groogs: you're the man
<11> the query looks good..
<11> now let me see if I can implement it right
<11> there is only one other problem.. there is another field involved
<11> in the s table I have this other field which is being p***ed in the url.. so I need to select only the ones in s table where both is true
<11> but at the same time I need everything from o table
<11> how can I throw a where clause here?
<11> or maybe another left join!
<11> a little help please
<4> inner join
<11> DjKaye: can I use inner join and left join in a single query?
<11> how can I use an inner join here with an external variable?
<11> you guys gave me a half solution! :(
<2> Timbaktu: are you bitching about free help?
<13> Please insert $100 for the next 5 minutes.
<14> Timbaktu: you want to inner join with an external variable? that makes 0 sense.
<12> Timbaktu: LEFT JOIN selected_options s ON (s.option_id = o.option_id AND s.othervalue = 5)
<11> groogs: again you rock
<11> thanks so much
<10> um, what?
<10> alright then
<15> wtf does pamit mean?
<15> I think that was Pakigrish.
<14> it means goodbye
<14> in indonesian
<15> I see
<15> Indoglish


Name:

Comments:

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






Return to #php
or
Go to some related logs:

Rabba sohni kudi de naal
musikji
vikram smooch
boobs 14mb
#india
how to write wow addon
sharameet
#java
_crackers_
#netcafe



Home  |  disclaimer  |  contact  |  submit quotes