Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. Open the desired file in an editor (VIM, notepadd++, gedit, etc..) and edit it... Are you testing locally?
  2. I'd recommend WAMP or look at the manual: http://us.php.net/install.windows
  3. We can't really help. You may have to learn PHP. Dreamweaver does provide a WYSIWYG but I'd advise against it, as it produces horrendous code. I don't think you can even use it with code that's been made without it, but I'm not sure, I've never used Dreamweaver, and probably never will. If you have specific problems, you can post them here and we can help.
  4. What I noticed immediately is that you have form1 for a method, but you're using POST. Change that, in the example you were using they used name="form1" method="POST", you mixed them up.
  5. hmm. im sure some programming language i use uses 2 equal signs! I'm sure one does... :-\
  6. Then echo under each if statement and see what doesn't output.
  7. Use 1 equal sign not 2.
  8. Have you echoed out the post variables to make sure they all contain expected values? print_r($_POST);
  9. It's good practice.
  10. seany123, Try this code, although I'm not sure how you know where the VALUE 5 etc.. comes from. </pre> <form action="<?php%20echo%20%24_SERVER%5B'PHP_SELF'%5D;%20?>" method="POST"> Select Value: Level Money Bank Points Strength Defense Speed Total Select Value: All London New york Birmingham Atlanta washington Tokyo Moscow Berlin Madrid Sydney Chicargo Singapore Mexico city Phoenix Amsterdam Oslo Boston Hong Kong Las Vegas Austin Miami Dublin Oakland Milan Istanbul Toronto Rome </form> <br><br>if(isset($_POST['submit'])) {<br> echo $_POST['cityid'] . " => " . $_POST['value'];<br>}<br>?><b
  11. You have 3 forms, when you only need 1. And you don't tell any of them where to submit. Read this.
  12. Yes, that looks like it should work, if your include directory is in the same directory as the file calling it. If not you would have to give it the relative path.
  13. Your date field should be a TIMESTAMP. You also need an ORDER BY. You're getting the correct date because you select the MAX date but everything else is the record order.
  14. I think I'm confused... How are these files stored? The radio button selected is the file that's going to be edited? If that's the case, then make the radiobuttons the paths to the files, so when you get to the next page you can just open up the value of the radio button.
  15. Hard to believe, but may be so. Tizag certainly won't confuse, it's one of the most basic references known to man. There's also plenty of examples on these forums. Good luck!
  16. Instead of .* use .+ and for the blank scenario, create another entry with the url bb tags blank, replaced with blank.
  17. Yes you can use $file, but you don't end your .
  18. Use perl. It's relatively easy to pick up, and is good for things like this.
  19. Yeah that looks about right. Although, you may need a left join rather than inner, but if it works I guess I'm wrong.
  20. You need to give the checkboxes the same name. Something like: name='authorid[]'
  21. Well I got form processing down pat its just when I am about to create an app like a forum I dont know where to start If you're just beginning then I advise you not to even attempt a forum. Start with the basics and work your way up. When you feel comfortable then read a tutorial or try to build a forum on your own. There's a reason you don't where to start.
  22. Here's another basic example: function f1($var1){ $what = $var1; return $what; } function f2($var2){ $what2 = $var2 + 2; return $what2; } $variable = f1(f2(1)); echo $variable; ?> As long as f2 returns something it will pass it to f1 which returns $what and variable is assigned to it.
  23. You need to use a LEFT JOIN and an UPDATE.
  24. What gives you doubt? Have you tried it?
  25. haha yeah. As far as expanding forums, I usually just click on, "Show unread posts since last visit". I believe it lists from every section.
×
×
  • 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.