| |
| |
| |
|
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 30
Comments:
<0> Wilik - can you help me with my mysql/php issue: http://pastebin.com/553875, the previous page sends $Venue_ID to this page, but it does not insert the $Venue_ID to the DB in the mysql_query\ <1> heya <1> hi guys =) <0> hi <1> S^Gerbitz help on php code ? <0> contraventor - yes <0> can you help me with my mysql/php issue: http://pastebin.com/553875, the previous page sends $Venue_ID to this page, but it does not insert the $Venue_ID to the DB in the mysql_query\ <0> I need help <0> lol <2> Gerbitz: why don't you use _REQUEST[''] <0> where at? <2> well, _REQUEST is a merge of all your post, get, etc.. <0> I am very new with this, and all the examples that I seen did it my way <2> so you can keep it pretty simple <2> $Venue_ID is coming across with a GET <2> so you would have to do like
<3> !tell S^Gerbitz about vars <2> <form action="test.php?Venue_ID=5" <2> > <2> method=post <1> hmm <2> swap one of those out and you should be cool <1> I am submitting a form, but the value $id nao this giving update in mysql <1> ;/ <1> http://www.phpfi.com/102106 <1> id = '".$_GET['id']."' or id = '".$_POST['id']."' don`t work <1> in log of mysql it is -=> update table ... where id = '' <1> ;/ <1> empty ... <1> tonester help-me please ? <4> who here said they used zend? <4> im getting a lot of mysql_result(): supplied argument is not valid MySQl result resource... <5> contraventor, what's your issue? <6> anyone have any suggestions on the best way to code sorting by multiple variables within a mysql query? <5> musus, sorting using SQL? <7> !+sql <8> [SQL] Structured Query Language - the language for most DB Systems. See http://www.w3schools.com/ http://www.sqlcourse.com/ http://www.onlamp.com/pub/ct/19 and #mysql, #postgresql or #sql <6> swack, yeah <1> http://www.phpfi.com/102106 swack <1> I am submitting a form, but the value $id nao this giving update in mysql <1> id = '".$_GET['id']."' or id = '".$_POST['id']."' don`t work <5> musus, "select * from table order by foo ASC, bar DESC <7> !+select * <7> !+select* <8> You should consider explicitly naming the columns you wish to retrieve in your select statements. See http://www.parseerror.com/sql/select*isevil.html <1> in log of mysql it is -=> update table ... where id = '' <5> replace table, foo, and bar accordingly <6> swack, yeah. i'm trying to write a single sql statement that can be used for sorting a table of information in various ways. <5> contraventor, is your form action set to <form action="form.php?id=$id">? <6> for example, sort by employeeID, employeeName, etc <1> swack PHP 4.4.1 <5> musus, use a stored procedure instead... or just sort via php <5> musus, you'll kill yourself trying to write overly dynamic sql statements <6> hmm, i hadn't thought about a stored procedure. good idea <5> musus, use one for each sort case <5> it's a little overkill, but fast none the less <6> how do i call a stored procedure in php? <5> musus, one sec <5> musus, you using mysql? if so, which version? <6> swack, yep. 5.1 <4> Zend is giving me a lot of mysql_result(): supplied argument is not valid MySQl result resource... <4> I don't know why, or what this means <4> except whoever coded the page did a lot of stupid things <5> contraventor, did what I say make sense? $_GET['id'] is referencing a GET variable (i.e. form.php?id=27) <9> is there a builtin function to truncate a string? <7> !+strings <8> [STRINGS] Please read http://php.net/types.string for a basic understanding of how strings work in PHP, as well as http://php.net/strings for functions to manipulate strings. Be sure to read 'user comments' as well. <5> musus, http://dev.mysql.com/doc/refman/5.1/en/stored-procedure-syntax.html <7> !+guidelines <8> 1) Just ask. 2) Don't repeat. 3) /msg php-bot smart-q 4) msg the bot 5) Be polite and patient. 6) Do not paste here; /msg php-bot pastebin 7) No spam/bots/scripts/trolls/job postings or onjoin/away . 8) If it's not a PHP question, don't ask. 9) Don't PM without permission. 10) We don't support packages here. 11) ##php is a manual supplement. RTFM first! 12) Spelling matters. Use real English. <7> !+g8 <8> Guideline #8) SQL Q's: #sql, #mysql or #postgresql. Apache Q's: #apache. Linux Q's: Either #yourdistro, #linuxhelp or #linpeople. HTML/CSS/JavaScript Q's: #web. Just because some other channel is 'dead' does NOT mean you can ask here. <5> musus, it's really a better design decision to dynamically build your query with PHP <9> i did read php's string functions manual ... many, many times. and i've never found one. so im not asking out of laziness <6> swack, any particular reason? <5> er... better software design? <6> heh.. what i mean is, why is that better?
<5> it's not inherently faster, just better design... not sure how to explain it better than that :) <10> Akuma_, something like substr()? <6> swack, :) <5> Akuma_, trunc'ing a string on a character or sequence? <4> except whoever coded the page did a lot of stupid things <4> Zend is giving me a lot of mysql_result(): supplied argument is not valid MySQl result resource... <7> dont repeat <4> don't answer <7> wrong answer... <11> How do you push a new element onto the end of an array ?? <7> BadBreath $arr[]= blah <5> lmao <5> Jymmm, nice boots you got on :) <12> Gah, I really, really, really don't want to have to use tables to style this for IE... <12> http://team254.bcp.org/new_site/index.php?pageid=3 -> Any other way? <7> swack the boots are for all the bull**** in here. <6> swack, so.. for example, if there were a table with 3 or 4 different columns, each of which the user might want to sort by. would you p*** the sort arguments via the url? and do you have any suggestions on php functions to use once i have the array? <11> This is an array, but it gives me an error: $elem->element[].push(xmlParse($embedded)); <7> musus This isn't #sql <5> musus, check pvt msg <6> ok, sorry to bother you Jymmm <12> How would I get the navigation and the content sections to match up in PHP? <12> http://team254.bcp.org/new_site/index.php?pageid=3 (refer to this page) <13> any good load testers? <11> The syntax $ar[].push("item"); gives this type of error: Fatal error: Cannot use [] for reading in ... <11> So, anyone know how to push to the end of an array? Google doesn't seem to be helping much.. <11> finally found something on google: array_push($pasta, 'tagliatelle'); <7> BadBreath I told you.... $myarray[] = 'blah; var_dump($myarray); <7> BadBreath I told you.... $myarray[] = 'blah; $myarray[] = 'foo'; $myarray[] = 'bar'; var_dump($myarray); <11> Jymmm: misread what you typed... <7> !+arrays <8> [ARRAYS] Please read http://php.net/manual/en/language.types.array.php for a basic understanding of how arrays work in PHP, as well as http://php.net/array for functions to manipulate arrays. Be sure to read 'user comments' as well. <14> is there an easy way to determine if a variable contains a number or letters (I want just one) <11> ok <15> kaylee, what do you know about regular expressions? <14> Cicciux: so it's just a regex thing? <16> kaylee: can you be more specific about what you want? <14> I'm just trying to do some form checking...if they enter letters in the phone number I want it to be caught <15> kaylee, That's the way I'd go... however there is bound to be a simpler and more direct way to do it... It's just that I don't know it... :P <14> ok <15> kaylee, you can do that with form validation.... <16> there's is_numeric for that, or ctype_*, depending on what you want to do. <14> ah is_numeric might do it <14> thanks <17> this room is mayhem <14> isn't there something simple to go back one in the browser history? <17> no, that's client side <17> what you can do is track the user agent in a session variable though <14> yeah, back for client side <18> greets <17> ***uming you maintain a session <18> does anyone recommened a good tool thats like "tidy" thatll cleanup php code with embedded HTML etc? <19> Is it possible to generate a .doc file via php? <17> oh, crap <17> they found me <17> 1 <17> !! <20> join #C++ <20> er <18> ? <16> dgtlhoon: something like php.net/tidy? <20> Old keyboard.. <19> CryWolf: was that for me? <18> CryWolf, nuh one that cleans up the PHP code, not the output <19> woops <16> dgtlhoon: no, it cleans up the html <21> how can i run this -> $values['txts_final'] <- being that: rename("_txts/_tmp/123.txt", "_txts/123.txt"); <18> CryWolf, yeh i want to tidy the PHP code :) <22> DogWater: http://www.php.net/COM <16> dgtlhoon: ah, you want indent <18> ahh yes indent <18> does that support php? <18> with mix of HTML? <19> niraj: all I need to do is fill in like 4 lines on a form and present it as a download link; should i do it another way besides a .doc :D
Return to
#php or Go to some related
logs:
helix banshee foxytunes ubuntu live cd modify grub hd #fedora DennisCGc dapper svn umask wrapper #perl #ubuntu persistent perl 64 bit ubuntu #gentoo #perl
|
|