Jump to content

ober

Staff Alumni
  • Posts

    5,327
  • Joined

  • Last visited

Everything posted by ober

  1. It may be part of PHP, but it is the tool of phishers, and we won't allow posting of answers for that type of work on these forums.
  2. I'm going to guess that you need to unserialize it before transferring it to a PHP variable.
  3. Nice site with a lot of tools... and I may give a more detailed critique later, but one major thing I noticed is that your little "this is your URL, press the go button" DOESN'T DO ANYTHING. Am I missing something?
  4. This is definately an upgrade from the old one. The old one was REALLY simple but I liked the design of that one too. We definately need to see more content, but I do have one minor gripe about this one... in your main content where you show your sample lists, the aqua/green color in the numbers and letters is barely readable against the background.
  5. Ahh... but let's say you have your little WWW reference sitting on your PC from 6 months or even a year ago. Just for PHP alone in the last year, you'd be pretty much lost on the possibility of looking things up for PHP 5. Data on the web turns obsolete (at least in the web design arena) so fast that keeping a reference around for any long amount of time is dangerous. That's why I don't buy many books on the subject. Most of my research and references are on the net.
  6. You can't use those global arrays until 4.1. Before that you have to use $HTTP_GET_VARS['varname'], $HTTP_POST_VARS['varname'], etc. EDIT: reference: [a href=\"http://us2.php.net/manual/nl/reserved.variables.php\" target=\"_blank\"]http://us2.php.net/manual/nl/reserved.variables.php[/a]
  7. That sounds like you either have a CSS print class that is hiding some of the records or a bad printer setting. Post your code.
  8. There really is no easy way to do this. I think I've done it differently for almost every instance that I needed it. But here are the basics: 1) You have a default search order. If nothing is in the POST/GET array, you sort by some default. 2) Each column is a link like this: <a href="results.php?sortid=10">Column 1</a> where the 1 represents the column and the second number represents the direction (ascending or descending). 3) When the user clicks on a column, you reload the same page but now you have $_GET['sortid'] in the URL. You can split that up and do some if/switch logic to determine what your SQL WHERE clause is going to look like. That's a quick and dirty version, but hopefully it'll put you on the right track. Here's code from part of one of my applications: [code]    $orderstr = "";     if(!isset($_REQUEST['sortid']))         $orderstr = "ORDER BY SpellName, Pos ASC";     if(isset($_REQUEST['sortid']))     {         switch(substr($_REQUEST['sortid'], 0, 1))         {             case 1:                 $orderstr = "ORDER BY SpellName, Pos";             break;             case 2:                 $orderstr = "ORDER BY Pos";             break;             case 5:                 $orderstr = "ORDER BY PartNo";             break;             case 7:                 $orderstr = "ORDER BY Updated";             break;             default:                 $orderstr = "ORDER BY SpellName";         }             if(substr($_REQUEST['sortid'], 1, 1) == 1)             $orderstr .= " DESC";         else             $orderstr .= " ASC";     }[/code]
  9. If you make the action "self", it's going to run the PHP and not the Perl. You need to figure out how to call one from the other or do a redirect to your processing PHP page after the Perl script exits. I'd tell you how to do that, but I don't have the slightest clue.
  10. My apologies... question re-opened.
  11. I will mark this as solved.
  12. Well keep in mind that PHP is a server-side scripting language, so you're going to either have to use Javascript or AJAX to open the second drop down.
  13. It will in the future.
  14. [code]    // Save Dates in array: $arrDates = array(); for ($i = 0; $i <= 28; $i++)    $arrDates[] = @date('m/d/Y', strtotime($i . " days")); echo "<select name='x'>"; for($i=0;$i<=28;$i++)        echo "<option value='" . $arrDates[$i] . "'>" . $arrDates[$i] . "</option>"; echo "</select>"; [/code]
  15. bah... who cares about hockey? Baseball is in full swing!
  16. If you made a script like that, you could probably sell it. But how often are you going to have an image behind an entire object area? Most often you're going to have 2 images... one that is at the top of a block that has the top 2 edges rounded and then another image that handles the bottom. Unless you setup the script to do a variety of options, I don't think that's a good idea. Plus, you're dealing with image quality and so on. This would be much easier to handle in an image editor. EDIT: also, the OP is talking about rounding the edges of something like a DIV.... which isn't an image to begin with. This is quickly becoming a non PHP issue. Convince me otherwise or this will quickly be moved/closed.
  17. WHOA WHOA WHOA.... NOT a good idea to do it that way. All you have to do is add a field to each record that contains a 1 or a 0. What happens to the single record idea if you add or remove one? That's a horrible way to go about it. I assume there are other information going along with each one of these records... so when you echo the text or associated image or whatever for the block, you can just run a simple if statement to see if the extra field is a 1 or a 0.
  18. If you do a search on either the Newbie or main PHP Help board, this question has been answered before. If you don't find an answer to your question, feel free to post again. Thanks, and welcome to the forums!
  19. Duplicate post. Thread closed. If your origional question (http://www.phpfreaks.com/forums/index.php?showtopic=92838&hl=) wasn't answered, please reply to that question again to have it bumped back up.
  20. What exactly are you trying to strip from the email address? Have you tried anything? Can you show us your code?
  21. You might want to start by telling us what it does now and what you want it to do. Provide sample outputs. Your question is confusing.
  22. The best way to achieve this is to do it with a graphics editor or with CSS (using some tricky methods found on alistapart.com or with the new CSS method which you won't find supported until the next level of CSS is supported in browsers). Either way, I don't think this is a PHP question any longer and Javascript certainly won't help you. I will leave it open, but I don't think anyone is going to be able to help you with a PHP solution.
  23. Updating on the fly is going to require something like AJAX. That doesn't have much to do with PHP except for the simple query on the backend to do the updating. However, I don't recommend using 8x8 images for 900 cells. If you thought running 900 queries was bad (and you wouldn't have to... you could run 1 query to get the status of all the cells at once), imagine the time it would take to load 900 8x8 images.
  24. Thanks James. steelmanronald06 has also been promoted to admin. I think Eric was getting a little overwhelmed and I'm happy he's made the decision to promote Ron and myself. We've made a few changes already and we hope to be able to provide better service to some of the more advanced features and changes. I don't forsee making any sweeping changes, but a few things that have been overdue (like the titles) are now changed. And yes, Eric sent me an email before the promotion and yes, the other moderators know.
  25. The PM system is part of the IPB software package. It is not a stand-alone app. And please post only coding questions in the PHP Help board. Thanks.
×
×
  • 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.