| |
| |
| |
|
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 32
Comments:
<0> can't i just apply the $ there somehow <0> ? <1> Warning: dl() [function.dl]: Unable to load dynamic library './ffmpeg.so' - ./ffmpeg.so: cannot open shared object file: No such file or directory in /www/tests/test_ffmpeg.php on line 17 how can I found out why? <2> tdd1984: how easy is it to work with <b>$</b><?php echo $row['price'] ?> versus if you ever want to change it <3> tdd1984: it's better to just store raw data, then format on output <4> epaphus: it should be in the operator section of the manual <3> tdd1984: it's more future compatible ;) <2> if you put that $ sign in the DB then that is a bad idea in my opinion because it limits what you can do with your data and changing layouts <4> rixth: there is no ffmpeg.so in /www/tests/ <0> eric: i see good ideal <4> and also makes it hard doing searches on the data as well <0> true <2> yep <2> or if you ever wanted to calculate totals <1> zircu, shouldn't ./ go from the extension dir/ <4> and sorting would be a bitch
<5> epaphus: http://search.cpan.org/~jimt/Text-Flowchart-1.00/Flowchart.pm <0> k so i should have it on the page thats recieving the rows <0> the output page? <2> yes <2> just try to always remember raw data in database, format on output <0> eric hold on okay <0> echo "</TD><TD><a href=\"contact.php?type-id=".$row['itemId']."&userid=".$row['userId']."\">".$row['description']."</a></TD><TD>".$row['price']."</TD><TD>".$row['date'],"</TD>\n"; <0> so how would i apply the $ into there <2> hm <6> echo "$" . $row['price'] <4> tdd1984: since your echoing like that use single quotes <7> hehe.. the holy law of Form and Content <2> tdd1984: i wouldnt do that if i were you <0> eric: whys that <2> tdd1984: stop the php script and make the html go by itself <6> tdd1984: this is kind of basic stuff. maybe you should start with something smaller, or work up a scratchpad. <2> like <?php code to get recordset?> <table><?php foreach() { ?> <tr><td><?php echo data ?></td></tr> <?php } // foreach ?></table> <2> unless you have a really good reason for it don't echo html tags <0> so it would be like <td> "$" . $row['price']</td> <0> i've just never done this method yet <2> you can close your php script off and just type it in and everything will be fine. then you dont have to escape your quotes <0> nah already got it like this <0> works great <4> hmm <2> if it works so great then why are you asking how to get a $ sign in there? <6> if you say so. god help you in 2 months when you do maintenance. <7> I started generating ALL of my pages with the DOM XML functions... it's kind of a h***le, but I never need to escape anything or worry about syntax errors in my HTML. <8> tdd1984: go like this. '$' <0> k <0> wahts the different dude <2> im just trying to help you for the future <0> echo blah another line echo blah <4> i hope none of the data has a " & or = in it <0> nope <8> tdd1984: " parses whats in it. ' sends exactly as it is inside <8> say this: <2> if you echo out your entire page in one single quote, then like what jpeg said.. what happens when you come back to add another row to your ad like contact <2> what if you have to add a sponsor logo column <8> $key = 'blarg'; echo "$key " . '$key '; will output: blarg $key <6> it's ugly. it's bad design. it's confusing. you're mixing variables with content, which is going to make it harder if you ever need to change the html or do anything with the variables. <2> or if anybody else has to work with it :) <0> never mind igot it <0> jpeg: i can read it fine <0> thats all it matters <6> ok <6> good luck. <2> hehe <9> hrmm <0> don't i feel stupid <0> that was the only thing i had to do <6> don't be so sensitive. you're a n00b, and we're trying to show you what people have learned after years of doing this. <4> you will feel worse when you come back asking how to add something else to it <0> <TD>$".$row['price']."</TD> <6> remember, a few days ago you didn't know what "\n" was for. just relax and listen to some advice and don't take it personally <2> yea <4> tdd1984: you got lucky with that one <2> i started out making functions for each block of my website <0> zircu: whys that <2> like renderHeader renderTable and then after 6 months when i wanted to change stuff it was a nightmare <0> is a new line /n <0> specially under linux cause php usually is hosted on a linux server
<0> i mean \n <6> dude - just trying to steer you in the right direction. <0> jpeg: i know <10> hi <0> pratice makes perfect by applying code <0> implenting it <0> i can't believe i was asking how to do that <0> when alls i had to do is implentment it into the table <10> got a problem with --> preg_match <0> <TD>$".$row['price']."</TD> <10> the page <10> http://cyruxnet.org/news.htm <11> tdd1984: \n is newline in *nix world, but for say a windows browser to show the line changes correctly in "view source" mode, you need \r\n <10> has this text as last notice <10> "Exploits y dudas en el MS06-030" <12> hello.. <0> yup :) <7> howdy, Libra <10> how should I express that at preg_match <0> unix, linux blah blah <12> :-) <11> _DuNkE|VoLk: depends what parts of it change <4> _DuNkE|VoLk: with a regular expression <4> or better yet with dom <10> yeap .. look <10> <tr> <10> <td style="height: 26px;" width="87%"> <span <10> cl***="titular"> Exploits y dudas en el MS06-030 </span></td> <10> </tr> <11> _DuNkE|VoLk: if none, you can just str_replace("Exploits y dudas en el MS06-030", "bla", $str) <8> _DuNkE|VoLk: please don't flood. <10> ok ok sorry <8> !tell _DuNkE|VoLk about pastebin <0> zircu: i got my form uploading images to a folder, but how can i have it where it creates a userid folder with there images, so images won't be over written for someones profile image? <13> sorry <13> got disconnected <13> did anyone tried? <0> http://pastebin.com/709916 theres my source for image upload <13> lietu <6> tdd1984: how are you keeping track of users? use the userid as part of the filename. <8> tdd1984: have you tried looking for directory functions in the php manual? <11> DuNkE|VoLk: ? <4> DuNkE|VoLk: even better, ask for an xml feed <0> gimp_: i didn't know what the name of the function was <13> can you try the code of PREG_MATCH for that web?, to get de last notice.. if you enter http://www.cyruxnet.org you will se notices, the first one is "Exploits y dudas en el MS06-030" <4> DuNkE|VoLk: um <0> jpeg: im keeping track of the users cause they have to sign in and there ***ign a userid <13> plz <4> with sugar on top? <0> the userid is posted under the items table along with item id, images, description, and etc <8> tdd1984: http://php.net/dir <6> tdd1984: uh... yeah. <13> zircu, i'm just asking for help <1> I have a cl***, how can I access functions I have defined? <0> I take it i did that right lol <11> DuNkE|VoLk: no, I wont try to code anything for you <4> DuNkE|VoLk: no, asking for someone to write something for you <11> DuNkE|VoLk: I'm not stupid, ffs <13> it's less than one line <8> tdd1984: http://php.net/mkdir <13> i'm not asking to do it <6> tdd1984: and since every user has a unique id, if you were to use the userid as part of the name for the image file they upload... <13> i'm asking, how <8> tdd1984: was that really all that hard to find? <4> DuNkE|VoLk: so why can't you do it? i've given you 3 ways you could get this done <0> ohh yea i forgot about the makedir() function <13> should I see at the news.htm source-code and check what is before and after the Notice? <13> the tags? <0> jpeg: everytime they upload a image the userid is inserted in the same row with image <8> tdd1984: its mkdir() not makedir(). <11> DuNkE|VoLk: #regex is propably the place for regex help anyways <13> and then write it like this <0> i mean mkdir () <0> function
Return to
#php or Go to some related
logs:
#php xorg cannot find screen #gentoo curl regex whatismyip CBTC TURKISH #math shoutcast linux nstall explicitives installing sk98lin in ubuntu x11-common kubuntu
|
|