Jump to content

premiso

Members
  • Content Count

    6,951
  • Joined

  • Last visited

  • Days Won

    2

premiso last won the day on September 27 2012

premiso had the most liked content!

Community Reputation

28 Good

About premiso

  • Rank
    Trollololol
  • Birthday 01/25/1983

Contact Methods

  • Website URL
    http://www.aeonity.com/ab/games

Profile Information

  • Gender
    Female
  • Location
    Hairy Beaverville
  • Interests
    Badgers and growing cheese.
  1. I use bash I know of http://sourceforge.net/projects/mysqlcc/ which works decent. The workbench I just hated. The MySQLCC program was the best I found, but I still prefer to use the CLI.
  2. search is busted...or missing..

  3. For lowend VPS's: My favorite: http://buyvm.net Other decent ones: http://hostigation.com http://budgetvm.com http://chicagovps.net/ I have 1 VPS with the "Others" and 22 with BuyVM
  4. I prefer Geany for Windows Its not Java, which is a huge + in my book. May not have all the flashy features, but is a nice lightweight IDE.
  5. 69 votes to 40 votes.... how is that misleading? Oh and moved my vote to Other for Geany.
  6. Generally for attaching files, it is recommended to go with PEAR::Mail as it handles MIME types much better or something like phpMailer. If you want to do this on your own, I would suggest looking at the source code of phpMailer and see how they handle the attachments and follow their lead, or just use their class to begin with. Also of note, you can look at the manual for mail as it gives information on how to attach files as well. Just requires a bit if reading and trial / error in a small scale on your part to get it right.
  7. Never heard of it, I will have to look into that.
  8. Well that may be, but I think you are saving the wrong file. The code I posted should not produce any notice errors. My 2cents, you are saving the wrong file. Here is the code I tested on my server, with no notice errors etc. <?php error_reporting(E_ALL); ini_set("display_errors", 1); if (!isset($_POST['submit']) || ($_POST['val1'] == "") || ($_POST['val2'] == "") || ($_POST['calc'] == "")) { header("Location: calculate_form.php"); exit; } if ($_POST['calc'] == "add") { $result = $_POST['val1'] + $_POST['val2']; $what = " plus "; } else if ($_POST['calc'] == "subtract") { $result = $_POST['val1'] - $_POST['val2']; $what = " minus "; } else if ($_POST['calc'] == "multiply") { $result = $_POST['val1'] * $_POST['val2']; $what = " times "; } else if ($_POST['calc'] == "divide") { $result = $_POST['val1'] / $_POST['val2']; $what = " divided by "; } echo 'My calculations returned: ' . $_POST['val1'] . $what . $_POST['val2'] . " = " . $result; ?> Which returned: My calculations returned: 2 plus 3 = 5
  9. Ummm.... <?php if (!isset($_POST['submit']) || ($_POST['val1'] == "") || ($_POST['val2'] == "") || ($_POST['calc'] == "")) { header("Location: calculate_form.php"); exit; } if ($_POST['calc'] == "add") { $result = $_POST['val1'] + $_POST['val2']; } else if ($_POST['calc'] == "subtract") { $result = $_POST['val1'] - $_POST['val2']; } else if ($_POST['calc'] == "multiply") { $result = $_POST['val1'] * $_POST['val2']; } else if ($_POST['calc'] == "divide") { $result = $_POST['val1'] / $_POST['val2']; } echo 'My calculations returned: ' . $result; ?> That would be the proper way to do it. Is that giving you an error/notice? Chances are the book is just plain wrong. Programmers are not very good book writers.
  10. <?php if (!isset($_POST['submit']) || ($_POST['val1'] == "") || ($_POST['val2'] == "") || ($_POST['calc'] == "")) { header("Location: calculate_form.php"); exit; } if ($_POST['calc'] == "add") { $result = $_POST['val1'] + $_POST['val2']; } else if ($_POST['calc'] == "subtract") { $result = $_POST['val1'] - $_POST['val2']; } else if ($_POST['calc'] == "multiply") { $result = $_POST['val1'] * $_POST['val2']; } else if ($_POST['calc'] == "divide") { $result = $_POST['val1'] / $_POST['val2']; } ?> isset and using ' around array indexes should solve your woes.
×
×
  • 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.