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



Comments:

<0> I should still be able to access the 0th element of an array like array[0] even when the array is ***ociative ... right ?
<1> my script is stopping execution without outputting any errors
<2> one sec
<3> Parse error: parse error in www\temp.php on line 41
<4> what deliminating chars can I use instead of " for .. echo " "; ?
<4> i know i can echo ' '; .. but any other things beside ' and " ?
<5> its not echos chars....
<4> huh?
<5> echo() is '' "" are string encapsulate strings if thats the correct word.
<5> er as in echo(); and '' "" are for strings as you can do echo $var echo($var) etc.
<4> short answer: nothing else
<4> ?
<5> it has nothing todo with echo is the short answer....
<5> if you are being lazy cause you cba to escape ' or " in your string then no there is no other option
<0> how do I change an ***ociative array in to a non-***ociative one ... ?
<5> babo: array_values();



<0> row: :-)
<6> trend: you can also do <<<EOF blah blah blah EOF;
<4> maskd_ i don't believe i understand
<5> maskd_: oh yeah good point
<5> :/
<4> echo <<<EOF blah blah EOF; ?
<6> yeah
<4> nice!
<4> thans
<5> you should use '' where you can tho as thats faster as php does not look inside it to replace stuff, I am rather sure it does for EOF and I know it does for ""
<7> ehlo
<4> hello
<7> anyone know how to get the possible option in a set in an mysql field? like set('1', '2', '3')
<3> xpowerstudios: did u figure it out?
<8> Hy guys :)
<8> i'll try to be clearly soon as possible
<9> back
<8> I've got an array, which i try to put on one other page, using a form, method="post"
<9> is there any way to turn on debugging in php?
<8> So my array is, for example : $array, i try that : links.php?array=<?echo $array; ?> but doesn't work ;)
<8> how do ?
<10> hi guys is it possible to take text and apply hmtl tags to it
<10> for example if a user has pressed the return key in a word document that the keystroke will be converted to a <br />
<10> in php
<10> of course
<8> ok, i found : links.php?array=<?echo implode(",",$array); ?>
<10> im thinking something like nl2br but with that funcion, dont u have to insert the \n yourself?
<11> hi
<12> hello
<5> pangelovski: nl2br will deal with new lines submited via textarea etc its fine.
<11> is there any library for php that automaticly creates html tags such as drawHeader($title) or drawH1($text)?
<5> etam: might be something at pear.php.net
<10> ok thanks
<13> echo "<h1>$title</h1>";
<10> ill give it a try
<14> pangelovski: nl2br is ok as long as you're not using HTML. nl2br output XHTML style tags
<5> GarethAdams: its still valid......
<11> row: thanks
<5> otherwise str_replace if you are so bothered...
<11> row: can you tell me what key-words has it description (i am not good at english)
<14> row: you think?
<5> GarethAdams: I think what?
<5> etam: no idea try html and thats about all I remeber, saw it on p***ing
<14> row: nm, just tabbing through my windows, didn't notice this was ##php
<2> roniez: did you try the updated pastebin?
<2> roniez: http://pastebin.com/713155
<2> roniez: that query doesn't give you error for not specifying what cols to insert the values to?
<3> i am gonna try the latest one now
<3> i get parse error on line 41
<3> <input type='hidden' name='Remove' value='<? print {$row['caseID']} ?>'>
<3> that is line 41
<15> how to insert table beside my dropdown menu
<16> <?php, remove the { and add a ; after the pring
<15> http://paste.ubuntu-nl.org/13828
<2> roniez: try this: <input type="hidden" name="Remove" value="<? print $row['caseID']; ?>">
<16> *<?php but whatever...
<5> cafe: that has html/css not php....
<3> undefined index: line 17 = if ($_GET['add']=="post") {
<3> hm..
<2> roniez: try http://pastebin.com/713165
<3> bah, sometimes i truly dislike php, but i can never hate it for its simplicity in such a advanced way...



<13> roniez: No, no. You can hate it, there are plenty of reasons to. It's human nature.
<2> roniez: not PHP's fault its not working =)
<3> xpowerstudios: parse error line 30
<3> hm..
<3> i fixed that one
<3> but now i got this under the form
<3> if ($_GET['add']=="post") { $caseID=$_POST['caseID']; $errorID=$_POST['errorID']; $desc=$_POST['desc']; $date=date("Y-m-d"); $user=$_POST['by']; $sql = "INSERT INTO undocumented VALUES ('$caseID', '$errorID', '$date', '$desc', '$user')"; mysql_query($sql) or die("SQL: Cannot Connect " . mysql_error()); }
<2> http://pastebin.com/713170
<3> it still has problem with if ($_GET['add']=="post") {
<17> I am looking for a freeware ticketing system for PHP ! Anyone know one ?
<2> roniez: that query looks funky
<17> for support
<3> xpowerstudios: dude, u need to give it some php signals for that info...
<3> at the bottom.
<3> <? and ?>
<5> ace_me: there is egroupware-tts but never used it
<2> $sql = "INSERT INTO undocumented (this,that,this,that) VALUES ('$this', '$that', '$this')"); etc
<2> roniez: my bad, just add them
<3> but it still will give an undefined index on if ($_GET['add']=="post") {
<2> lets strip it down then
<3> kk
<2> roniez: http://pastebin.com/713175
<2> roniez: try that alone
<3> still got a problem with if ($_GET['add']=="post") {
<3> as a undefined inxed.
<2> http://pastebin.com/713181
<3> hm..
<3> i think i solved part of it.
<3> i added if (isset($_GET['add']) && $_GET['add']) {
<3> insteed
<3> and it now works.
<2> and you fixed the cols in the query?
<3> nope.
<3> that one is left.
<3> or witch do u mean_
<17> thank you <5>
<2> to exclude future errors i added a hint to the query as in $query = mysql_query("INSERT INTO table (col1, col2, col3) VALUES ('$this', '$that'.. specifying the columns to prevent premature execution of the data, and less confusion for you
<6> roniez: echo $_GET['add'] and see what you get
<3> well i got the script to work now.
<3> >P
<3> thx xpowerstudios and everybody else to helped.
<2> welcome :)
<3> http://pastebin.com/713192
<3> thats the code i ended up wiht.
<3> a tad messy, but aslong as it works. i am good
<3> btw, now when i have u all here, is it possible to make it so when they press send, it auto refreshes the page? so they can see what they have added?
<6> sure, just add a meta refresh
<3> hm.. i am not to high on this meta refresh thingy, u got any site where i can read about it?
<6> http://www.htmlhelp.com/reference/html40/head/meta.html
<3> found it nvm, thx anyway.
<6> either that or header("Location: ".$_SERVER['PHP_SELF']); maybe
<18> is there a leftways equiv to =. ??
<6> you mean like a reverse append?
<18> prepend yup
<6> i dont think theres anything in-built
<6> http://www.zend.com/zend/spotlight/prepend.php
<18> cheers
<6> oh wait thats for files woops
<3> hm... maskd_ if u look at my code, where should i put that header location?
<3> after they press send, it suppose to send them back.,
<3> http://pastebin.com/713192
<2> do a if($queryname){ header("Location....... should work
<3> hm..
<3> xpowerstudios: where?
<2> after the query is executed, set a condition to validate the query returned error free, and if so, use header to redirect them
<3> i tried to use this
<3> if($queryname){ header("Location: http://localhost/temp.php";);
<3> after the sqlquery, but i got a parse error.
<2> roniez: try this: just make sure to edit "header".. http://pastebin.com/713206
<19> is there a way to know the "locale" of the current user so that i can set setlocale() accordingly ?
<3> xpowerstudios: Cannot modify header information - headers already sent by
<2> oh boy :-) concider <meta.. ?
<20> hello everyone ...


Name:

Comments:

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






Return to #php
or
Go to some related logs:

azureus suse gbv smart
unfiltered SQL
error 1064 mysql myisam default charset utf8
#web
get_basic_credentials perl
archlinux nvidia-glx
emerge fetch ifc gentoo
ALERT! does not exist boot
#physics
miesco hardcore



Home  |  disclaimer  |  contact  |  submit quotes