Jump to content

.josh

Staff Alumni
  • Posts

    14,780
  • Joined

  • Last visited

  • Days Won

    43

Everything posted by .josh

  1. the url part goes in the quotes too. dunno if you can use .ani though... document.body.style.cursor="url(http://www.mysite.com/images/cursors/k_spin_cursor.ani)";
  2. But see all those points you made are actually against you. That's the point I am making. If someone is not versed enough to to even point and click the next button stuff, then how is presenting them with even more options going to benefit them? It's not. They are going to promptly call their "tech" family member or "geeksquad" type person and ask them which browser they should pick, and virtually every single "tech" person out there is going to inwardly groan at yet one more stupid thing they are being called upon for.
  3. Really? There's people out there that don't know how to "click on an icon, click next next next finish?" Are they expecting microsoft to include this auto-install as part of the initial OS setup when you first open the box? These same people who supposedly are so fucking stupid they can't install something from an install wizard are not going to know or care what the difference between these browser choices are. Forcing microsoft to present multiple browser install choices in their OS setup will do nothing but make the process harder for these "novices". This is bullshit.
  4. Agreed. I picture my own kids in that situation and I'm about 95% sure they would not at this point in time in their life really understand what's really going on (regardless of which side is telling the story). I think it's funny how we are willing to call kids stupid and unaware of things when it comes to taking responsibility for shit, but make out like they are aware and capable of recognizing and being traumatized by "deeper" things like this. Well we can't have it both ways. What will really damage kids in the long run, is using them for our own ends, treating them differently as is most convenient for a given situation.
  5. [pure speculation] School knew it was in deep shit. They decided to start lying about some details to soften the blow, knowing damn well that neither side could necessarily 'prove' the validity of those details (that's the great thing about image, isn't it?). In frustration, dad foolishly played the race card, pretty much instantly discrediting him. Score 1 for the school. Will now get little more than a slap on the wrist. Teacher in question may possibly resign (not get fired). [/pure speculation]
  6. let it shine.
  7. LOL spoken like a true phpfreak
  8. wow, another thinly veiled "my OS is better than yours" thread ftw.
  9. You know what, I like MySQL, but fuck Monty. They sold out to Sun. What'd they think was gonna happen? I mean wtf, I randomly googled and found that Sun bought MySQL for about $1b. They saw $$ and gave into it and jumped into the corp game. It was inevitable that they would be swallowed up like this and they knew it from the get-go but at the time decided the $$ was more important. And now they want people to "save" it? Fuck them. I like MySQL, but where is our guarantee Mr. Monty won't just go running after $$ signs again? I think Oracle probably will either kill it or turn it into closed source or something. Sad pandas crying everywhere. And you can thank Mr. Monty for that, not Sun.
  10. $kwds = array('look','google','manual'); foreach($kwds as $v) { if (stripos($post,$v) !== false) $needle = true; } if (!in_array('php.net',$browser_history) && $needle) { echo "We're sorry, but your post has not been submitted, because we have detected B.S. Please try again later, after you have REALLY made an effort."; }
  11. I rarely use the buttons for formatting, 99% of the time I type it out. But that boils down to a matter of preference, no real 'logic' behind it, so I have no issues with it being added.
  12. create an alias for it. SELECT *, DATE_FORMAT(DATE, '%m/%d/%Y') as blah etc... and then $row['blah'] (assumed mysql_fetch_assoc or _array)
  13. you can use date_format() in your query or you can use strtotime date and/or mktime in php (combo of one or more of those).
  14. this is what I use and it prompts for download for me..dunno if that's what you are shooting for or what though..as ^ mentioned, it helps if you actually mention what the problem is header('Content-type: application/vnd.ms-excel'); header('Content-Disposition: attachment; filename=filenamehere.csv');
  15. .josh

    preg_split

    that's why i changed your file() to file_get_contents()
  16. how is the info stored? ideally you would have the info stored in a db and each row (use) would have a unique id associated with it. You would then select the rows from the database, including the id and loop through each row, displaying your link. Each link url would have the id appended to it, and then the target script would pull the user's info based on the id. Example: $sql = "select user, id from table"; $result = mysql_query($sql); while ($users = mysql_fetch_assoc($result)) { echo "<a href='viewInfo.php?id={$users['id']}'>{$users['user']}</a>"; } viewInfo.php $sql = "select * from table where id='{$_GET['id']}'"; $result = mysql_query($sql); $user = mysql_fetch_assoc($result); print_r($user);
  17. well that depends on how they are being stored. If you have a bunch of text files that simply hold a single number at any given time, just do file_put_contents('filename','0'); for each one. However, if that is ALL these files are doing, you could have a single file with a serialized array, or alternatively, individual lines like so: index:0 aboutus:0 etc.. and then loop through each line and reset and write back to the single file.
  18. you cannot perform more than 1 full query at a time with mysql_query, however, fyi you are only using 1 db connection to do these two queries. Unless you specifically assign mysql_connect to multiple variables, creating multiple connection resources, and then explicitly specify those diff connection resources in 2nd optional argument of mysql_query, it uses the same connection source.
  19. .josh

    preg_split

    $contents = file_get_contents("textfile.txt"); //chose file preg_match_all('~(0-9.]+)$~',$contents,$data); print_r($data);
  20. just before your while loop, echo $sql. What is being echoed? My suspicion is your 2nd condition is also evaluating true, which overwrites your $sql in your first condition.
  21. greatstar, giving out "better practices" is noble, but of little use to someone who is trying to make something work in the first place. OP: first thing I see wrong is you do not have $physician capitalized in your query string. php variables are case-sensitive.
  22. I can't help but wonder whether you are going about this the best way in the first place... How much data are you trying to pass to the next page? If it is substantial, you might wanna consider passing it as a session variable instead of through a query string. Alternatively, pass just an id or something and do the actual query on the target page. Please explain what it is you are trying to accomplish.
  23. Using 100% free creative in your freelance endeavors is what amateurs do. Yes, lots of people do it. That would be because there are a lot of amateurs out there.
  24. Are you saying that the image is not showing in IE when the button is clicked? As in, the div style isn't being changed? That code looks okay. Assuming your syntax is right in your button's onclick, there's no reason your code shouldn't work in IE. Did you make sure you have js enabled? What version are you using?
  25. http://catb.org/~esr/faqs/smart-questions.html
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.